r/GreaseMonkey • u/redditMEred • Feb 27 '12
[Request] Help making very simple script that will add the current url to the end of another url and load the page.
I want to write a script that will basically search the current URL on "karma decay". All it has to do is take the URL of the page that I am on and add it to this url:
http://karmadecay.com/For example if I am on:
http://i.imgur.com/GBoiG.jpgClicking the extension will lead to this
The script getting my current URL :
http://i.imgur.com/GBoiG.jpgAdding it to this URL
http://karmadecay.com/ (the last slash is important)And then coming up with this URL:
http://karmadecay.com/http://i.imgur.com/GBoiG.jpgAnd then load the page.
Any ideas?
1
Upvotes
1
u/grafilicious Feb 28 '12
Question is how do you want to trigger the search? Have an extra link on the page?
3
u/JohnaldTheRobot Feb 27 '12
How about making a bookmarklet? Just have this as the url: