Greasemonkey script on Firefox network error page
I want to run a Greasemonkey script on Firefox network error pages, such as (but not limited to) this one: Can I do this with chrome:// URLs? If so, what are they? If not, is there another way? ...
I want to run a Greasemonkey script on Firefox network error pages, such as (but not limited to) this one: Can I do this with chrome:// URLs? If so, what are they? If not, is there another way? ...
I have the following HTML: <html> <head><title>Title</title></head> <body> <div id='div2'> <a href='#'>1</a> <div id='div1'> <a href='#'>2</a> </div> </div> </body> </html> ... and the following Javascript code, which I'm running through Greasemonkey: var nodes = document.body.getElementsByTa...
Still trying to learn the basic of jquery so in the weekend I started looking on simple rewriting of links in greasemonkey. The script is working but it's not looping. It just take the url from the first .img and and write it into all the other .img instead of getting the each link and write it into the same element. Not sure if it made ...
I have the following fairly basic greasemonkey script: var newloc = location.href.replace(/^(.*)-xyz-(.*)$/i, "$1$2"); if (newloc != location.href) location.href = newloc; That is, it basically strips out "-xyz-" from the URL and loads the page again. So if you navigate to "www.example.com/a-xyz-b/" it'll reload the page at "www.e...
Hi all, my task is to get (updating) data from a GMail page with Greasemonkey's injected scripts. I want to get each object of HTMLHtmlElement (<html>) type from an opened page. What is a best way to enumerate all <something>.document instances existing in Firefox's currently open tab? Greasemonkey has unsafeWindow, but don't know what ...
I have recently been inspired to write spam filters in JavaScript, Greasemonkey-style, for several websites I use that are prone to spam (especially in comments). When considering my options about how to go about this, I realize I have several options, each with pros/cons. My goal for this question is to expand on this list I have create...
I'm trying to prevent my Greasemonkey script from executing within IFRAMEs. I'm doing so by using if (window.top != window.self) return;. As soon as I insert that line right after the metadata header, the error console throws out a "Security Manager vetoed action" indicating this exact line of code. There's no additional information avai...
I'm writing a greasemonkey script that creates an auto-complete search type box which makes it easier to select from a large dropdown on a webpage. The dropdown has inline onchange code which I can't seem to get to trigger when I change the selection using javascript. Any ideas? ...
Is there a way to do this? I just want to be able to save, refresh the page, and have my changes show up like I do in Firefox. Having to drag it over and install it every time gets annoying. Any ideas? ...
I've had this idea for a year or so and I find it hard to believe that I am the only one to have ever of thought of this. This feature is not available in any web-based or email client that I know of. I would love to see this for Gmail. I posted a topic on the Gmail help forums but never received any meaningful replies. A lot of peop...
I’ve got a Greasemonkey-for-IE script in IE9 that’s importing jQuery. But on secure pages it doesn’t work. I’m getting: SEC7111: HTTPS security is compromised by http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js The code that fails is: var script = document.createElement("script"); script.setAttribute("src", "http...
Hello all, I'm trying to autocomplete some text-fields with $('#username').replaceWith('<input id=\"username\" type=\"text\" name=\"user_name\">'); $("input#username").autocomplete({ source: ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby"] }); I know there's a jQuery autocomplete plugin. How do I include the pl...
I wrote a user script for the latest Chrome browser. It seems the script can't get the changed content of the page after loaded (for example, after the page loaded, I clicked ¿sth? and an embedded window popped up). Even if I used window.setTimeout(), I still can't the get updated content in the timer callback through document.getEleme...
Hi all, I found out that this is the way to style all images on a site. GM_addStyle("img { border: 3px dotted green;background-color: red; }"); How do I style just a few? Is there a way to add a class to the GM_addStyle so that I can call this class later with jQuery like .addClass('myClass')? Thank you in advance for your help and t...
Hi! I want to stop the execution of one single line from a site, so that the whole page is read by the browser except that single line. Or the browser may simply skip the execution of that javascript function. OR Is there way i can tweak the javascript somehow so that the random number generating function in javascript do not generate...
It's a greasemonkey script. I don't know javascript so that makes this especially fun. function notify(){ if window.find("1 minute")==true{ alert("y"); setTimeout("alert('time to click soon!')",60000) } if window.find("2 minute")==true{ alert("y"); setTimeout("alert('time to click soon!')",2*6...
I'm working on a script to click a button. The button is part of a script that is embedded on a website. The embedded script is here: http://pastebin.com/jsBiYZxi I'm fairly new to Greasemonkey and javascripting in general and I'm hitting a road block trying to accomplish this. Can anyone give me some pointers or suggestions? ...
I'm writing a Greasemonkey script that has a fair few user settings (just using GM_getValue and GM_setValue). What I'd like to be able to do is create a settings page for the script, and add that to the @include-d sites. So, for example, it'd run on: @include http://www.greasemonkeyedsite.com/* @include about:myScriptConfig Th...
I've started writing a greasemonkey script, and am facing problems performing localstorage in the Greasemonkey script. The only way I could figure out localstorage in GM is by creating another instance of Javascript in the newElement.innerHTML DOM property, but there the rest of my variables are inaccessible. Any ideas ? Here's the Grea...
i've been reading a lot and have been trying to get this done for about 5 hours now... so here it is I want to write a script that will override a function dummy() {$.ajax(...)}; on a website. here is how i'm trying to do it unsafeWindow.dummy = function(data){differantFunction(); $.ajax(...);}; function differantFunction(){ ... } ...