Skip to content

Instantly share code, notes, and snippets.

@mxs42
Created January 21, 2018 11:00
Show Gist options
  • Save mxs42/fc5620daa21364baacd13e8461a7630d to your computer and use it in GitHub Desktop.
Save mxs42/fc5620daa21364baacd13e8461a7630d to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name ZXHN H218N Unlocker
// @namespace 5051T3
// @version 0.1
// @description try to take over the world!
// @author 5051T3
// @match http://192.168.0.1/getpage.gch*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var frame = document.body.querySelector("#mainFrame");
if(frame)
{
frame.onload = function() {
[...frame.contentDocument.querySelectorAll("input, select")].map((node) => { node.disabled = false; });
};
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment