Hey,
My grease monkey script is the following:
document.getElementsByTagName('html')[0].innerHTML = "<b>asdfdsfa</b>";
alert( document.getElementsByTagName('html')[0].innerHTML );
When I run the script, the alert says:
<html>b<asdfdsfa</b<
And the text that I see is
<html><b>asdfsda</b>
Does anyone know what ...
Why can't I output my regex to a variable, and then run regex on it a second time?
I'm writing a greasemonkey javascript that grabs some raw data, runs some regex on it, then runs some more regex on it to refine the results:
// I tried this on :: http://stackoverflow.com/
var tagsraw = (document.getElementById("subheader").innerHTML)...
hello i'm writing a GM user script
and i want to change the favicon dynamically
changing it the old way is easy but i want to encode it in base64 to avoid hosting it
this is what i have done after hosting the favicon
var link = document.createElement('link');
link.type = 'image/x-icon';
link.rel = 'shortcut icon';
link.href = 'http://i...
I'm trying to include cluetip in my GreaseMonkey script. To do this I've defined my userscript as follows:
// ==UserScript==
// @name myscript
// @namespace myscript
// @description This is my script
// @require http://plugins.learningjquery.com/cluetip/jquery.cluetip.js
// @require http://plugins.learnin...
Hello,
I'm doing a bunch of document.evaluate then itering through each result with a for loop on result.snapshotLength.
Since I do the same thing inside each loop ( a thisDiv.parentNode.removeChild ) i would like to do just one loop.
I've read that :
The fifth parameter can be used to
merge the results of two XPath
queries. ...
I want to add h323:number style links to HighRise contact numbers, so that users can click a link to dial the IP phone...
The html I'm looking at is:
<table>
<tbody>
<tr>
<th>Phone</th>
<td>+44 (0)1123 1231312<span>Work</span></td>
</tr>
<tr>
<th></th>
<td>+44 (0)777 2342342<span>Other</span></td>
...
For those who don't know what a bookmarklet is: http://en.wikipedia.org/wiki/Bookmarklet
...
I have created a greasemonkey script for a website. What the script does is adding a div at the end of the page.
document.body.insertBefore(myDiv, document.body.firstChild);
But now the site adds an iframe for google-ads, as a result my div appears in the iframe too, which is not what i want.How can i avoid the script to affect ifr...
The reason I want to do this is that I'm writing a script for meebo.com that involves changing the background and replacing some pictures with css. I'd like to add links to it from other sites (namely Gmail, Google Calendar, etc.) Is it possible to accomplish this with one Greasemonkey script? (I think this is a general enough question...
OK, I'm using greasemonkey to replace an editor on a site that is using KTML (from 2006!) with CKEditor. I first get rid of KTML, then I load jQuery and then ckeditor.js and that works, apparently. But when I go to replace the textarea, firebug reports "CKEDITOR is not defined" and my textarea stays normal. Am I loading them in the wrong...
Hi,
Is there any way I can use JavaScript (or jquery) to stop loading unwanted objects on a webpage if i'm not interested in them. I use greasemonkey firefox addon to use bits of javascript for my better web experience and some sites use excessive flash and image content that is irrelevant to me. I'm able to hide their display using jque...
I would like to use the Web Worker facility introduced in Firefox 3.5 to enhance a Greasemonkey script I'm working on.
Is this even possible?
I've done some experimentation, but I can't get past the issue of loading a worker script from an arbitrary domain.
For example, this does not work:
var myWorker = new Worker("http://dl.getdrop...
I'd like to write a Greasemonkey script that requires finding lines ending with a string ("copies.") & sorting those lines based on the number preceding that string.
The page I'm looking to modify does not use tables unfortunately, just the br/ tag, so I assume that this will involve Regex:
http://www.publishersweekly.com/article/CA659...
Say you wanted a Greasemonkey script to be compatible with Safari and Chrome.
Whereas in Firefox the Greasemonkey scripts only run when the DOM is ready.
Chrome, Safari and Opera seem to run the Greasemonkey scripts before the DOM is ready.
So what I am looking for is a solution that will only run a listener on the page, waiting for th...
Would anyone be able to tell me the grasemonkey code to have this page
http://www.easportsworld.com/en%5FUS/clubs/nhl
Have "Any" as the default selected spoken language from the dropdown. It defaults to English as selected for me.
...
My past attempts at writing userscripts ended working in Firefox, but not Opera, because of subtle differences between the two browsers. Is it possible to use of those libraries that abstract the differences away like jQuery inside userscripts to make them cross-browser compatible with little effort?
...
i wanna get a price inside a page and then multiple it by 0.93 then write the result after first price. but i couldn't be able to grab the price from page.
for example i want to grap "900 TL" string from "900 TL"
you can see all codes of page by visiting http://www.sahibinden.com/cok%5Ftemiz%5Fasus%5Ff3jp%5Ft7200%5F2ghz%5F2gb%5Fram%5F...
I have written a basic Greasemonkey script which passes an output out to a textarea, like this:
var obj = document.getElementById("comment").innerHTML = "\n" + "Note:" + "\n" + "\n" + output_string;
It works like a charm, if you change the value from the source, it will update the textarea. However, as soon as you write anything yours...
What's the best way to debug custom User Scripts (aka Greasemonkey) in Chrome? Is there a way to enable User Script tracking in the Developer Tools?
...
Why do I get a 1, then a 0 when this script runs in greasemonkey:
//jQuery source code.....
alert(jQuery('body').size());
(function(jQuery){
var find = jQuery.find;
jQuery.find = function(selector, context){
return find(selector, context);
};
})(jQuery);
alert(jQuery('body').size());
...