¡@

Home 

javascript Programming Glossary: userscript

How can I detect AJAX node insertion without using DOM mutation events?

http://stackoverflow.com/questions/10664669/how-can-i-detect-ajax-node-insertion-without-using-dom-mutation-events

and be done with it. It's very easy to use. For example UserScript @name Highlight good comments @include http SOME_SITE @require.. https gist.github.com raw 2625891 waitForKeyElements.js UserScript function highlightGoodComments jNode if beer i.test jNode.text..

Accessing Variables from Greasemonkey to Page & vice versa

http://stackoverflow.com/questions/13485122/accessing-variables-from-greasemonkey-to-page-vice-versa

Then the following will work No sandbox UserScript @name _Greasemonkey and target page variable interaction @include.. http jsbin.com esikut @run at document start @grant none UserScript For @grant none could also use window. instead of unsafeWindow... false With sandbox no function scope unsafeWindow UserScript @name _Greasemonkey and target page variable interaction @include..

I have to refresh the page for my Greasemonkey script to run?

http://stackoverflow.com/questions/14024120/i-have-to-refresh-the-page-for-my-greasemonkey-script-to-run

to be done with my code to get it working without refresh UserScript @name Job Aids @description Aid in closing tickets @include.. @namespace camzilla.net @version 1.1.20121128 UserScript var url window.location.href.split .aspx var page url 1 .toLowerCase.. code replace everything before function addLinks ... with UserScript @name Job Aids @description Aid in closing tickets @include..

Choosing and activating the right controls on an AJAX-driven site

http://stackoverflow.com/questions/15048223/choosing-and-activating-the-right-controls-on-an-ajax-driven-site

page HTML but I don't know how to do that. Please help. UserScript @name _Nike auto buy script @include http @require http ajax.googleapis.com.. raw 2625891 waitForKeyElements.js @grant GM_addStyle UserScript The @grant directive is needed to work around a design change.. of operations. The resulting complete working script is UserScript @name _Nike auto buy shoes script @include http store.nike.com..

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

I'm some initial text. p body Use this Greasemonkey script UserScript @name _Replace evil Javascript @include http jsbin.com ogudon.. @include http jsbin.com ogudon @run at document start UserScript New init function that we will use instead of the old bad init..

UserScripts & Greasemonkey: calling a website's JavaScript functions

http://stackoverflow.com/questions/5006460/userscripts-greasemonkey-calling-a-websites-javascript-functions

Greasemonkey calling a website's JavaScript functions I'm.. calling a website's JavaScript functions I'm creating a UserScript extension for Firefox Chrome and I'm trying to use some of the.. the examples above. You can run it on this page. UserScript @name Content Function Test @namespace lwburk @include http..

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

a web page's dynamically created DOM elements with a userscript I want to extract all the dynamic javascript functions from.. the dynamic javascript functions from a web page with a userscript. Someone suggested using a hook for DOM objects. They also provided.. calls but where do I add this function in my userscript I tried creating a userscript which contains only this function..

Chrome userscript error: “Unsafe JavaScript attempt to access frame”

http://stackoverflow.com/questions/10666258/chrome-userscript-error-unsafe-javascript-attempt-to-access-frame

userscript error &ldquo Unsafe JavaScript attempt to access frame&rdquo.. 'player' .height 650px Running in a userscript for this url http www.free tv video online.me player sockshare.php.. 650px javascript google chrome iframe greasemonkey userscripts share improve this question It's true that ordinary javascript..

Why is window (and unsafeWindow) not the same from a userscript as from a <script> tag?

http://stackoverflow.com/questions/10824697/why-is-window-and-unsafewindow-not-the-same-from-a-userscript-as-from-a-scrip

is window and unsafeWindow not the same from a userscript as from a script tag I was facing an issue while developing.. tag I was facing an issue while developing this small userscript . When I wanted to block every XMLHttpRequest from the running.. explain me why javascript greasemonkey variable scope userscripts share improve this question See Are Chrome user scripts..

How to use GM_xmlhttpRequest in Injected Code?

http://stackoverflow.com/questions/11377191/how-to-use-gm-xmlhttprequest-in-injected-code

to use GM_xmlhttpRequest in Injected Code I am writing a userscript that is injected into a webpage. The script reads some data.. code javascript google chrome extension greasemonkey userscripts share improve this question GM_ functions will not work.. of unsafeWindow than Chrome natively provides. Split your userscript code into injected parts which cannot use GM_ functions and..

How can I mimic Greasemonkey/Firefox's unsafeWindow functionality in Chrome?

http://stackoverflow.com/questions/1622145/how-can-i-mimic-greasemonkey-firefoxs-unsafewindow-functionality-in-chrome

the global namespace For example if the only line in my userscript is alert x should that work as expected assuming x is a String..

jQuery.getJSON inside a greasemonkey user script

http://stackoverflow.com/questions/1647519/jquery-getjson-inside-a-greasemonkey-user-script

jQuery XHR bridge . If you @require that script in your userscript then all .get and .getJSON and .post etc. jQuery calls will..

responseXML always null

http://stackoverflow.com/questions/3781387/responsexml-always-null

EDIT This javascript code was executed from a Greasemonkey userscript i made surte its the same origin as the requested url. Also..

Can a website know if I am running a userscript?

http://stackoverflow.com/questions/8548141/can-a-website-know-if-i-am-running-a-userscript

a website know if I am running a userscript Can for example Facebook.com run a version control script on.. was sent to the client javascript facebook greasemonkey userscripts share improve this question Yes in theory a site can deduce.. c69 for the reminder. Ultimately the advantage is to the userscript writer however. Any counter measures that a webpage takes can..

Downloading an image using XMLHttpRequest in a userscript

http://stackoverflow.com/questions/8778863/downloading-an-image-using-xmlhttprequest-in-a-userscript

an image using XMLHttpRequest in a userscript First of all there is a question with the same title here on.. dl 1 I'm trying to do this task through a userscript. So I used XMLHttpRequest for that. var url https fbcdn photos.. on how to do this javascript xmlhttprequest file download userscripts share improve this question XMLHttpRequest will not work..

How can two instances of a userscript communicate between frames?

http://stackoverflow.com/questions/11769066/how-can-two-instances-of-a-userscript-communicate-between-frames

Script start... if window.top window.self console.log Userscript is in the MAIN page. Setup to process messages from the GM instance.. Waiting for Message 1 from iframe... else console.log Userscript is in the FRAMED page. Double check that this iframe is on the.. will see this in the javascript console Script start... Userscript is in the MAIN page. Waiting for Message 1 from iframe... Script..

What is the most reliable way to hide / spoof the referrer in JavaScript?

http://stackoverflow.com/questions/8893269/what-is-the-most-reliable-way-to-hide-spoof-the-referrer-in-javascript

google.com lotsoftrash url actualurl . I'm developing a Userscript Firefox Content script Chrome code which removes Google's link.. in Chrome and Firefox. I've implemented the code in a Userscript Don't track me Google . Demo tested in Firefox 9 and Chrome.. hideRefer true Joining both methods I created one Userscript for Chrome and Firefox. The script needed a effective method..