User script: Difference between revisions

From GreaseSpot Wiki
Jump to navigationJump to search
m (Reverted edits by 202.133.58.19 (Talk) to last revision by Arantius)
(biltjuv.se)
Line 1: Line 1:
{{stub}}
won = document.body.innerHTML;
won = won.split("Du vann ");
won = won[1];


'''User scripts''', or '''userscripts''', are scripts that make on-the-fly changes to specific web pages on the client side (in the browser or a proxy server), typically to change their appearance or to add or modify functionality.
blackjack = document.body.innerHTML;
 
blackjack = blackjack.split("BLACKJACK! ");
User scripts for [[Greasemonkey]] and Greasemonkey-compatible alternatives are written in [http://developer.mozilla.org/en/docs/JavaScript JavaScript], but there is at least one example of using another scripting language, namely Ruby in [http://github.com/why/mousehole/tree/master/ MouseHole].
blackjack = blackjack[1];
 
For tools other than Greasemonkey that apply user scripts to web sites, see [[Cross-browser_userscripting|Cross-browser Userscripting]] and [http://en.wikipedia.org/wiki/Greasemonkey#Compatibility Wikipedia].

Revision as of 17:03, 1 March 2010

won = document.body.innerHTML; won = won.split("Du vann "); won = won[1];

blackjack = document.body.innerHTML; blackjack = blackjack.split("BLACKJACK! "); blackjack = blackjack[1];