What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Greasemonkey help

Greasemonkey help
Author: Message:
Nathan
Veteran Member
*****

Avatar
Yeah, "large dimensions" ;)

Posts: 2984
Reputation: 76
– / Male / Flag
Joined: Apr 2005
O.P. Greasemonkey help
Well I need some help,

Can someone show me how to edit javascript thats on a html page. e.g
<script ...>
alert("boo");
</script>
I want to edit alert("boo");
too
alert("boob");

Thanks guys :)
Touch Innovation - touch friendly programs/applications for the windows mobile!


07-04-2007 07:16 PM
Profile E-Mail PM Web Find Quote Report
Jarrod
Veteran Member
*****

Avatar
woot simpson

Posts: 1304
Reputation: 20
– / Male / Flag
Joined: Sep 2006
RE: Greasemonkey help
I believe it goes like this
<script ...>
var tex
tex = (document.getElementById('bereich').value);
alert(tex);
</script>
[edit] spelling

This post was edited on 07-05-2007 at 08:21 AM by Jarrod.

[Image: 5344.png]
[Image: sig.png]

A.k.a. The Glad Falconer














07-05-2007 08:20 AM
Profile E-Mail PM Find Quote Report
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
35 / Male / Flag
Joined: Mar 2004
RE: Greasemonkey help
its not possible to edit stuff in the <script> tags unless its inside a function, because greasemonkey is called on DOMContentLoaded and <script> tags run before that event
if its inside a function then from your greasemonkey script you just replace the function like

code:
unsafeWindow.functionName = function(){alert(":o");}

quote:
Originally posted by xen0h
I believe it goes like this
<script ...>
var tex
tex = (document.getElementById('bereich').value);
alert(tex);

[edit] spelling
wtf are you on?, have you ever used greasemonkey? useless++
[Image: dt2.0v2.png]      Happy Birthday, WDZ
07-05-2007 08:28 AM
Profile PM Web Find Quote Report
ShawnZ
Veteran Member
*****

Avatar

Posts: 3146
Reputation: 43
32 / Male / Flag
Joined: Jan 2003
RE: Greasemonkey help
quote:
Originally posted by xen0h
I believe it goes like this
<script ...>
var tex
tex = (document.getElementById('bereich').value);
alert(tex);
</script>
[edit] spelling

did you.... err... read his post at all?
Spoiler:
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
07-05-2007 09:07 AM
Profile PM Web Find Quote Report
Jarrod
Veteran Member
*****

Avatar
woot simpson

Posts: 1304
Reputation: 20
– / Male / Flag
Joined: Sep 2006
RE: Greasemonkey help
obiously not correctly:p

[Image: 5344.png]
[Image: sig.png]

A.k.a. The Glad Falconer














07-05-2007 09:09 AM
Profile E-Mail PM Find Quote Report
Nathan
Veteran Member
*****

Avatar
Yeah, "large dimensions" ;)

Posts: 2984
Reputation: 76
– / Male / Flag
Joined: Apr 2005
O.P. RE: Greasemonkey help
Well its a var:
    var maxLoginTime = 60;
So could i edit that in greasemonkey?
Touch Innovation - touch friendly programs/applications for the windows mobile!


07-05-2007 04:29 PM
Profile E-Mail PM Web Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1621
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: Greasemonkey help
quote:
Originally posted by Napbree
Well its a var:
    var maxLoginTime = 60;
So could i edit that in greasemonkey?
As long as it isn't used before Greasemonkey has had a chance to start.
[Image: markee.png]
07-06-2007 12:45 AM
Profile PM Find Quote Report
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: Greasemonkey help
FWIW, Opera's UserJS feature can modify the content of <script> tags...

quote:
User JavaScripts can use the 'BeforeScript' event to detect when a script on a page is about to be interpreted by the JavaScript engine. If needed, the contents of the script can then be rewritten, or prevented from being interpreted.
[Image: zippyrobot.gif]
07-06-2007 01:10 AM
Profile PM Web Find Quote Report
Nathan
Veteran Member
*****

Avatar
Yeah, "large dimensions" ;)

Posts: 2984
Reputation: 76
– / Male / Flag
Joined: Apr 2005
O.P. RE: Greasemonkey help
Can anyone attach that file (school blocks it),
and is anyone willing to give it a go using greasemonkey?
Thanks.
Touch Innovation - touch friendly programs/applications for the windows mobile!


07-06-2007 11:19 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On