javascript Programming Glossary: functorun
Log a web page's dynamically-created, DOM elements with a userscript http://stackoverflow.com/questions/10083010/log-a-web-pages-dynamically-created-dom-elements-with-a-userscript 1 Handy injection function. function addJS_Node text s_URL funcToRun var D document var scriptNode D.createElement 'script' scriptNode.type.. text if s_URL scriptNode.src s_URL if funcToRun scriptNode.textContent ' ' funcToRun.toString ' ' var targ D.getElementsByTagName.. s_URL if funcToRun scriptNode.textContent ' ' funcToRun.toString ' ' var targ D.getElementsByTagName 'head' 0 D.body..
Changing Javascript on an HTML page out of my control http://stackoverflow.com/questions/10472569/changing-javascript-on-an-html-page-out-of-my-control checkForBadJavascripts function addJS_Node text s_URL funcToRun var D document var scriptNode D.createElement 'script' scriptNode.type.. text if s_URL scriptNode.src s_URL if funcToRun scriptNode.textContent ' ' funcToRun.toString ' ' var targ D.getElementsByTagName.. s_URL if funcToRun scriptNode.textContent ' ' funcToRun.toString ' ' var targ D.getElementsByTagName 'head' 0 D.body..
Accessing Variables from Greasemonkey to Page & vice versa http://stackoverflow.com/questions/13485122/accessing-variables-from-greasemonkey-to-page-vice-versa null null GM_main function addJS_Node text s_URL funcToRun runOnLoad var D document var scriptNode D.createElement 'script'.. text if s_URL scriptNode.src s_URL if funcToRun scriptNode.textContent ' ' funcToRun.toString ' ' var targ D.getElementsByTagName.. s_URL if funcToRun scriptNode.textContent ' ' funcToRun.toString ' ' var targ D.getElementsByTagName 'head' 0 D.body..
Stop execution of Javascript function (client side) or tweak it http://stackoverflow.com/questions/3972038/stop-execution-of-javascript-function-client-side-or-tweak-it checkForBadJavascripts function addJS_Node text s_URL funcToRun var D document var scriptNode D.createElement 'script' scriptNode.type.. text if s_URL scriptNode.src s_URL if funcToRun scriptNode.textContent ' ' funcToRun.toString ' ' var targ D.getElementsByTagName.. s_URL if funcToRun scriptNode.textContent ' ' funcToRun.toString ' ' var targ D.getElementsByTagName 'head' 0 D.body..
|