From ebgssth at gmail.com Thu Jan 4 08:05:47 2007 From: ebgssth at gmail.com (js ) Date: Fri, 5 Jan 2007 01:05:47 +0900 Subject: [Greasemonkey] Is there any way to remove all redirects from each link in a page? Message-ID: Hi gurus, I'd like to replace all redirects with its destination URLs. First I thought I could use GM_xmlhttp's callback to get the destination address but GM_xmlhttp is so high level function that it never returns 302. (GM_xmlhttpRequest automatically handle all redirects and follows moved URL accordingly) I searched on the web but there's no clue. I found a remove redirects here http://www.squarefree.com/bookmarklets/pagelinks.html but it doesn't work if the URL is not like http://example.com/redir.cgi?to=http://example.net/ Any suggestions would be appreciated. Thanks in advance. From volatil3_ at hotmail.com Sun Jan 14 11:13:26 2007 From: volatil3_ at hotmail.com (Adnan Siddiqi) Date: Sun, 14 Jan 2007 19:13:26 +0000 Subject: [Greasemonkey] Changing Body Background and Cursor Message-ID: Hello I am newbie in GM and I am working on a script . I have made two functions, one is called on load event which generates div with a link, the other function which changes the background and cursor shape of body. I am calling following function on Clickevent. var placeMark=function(){ var enclosedDIv="
"+bodyTag.innerHTML + "
"; //bodyTag.style="background:red"; bodyTag.innerHTML =enclosedDIv; window.document.getElementById("bbody").style.backgroundColor="green"; window.document.style.backgroundColor="green"; } it does make body background green and then goes away. I checked generated HTML source but it doesn't newly added Div with id "bbody". How do I solve it? Thanks -adnan _________________________________________________________________ Dave vs. Carl: The Insignificant Championship Series. ?Who will win? http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://davevscarl.spaces.live.com/?icid=T001MSN38C07001 From nabble at email.streetbuck.net Wed Jan 17 22:12:49 2007 From: nabble at email.streetbuck.net (streetbuck) Date: Wed, 17 Jan 2007 22:12:49 -0800 (PST) Subject: [Greasemonkey] Simple keyboard shortcut script not working - Please Help! Message-ID: <8425503.post@talk.nabble.com> Hello, I'm trying to make a simple greasemonkey script that captures when the [Esc] key (Keycode 27, if i'm not mistaken) has been pressed, and executes a function. The script is as follows. It seems fairly straightforward to me, but for some reason, the script is not doing anything. Can anyone tell me what I am doing wrong? Any help would be highly appreciated.. Thanks in advance! // ==UserScript== // @name MeeVee Keyboard Shortcuts // @description Keyboard shortcuts for MeeVee // @include http://www.meevee.com // @include http://meevee.com // ==/UserScript== (function() { function keyUp(event) { if (!event) var event = window.event; if (event.keyCode == "27".charCodeAt(0)) { mvApp.guide.infowindow.close(); } } document.addEventListener("keyup", keyUp, false); })(); -- View this message in context: http://www.nabble.com/Simple-keyboard-shortcut-script-not-working---Please-Help%21-tf3032461.html#a8425503 Sent from the MozDev - greasemonkey mailing list archive at Nabble.com. From jasher1 at tampabay.rr.com Fri Jan 19 13:39:58 2007 From: jasher1 at tampabay.rr.com (Jesse W. Asher) Date: Fri, 19 Jan 2007 16:39:58 -0500 Subject: [Greasemonkey] Does greasemonkey work with Seamonkey? Message-ID: <45B13AAE.4090407@tampabay.rr.com> Does it? Huh? Huh? ;-) Thanks!! From mike at lordlegacy.com Sun Jan 21 18:03:06 2007 From: mike at lordlegacy.com (Michael Preslar) Date: Sun, 21 Jan 2007 20:03:06 -0600 Subject: [Greasemonkey] Preventing off-site resources Message-ID: <45B41B5A.6040606@lordlegacy.com> I'm hoping there are folks on this list that can help me out, or at least point me in the right direction.. The archives at http://mozdev.org/pipermail/greasemonkey/ shows 5 messages since Nov.. Moving on.. My setup: WinXP, Firefox 2.0.0.1, and GM 0.6.6.2006 I'm wanting to create a GM script (my first!) that prevents pages from loading "off-site" resources.. Meaning: If I hit http://www.foobar.com/index.html .. The GM script should allow this index.html to bring in anything from *.foobar.com, and would prevent the following resources from being loaded: - -