Tavern Blocker (greasemonkey script)

For script writing
Post Reply
User avatar
lostcalpolydude
Forum Maestro
Posts: 2940
Joined: Wed Apr 23, 2008 6:54 pm

Tavern Blocker (greasemonkey script)

Post by lostcalpolydude » Tue Apr 07, 2009 4:46 am

Based on some of the conversations around here, and my fear of screwing it up myself eventually, I decided to make a script to prevent accidentally going to the Tavern. The script simply changes the post-quest tavern link to send you to the main page instead of to the tavern. Specifically:

*This script will block you from accidentally adventuring in the post-quest Tavern.
*This script will block you from intentionally adventuring there, say for beer lenses.
---This means you have to disable the script to get beer lenses, and you have to re-enable it afterward.

*This script will NOT prevent you from going to the pre-quest Tavern. This means that softcore people can turn it on and forget about it.
*This script will NOT do anything about you going there during Teleportitis.
*This script will NOT prevent you from using the Last Adventure link to go there again after getting beer lenses, though I think it would be simple to add that if people really want that feature.

The script can be downloaded here.
Last edited by lostcalpolydude on Tue Apr 07, 2009 5:18 pm, edited 1 time in total.
bmaher: Softcore character
lostcalpolydude: Hardcore character (abandoned)

Friederike
Pie in the Sky
Posts: 150
Joined: Wed Oct 03, 2007 8:18 am

Post by Friederike » Tue Apr 07, 2009 9:13 am

This doesn't do anything for me. Help?

User avatar
lostcalpolydude
Forum Maestro
Posts: 2940
Joined: Wed Apr 23, 2008 6:54 pm

Post by lostcalpolydude » Tue Apr 07, 2009 1:58 pm

So you tried clicking on the post-quest tavern, and it actually adventured there? It should still be a link, it just goes somewhere completely different. The script is only a few lines, so I'm not even sure where something could go wrong, and I've tested it every way I can think of (with and without mafia).
bmaher: Softcore character
lostcalpolydude: Hardcore character (abandoned)

User avatar
stupac2
Oh my! Guy with Pie!
Posts: 3027
Joined: Mon Dec 08, 2008 10:04 pm
Location: Stanford, CA
Contact:

Post by stupac2 » Tue Apr 07, 2009 8:43 pm

Worked fine for me.

So Very Invisible
AFH
Posts: 385
Joined: Sat Oct 11, 2008 8:56 pm
Contact:

Post by So Very Invisible » Tue Apr 07, 2009 8:54 pm

Just taking a quick look at the source, snarfblats aren't up in the 250s yet, right?

User avatar
lostcalpolydude
Forum Maestro
Posts: 2940
Joined: Wed Apr 23, 2008 6:54 pm

Post by lostcalpolydude » Tue Apr 07, 2009 9:09 pm

So Very Invisible wrote:Just taking a quick look at the source, snarfblats aren't up in the 250s yet, right?
That's a good point... as long as they aren't in the woods it isn't an issue at least.
bmaher: Softcore character
lostcalpolydude: Hardcore character (abandoned)

User avatar
stupac2
Oh my! Guy with Pie!
Posts: 3027
Joined: Mon Dec 08, 2008 10:04 pm
Location: Stanford, CA
Contact:

Post by stupac2 » Tue Apr 07, 2009 10:48 pm

Also, you break mafia's image replacement during the tavern quest.

User avatar
lostcalpolydude
Forum Maestro
Posts: 2940
Joined: Wed Apr 23, 2008 6:54 pm

Post by lostcalpolydude » Wed Apr 08, 2009 1:28 am

I can't reproduce that issue. The script doesn't run on that page (rats.php). Even when it does (after changing that to test), it has no effect. I was able to log out and log back in and still see those images.

Check that the images show up when you aren't using this script maybe?
bmaher: Softcore character
lostcalpolydude: Hardcore character (abandoned)

User avatar
lostcalpolydude
Forum Maestro
Posts: 2940
Joined: Wed Apr 23, 2008 6:54 pm

Post by lostcalpolydude » Wed Apr 08, 2009 5:28 am

Apparently this script didn't work in Seamonkey before. Now it does, thanks to Eleron.
bmaher: Softcore character
lostcalpolydude: Hardcore character (abandoned)

User avatar
stupac2
Oh my! Guy with Pie!
Posts: 3027
Joined: Mon Dec 08, 2008 10:04 pm
Location: Stanford, CA
Contact:

Post by stupac2 » Wed Apr 08, 2009 5:18 pm

lostcalpolydude wrote:I can't reproduce that issue. The script doesn't run on that page (rats.php). Even when it does (after changing that to test), it has no effect. I was able to log out and log back in and still see those images.

Check that the images show up when you aren't using this script maybe?
I clicked two squares with the script active, neither was replaced. I turned it off, then all remaining squares were replaced. So I'm pretty sure it was a bug for me.

I also figured it shouldn't happen there, so I'm not sure what was going on. One of us could make a new character to figure it out (since it needs an open tavern).

User avatar
lostcalpolydude
Forum Maestro
Posts: 2940
Joined: Wed Apr 23, 2008 6:54 pm

Post by lostcalpolydude » Wed Apr 08, 2009 5:25 pm

stupac2 wrote:One of us could make a new character to figure it out (since it needs an open tavern).
I went in on BAFH, where the tavern is currently open.
bmaher: Softcore character
lostcalpolydude: Hardcore character (abandoned)

Antipasta
AFH
Posts: 251
Joined: Fri Sep 21, 2007 5:24 pm

Post by Antipasta » Thu Apr 09, 2009 7:19 am

stupac2 wrote:Also, you break mafia's image replacement during the tavern quest.
I had this problem, too (in hardcore), and it went away as soon as I disabled the script.

Friederike
Pie in the Sky
Posts: 150
Joined: Wed Oct 03, 2007 8:18 am

Post by Friederike » Mon May 04, 2009 6:49 pm

[21:30] Hoopity: oh damnit
[21:30] Hoopity: clicked on the artist
[21:31] Friederike: lost needs to make a script that doesn't let you click there! :p
[21:31] Hoopity: agreed
:P

User avatar
lostcalpolydude
Forum Maestro
Posts: 2940
Joined: Wed Apr 23, 2008 6:54 pm

Post by lostcalpolydude » Tue May 05, 2009 10:40 am

It took about 1 minute, so here's Artist Blocker.
bmaher: Softcore character
lostcalpolydude: Hardcore character (abandoned)

Friederike
Pie in the Sky
Posts: 150
Joined: Wed Oct 03, 2007 8:18 am

Post by Friederike » Tue May 05, 2009 3:31 pm

Yay, down with art, long live technical science!

...I mean, thanks. :)

User avatar
lostcalpolydude
Forum Maestro
Posts: 2940
Joined: Wed Apr 23, 2008 6:54 pm

Post by lostcalpolydude » Thu Oct 01, 2009 8:23 pm

So Very Invisible wrote:Just taking a quick look at the source, snarfblats aren't up in the 250s yet, right?
I'm pretty sure no one cares, but I updated it so that this won't be a problem. Yay for trivial reasons to learn new stuff?
bmaher: Softcore character
lostcalpolydude: Hardcore character (abandoned)

Post Reply