Buy Official Merchandise!
Forumwarz is the first "Massively Single-Player" online RPG completely built around Internet culture.

You are currently looking at Flamebate, our community forums. Players can discuss the game here, strategize, and role play as their characters.

You need to be logged in to post and to see the uncensored versions of these forums.

Log in or Learn about Forumwarz

Civil Discussion
Switch to Role-Playing Civil Discussion
Smile Opera UserJS script for countdowns (INCIT,Auctions,Dom,etc)

pr0n5t4r

Avatar: Boobs
3

[WeChall]

Level 40 Camwhore

“Lingeriepist”

This will change the title of each forumwarz tab, with a timer, to the tabs countdown timer.

There are some config variables you can use to change the look, etc.

v1.4.1

http://pastebin.com/6EYpnP2K

Create a folder named “OperaScripts” in My Docments.

Save the code as (download) WhateverYouWant.js in that folder

Load it up in right-click(empty area on ForumWarz)->site preferences->Scripting->Browse->(folder you saved to)

Log in to see images! pr0n5t4r edited this message on 06/20/2010 6:43AM

StarkJade

Avatar: 27559 2010-03-31 16:35:19 -0400
108

[Phantasmagoric Spl-
endor
]

Level 69 Emo Kid

Better Living Through Chemicals

COOLNESS!

pr0n5t4r

Avatar: Boobs
3

[WeChall]

Level 40 Camwhore

“Lingeriepist”

http://pastebin.com/kga51Qye

highly improved version

*script now exits if there is no countdown (save resources maybe)

*only fires after countdown.js is fired (I suspect it was run multi versions per loaded script!)

*moved config variables to top for easy editing

*URL checks for desired URLs to use this script (delete the ones you dont want tracked)

*should be lag-proof code as it waits til the countdown element is actually loaded (not null)

known bugs:

-still horrible code for grabbing time (incorrect when a value is zero)

-only incit and auctions useShort works for now

-“end of round” for incit still broken for useShort

just gotta completely re-write the time grabber for useShort and I can “pretty up” incit with new features

like:

-add submissions/bumholes to title

-append type (dom,incit,etc) to title

-possibly an alert for 2 minute warning on auctions

-alert for incit voting or end of auction, etc

-stop timer/script when reaching zero (FB,IB,visits,dom) with alert and/or title change (“Finish” etc)

edit:

updated url to code WITHOUT debug alert I was using (DOH!)

pr0n5t4r edited this message on 04/01/2010 5:28AM

pr0n5t4r

Avatar: Boobs
3

[WeChall]

Level 40 Camwhore

“Lingeriepist”

another bug:

pages with “soft” tabs (versus hard tabs like “bookmarks” ) that remove the countdown element (like character/me) will break (or exit) the script. the last update sticks (time is “frozen” ).

prolly just need to store the original title and restore it on exit (if it didnt crash)

apparently I did fix the useShort in last update for incit “end of round”.

didn’t catch it in my testing or forgot to test it…

pr0n5t4r edited this message on 04/01/2010 7:25PM

pr0n5t4r

Avatar: Boobs
3

[WeChall]

Level 40 Camwhore

“Lingeriepist”

http://pastebin.com/f0FRXkCc

v1.2

* Added lots and lots of comments

* Added even more variables to the top (easily untrack pages)

* Cleaned up code

* Added offset fixes for character/me, item_buildr, and forum_buildr

* Added submissons and bumholes to title on INCIT only (non-crashing so far)

Known bugs:

– The countdown grab code is still gay as 0 values are lost and time becomes incorrent

– “Soft” tabs still break script (character/me)

– Timer gets stuck at 1s when the countdown element disappears (auctions)

pr0n5t4r

Avatar: Boobs
3

[WeChall]

Level 40 Camwhore

“Lingeriepist”

http://pastebin.com/Bta6nLi9

v1.2.2

2 small updates:

* Fixed character/me (is there any others?) “soft” tabs breaking script (will restore original title and keep trying to grab the countdown until it is found again)

* Fixed INCIT bumholes/submissions only showing first char

New bugs (last version too):

-INCIT seems to break on first load sometimes. Just give it a refresh and it should work until you close the tab.

Gunna work on revamping the whole time grab code.

Please leave comments etc so it doesn’t seem I’m talking to myself.

If noone is interested, then I will just stop posting updates =P

pr0n5t4r edited this message on 04/03/2010 12:15AM

pr0n5t4r

Avatar: Boobs
3

[WeChall]

Level 40 Camwhore

“Lingeriepist”

http://pastebin.com/eZWZK6Xk

v1.3.1

Added:

* Complete rewrote the time grabber code

* Small fixes to INCIT (2-3 rounds without crashing! woot!)

* Re-rewrote time grabber code a bit

* Fixed null/URL title with ”...” for now (will probably apply to finished auctions, so keep that in mind)

Bugs:

None. AFAIK. Just missing features I would like to add eventually (previously mentioned).

Edit:

First post updated. Explained a bit better on how to use the script.

pr0n5t4r edited this message on 04/10/2010 7:06AM

Fae the Doll

Avatar: 226561 2010-03-01 22:10:21 -0500
8

[Island of Avalon]

Level 26 Emo Kid

“Lopsided McHaircut”

Good Job pr0n5t4r !! Log in to see images!

pr0n5t4r

Avatar: Boobs
3

[WeChall]

Level 40 Camwhore

“Lingeriepist”

OK, so…

Appears my “lag-proof” doesn’t work at all, and I don’t know why.

Which is really sh*tty when you have crap wireless.

Also, the sub/bum code breaks incit still (dunno how I got it to work in testing for so long).

I suspect it has to do with the countdown temp disappearing and/or the links count changing causing the bumholes to be wrong.

Can’t be arsed to mess with it right now, unless someone wants to lend a hand or someone REALLY convinces me to fix it up.

pr0n5t4r

Avatar: Boobs
3

[WeChall]

Level 40 Camwhore

“Lingeriepist”

v1.4.0

http://pastebin.com/1D9QjKD4

Changes:

*Lag-proofing fixed. Seems to be perfect. You can even stop loading the page (images won’t load) and the script will load the countdown fine.

*INCIT should be fixed due to new lag-proofing code

*Fixed a NullPointerException in lag-proofing (see above two)

*Expanded “bumholes” search just in case as submission links can vary greatly

*Added some debugging code/options (how I found the NPE). Use “javascript: dbg()” (no quotes/space! avoiding smilie) in the address bar to see log

*Added “VOTING!” to beginning of title for voting page for INCIT. Best I can do for now as sounds are difficult to do and an alert (msgbox) would only work if the tab is selected (unlike FF and it’s script)

Bugs:

None this time. Pretty sure. If you find one, try enabling debug options, use “javascript: dbg()” (no quotes/space! avoiding smilie) in the address bar and post the log (you can select the text in the popup!).

pr0n5t4r edited this message on 04/20/2010 2:04AM

pr0n5t4r

Avatar: Boobs
3

[WeChall]

Level 40 Camwhore

“Lingeriepist”

v.1.4.1

http://pastebin.com/6EYpnP2K

Mostly just a maintenance build.

Changes:

*removed now useless code (checking for script load, load on script load, etc. lag-proof code fixed those problems).

*rephrased some comments and removed commented (unused) code

*added function to change title after finish (all but INCIT because it loops so fast and never “ends” )

*added new config variable allowEnd to allow things like ForumBuildr to end (with end title) instead of loop back around.

*renamed some functions and variables

*changed from global variable for times to local variable and a function that returns an array (proper I suppose)

*added a check for non empty newTitle (has time left) with 0 seconds to add 0 seconds to title instead of drop it when not using useZeros (conform to style of FW timer)

*added check at start up script for finished auctions (there are no timers on this at all)

*added check for 0d0h0m1s left to optionally end timer (or always for auctions)

Bugs:

– None. Haven’t entirely tested the new code. 1.4.0 was so stable, I have a feeling that this new version will regress. Please let me know if I borked something.

pr0n5t4r edited this message on 06/20/2010 6:37AM

quangntenemy

Avatar: 14557 2011-10-31 11:07:55 -0400
59

[WeChall]

Level 69 Troll

:ronpaul: :****ing sucks:

Good job pr0n5t4r! If you click on your klans link you should find an invite to our elite klan Log in to see images!

pr0n5t4r

Avatar: Boobs
3

[WeChall]

Level 40 Camwhore

“Lingeriepist”

Accepted, though I doubt I will do much klan stuff (reason I didn’t accept it months ago).

Got a problem in my script. =/ Seems it stops at 2 seconds left (title is “2s”Log in to see images! and the script exits (more like: crashes).

I’ll mess with it later. If you want the stable script, stick with 1.4.0.

After this, I will prolly look into converting to a greasemonkey script and make sure it works with both opera and greasemonkey-enabled browsers.

pr0n5t4r edited this message on 06/20/2010 7:17AM

quangntenemy

Avatar: 14557 2011-10-31 11:07:55 -0400
59

[WeChall]

Level 69 Troll

:ronpaul: :****ing sucks:

pr0n5t4r Posted:

Accepted, though I doubt I will do much klan stuff (reason I didn’t accept it months ago).

Got a problem in my script. =/ Seems it stops at 2 seconds left (title is “2s”Log in to see images! and the script exits (more like: crashes).

I’ll mess with it later. If you want the stable script, stick with 1.4.0.

After this, I will prolly look into converting to a greasemonkey script and make sure it works with both opera and greasemonkey-enabled browsers.

Welcome to our elite klan Log in to see images!

I think you should register an account at userscripts.org and put your script there.

Internet Delay Chat
Have fun playing!
To chat with other players, you must Join Forumwarz or Log In now!