Posts by JoeSimmons on scripts

Subscribe to Discussions on your scripts 336 posts

7 hours ago

MonkeyBarrel: Minute improvement

search_uri = search_uri + query to search_uri += query.

 
7 hours ago

Highlight2Translate: Small error

I found a small error. The script still works (great job) but this is what I get in the error console...

Error: document.getElementsByTagName("body")[0] is undefined
Line: 10

I fixed it with just replacing that with document.body. Works great. Keep up the good work.

By the way, you should use xpath instead of getElementsByTagName, it's faster.

 
Dec 1, 2008

Google's Old Favicon: Improvements

I made a couple of improvements, hope you don't mind.

1- Setting variables before defining them is faster.
2- Shortened code by using .type, .rel, and .href.
3- Switched to xpath instead of getElementsByTagName (it's faster)

var vodka, head;
head = document.evaluate("/html/head", document, null, 9, null).singleNodeValue;
vodka = document.createElement('link');
vodka.type = 'image/x-icon';
vodka.rel = 'shortcut icon';
vodka.href =  'data:image/x-icon;base64,AAABAAEAEBAAAAAAAABoBQAAFgAAACgAAAAQAAAAIAAAAAEACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAwMDAAICAgAAAAP8AAP8AAAD//wD/AAAA/wD/AP//AAD///8A//3/AP39/wD6/f8A+P3/AP/8/wD9/P8A+vz/AP/7/wD/+v8A/vr/APz6/wD4+v8A+/n/APP5/wD/+P8A+vj/AO/4/wDm+P8A2fj/AP/3/wD/9v8A9vb/AP/1/wD69f8A9PT/AO30/wD/8/8A//L/APnx/wD28P8A///+APj//gD2//4A9P/+AOP//gD//f4A6f/9AP///AD2//wA8//8APf9/AD///sA/v/7AOD/+wD/+vsA9/X7APr/+gDv/voA///5AP/9+QD/+/kA+e35AP//+ADm//gA4f/4AP/9+AD0+/gA///3APv/9wDz//cA8f/3AO3/9wD/8fcA//32AP369gDr+vYA8f/1AOv/9QD/+/UA///0APP/9ADq//QA///zAP/18wD///IA/fzyAP//8QD///AA9//wAPjw8AD//+8A8//vAP//7gD9/+4A9v/uAP/u7gD//+0A9v/tAP7/6wD/+eoA///pAP//6AD2/+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YS1UQ89Mmg5cXNaX0EkGyyI3KSsp6mvpaqosaatq7axsQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=';
head.appendChild(vodka);

 
Nov 29, 2008

Full Screen RS F2P!: Optimizations

I made some optimizations you might like...
1- Setting variables before defining them is faster.
2- Shortened code by adding del() and $()
3- You were deleting "tb" twice.
4- Replaced 2 indexOf's with one RegExp.

function $(id) {return document.getElementById(id);}
function del(n) {if(n) n.parentNode.removeChild(n);}

var ad, nav, currentpage;

currentpage = window.location.href;

ad = $("tb");
del(ad);

if(/runescape\.com\/(l|p)/.test) {
nav = $("menubox");
del(nav);
}

Btw would you mind if I used your screenshot on my version of this script?

 
Nov 26, 2008

Runescape Ad Remover: Optimizations

You call the function getElementsByTagName a lot.
You should do it once, store it in a variable, and call it like that.
Even beter (and faster) you should use xpath.

 
Nov 26, 2008

CBS Press Express Direct Images: Update?

Are you logged in?

 
Nov 25, 2008

YouTube Prevent Autoplay (HQ Version): Add HD 720p option?

I tried but most videos right now don't have an 720p hd version and don't play when you click play.
So until I incorporate a way to check with an xml request if 720p exists, this script will stick with fmt=18.

 
Nov 25, 2008

CBS Press Express Direct Images: Update?

Oh I found a bug in it, my bad. Does it work now?

 
Nov 24, 2008

07bux and Mifriend Auto Click: lokomotivptc.com

Because you need to read the title again. It's for 07bux and mifriend.

 
Nov 19, 2008

CBS Press Express Direct Images: Update?

It has been updated, and with regular expressions so it is faster.
Cheers.

 
Nov 16, 2008

Bux.to Auto Click [WORKING]: Archived Comments

Nah I think any more than that and people will just get frustrated.
At the present time being, bux.to does not even count when you refresh, so it is not a threat.

 
Nov 16, 2008

Bux.to Auto Click [WORKING]: Archived Comments

I don't think that's possible because of peoples' internet connections being at different speeds but what I did was this...
I removed the 'Ad wait time' option. Then I added a semi-random 35-41 second ad wait time.

 
Nov 16, 2008

YouTube High Quality Revised [nov 08] [+autoplay off option]: Archived Comments

Think you could combine Prevent Autoplay and this script? I would love it.

 
Nov 16, 2008

Youtube Prevent Autoplay: Archived Comments

BTW, do you know why < blockquote > doesn't seem to be working in comments anymore?
It works, it's just invisible.
Install my script here and it makes them look nice. Also a faster Stylish version here.

Btw avg, I like the old player because you can click anywhere on the player to start it... the new one you have to click right on the button. Also I like the seeking more on the old one, it seems more precise.

 
Nov 15, 2008

Bux.to Auto Click [WORKING]: Archived Comments

You're welcome.
You can't put alertpay money on paypal? I hope me accumulating $10 there is going to be able to go to paypal through alertpay.

 
Nov 13, 2008

Bux.to Auto Click [WORKING]: Archived Comments

Sorry. Updated it now. All working.

 
Nov 13, 2008

Google Un-safe Search: Archived Comments

I think I fixed it. Try it now.
If not, please explain the problem in detail.

 
Nov 11, 2008

Yahoo Auto Login: Archived Comments

No I can't. You can enter your password and click remember on Gmail. You can't on Yahoo so I made this.

 
Nov 8, 2008

Middle click images to view: Archived Comments

Both those pages work now.
Upgrade the script.
Thanks for the input.

 
Nov 7, 2008

Middle click images to view: Archived Comments

Can you use firebug and give me the exact src of that image then?

 
Nov 7, 2008

Auto Refresh: Archived Comments

Ok TomG I added that. Thanks for the great suggestion.

 
Nov 7, 2008

Demonoid Auto Sort By Seeds: Archived Comments

Thanks Archonyx.
I just added a little tweak so it (most times) wont reload after doing a search by changing the 'sort' value in the form from blank to 'S'. Enjoy.

 
Nov 6, 2008

Dingobux Auto Click: Archived Comments

You still have to click the number after.
My contact info is on my site.

 
Nov 5, 2008

Middle click images to view: Archived Comments

That's because it changes the onClick. I'll fix that with addEventListener.

Edit: Ok I made them open in a new tab (if the option is enabled [true]) and work on forums like you wanted.
And ekb, please tell me the forum you're using so I can exclude these images from this script so it wont display the images when you're trying to click the link button or any other one.

Edit again: I added the middle click availability and made it default. There is an option to change to left click to view also.

 
Nov 5, 2008

Middle click images to view: Archived Comments

Could "middle click opens in a new tab" be added?

I'll see to it.