?.jpg
|
|
can somebody please make me a script for greasemonkey that automaticall adds ?.jpg to every URL?
|
|
|
Is that to every link, or to the location of the window? To add it to every link, the following would work... for (i = document.links.length - 1; i >= 0; i--) document.links[i].href += "?.jpg" |
|
|
how would i install this into greasemonkey? |
|
|
so like if i type www.google.com/ then it would become www.google.com/?.jpg |
|
|
So you want whatever address you go to to have window.location.replace(window.location.href + "?.jpg") To install this in greasemonkey, right click the monkey face in the corner and select "New user script...". Fill in the details, and then paste that line into the script. Save it and then it should simply work. |
|
|
thank you so much! |
|
|
May I ask why you want
if(location.href.indexOf("?.jpg") == -1) location.href += "?.jpg";
|
|
|
right now i have to add specific sites, is there any way to do that for all sites? |
|
|
Add *to the include list. The asterisk means all sites. |
|
|
[...] or else your url bar will get infinitely filled up with ?.jpg's.That's a very good point. That one's a schoolboy error, but one that I seem to make surprisingly often. |
|
|
lol znerp |
|
|
Im not sure how it is an useful script, but ive put JoeSimmons' code into a .user.js file so you can install it without having to do it yourself :P |
|
|
... why? |
|
|
So did I: |

