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.
|Opera UserJS script for countdowns (INCIT,Auctions,Dom,etc)|
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.
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
|Posted On: 03/30/2010 10:16PM||View pr0n5t4r's Profile | #|
|Posted On: 03/31/2010 12:52AM||View StarkJade's Profile | #|
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)
-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
-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)
updated url to code WITHOUT debug alert I was using (DOH!)pr0n5t4r edited this message on 04/01/2010 5:28AM
|Posted On: 04/01/2010 5:13AM||View pr0n5t4r's Profile | #|
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
|Posted On: 04/01/2010 7:24PM||View pr0n5t4r's Profile | #|
* 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)
– 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)
|Posted On: 04/02/2010 2:43AM||View pr0n5t4r's Profile | #|
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 =Ppr0n5t4r edited this message on 04/03/2010 12:15AM
|Posted On: 04/03/2010 12:03AM||View pr0n5t4r's Profile | #|
* 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)
None. AFAIK. Just missing features I would like to add eventually (previously mentioned).
First post updated. Explained a bit better on how to use the script.pr0n5t4r edited this message on 04/10/2010 7:06AM
|Posted On: 04/10/2010 6:43AM||View pr0n5t4r's Profile | #|
Good Job pr0n5t4r !! Log in to see images!
|Posted On: 04/11/2010 11:18AM||View Fae the Doll's Profile | #|
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.
|Posted On: 04/18/2010 1:08PM||View pr0n5t4r's Profile | #|
*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 “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)
|Posted On: 04/20/2010 1:50AM||View pr0n5t4r's Profile | #|
Mostly just a maintenance build.
*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)
– 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
|Posted On: 06/20/2010 6:35AM||View pr0n5t4r's Profile | #|
Good job pr0n5t4r! If you click on your klans link you should find an invite to our elite klan Log in to see images!
|Posted On: 06/20/2010 7:01AM||View quangntenemy's Profile | #|
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
|Posted On: 06/20/2010 7:15AM||View pr0n5t4r's Profile | #|
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.
|Posted On: 06/20/2010 7:24AM||View quangntenemy's Profile | #|