Are you, in fact, a pregnant lady who lives in the apartment next door to Superdeath's parents? - Commodore

Create an account  

 
Greasemonkey script to avoid spoiler threads

Some of us are testing the RBClassic themes, and have discovered that the "thread icon" column in them has been removed, thus screwing with this script. Fortunately, that's pretty easily fixed, and I took the liberty of doing so. Now the block/unblock link appears immediately below the thread's status icon.

Script here: http://nwcs.com/~jvc/gaming/rb/newstyle/...er.user.js

Hope this helps!
Participant in:
PBEM45, "Greens" Division (Sury of Carthage)
RB Demogame 1 pirate
Reply

Below, or next to?
Reply

Thanks for helping out, Viqsi. Looks like it's working well, so I copied it into my dropbox, "updating" the link in the first post.

RBClassic is looking great, btw. The white on green is very comfortable.
If you know what I mean.
Reply

(October 23rd, 2012, 13:49)NobleHelium Wrote: Below, or next to?

In my tests it showed up below. Next to also theoretically works, tho.

EDIT: This here is what I get:

Participant in:
PBEM45, "Greens" Division (Sury of Carthage)
RB Demogame 1 pirate
Reply

It shows up on the bottom for me.

One note that I'm not sure if it's intentional or not - the script does not seem to work on the "Today's Posts" search result screen
Reply

(October 26th, 2012, 09:54)regoarrarr Wrote: It shows up on the bottom for me.

One note that I'm not sure if it's intentional or not - the script does not seem to work on the "Today's Posts" search result screen

Unintentional; that page for some reason doesn't have the same CSS classes as every other thread listing. Was looking at that and I'm kind of hoping to find a workaround eventually.
Participant in:
PBEM45, "Greens" Division (Sury of Carthage)
RB Demogame 1 pirate
Reply

How are you selecting it right now, exactly?
Reply

(October 26th, 2012, 21:05)NobleHelium Wrote: How are you selecting it right now, exactly?

As written by zakalwae, it looks for a "showthread.php" link within a span within a div within a table cell that is classed as "forumdisplay" something within a table row. Search pages don't have any of the "forumdisplay" classes on them, for whatever reason.

At one point, I'd tried removing the check for the "forumdisplay" class just to see doing so broke anything else. It didn't appear to, but it also didn't change anything on the New Posts page. However, when looking again just now to refresh my memory, I also discovered that with regard to adding in those buttons it only checks on "forumdisplay.php" and "index.php", and no other pages. So I added "search.php" to that list and diked out the "forumdisplay" class check, and voila!

Result here: http://nwcs.com/~jvc/gaming/rb/newstyle/...er.user.js (same link as before). Warning: you may also get buttons on totally unrelated things on realmsbeyond.net (although I haven't seen such and I've been running with that particular change for a few days now).
Participant in:
PBEM45, "Greens" Division (Sury of Carthage)
RB Demogame 1 pirate
Reply

Looks good, I made it "official" by copying your change. I generally try to be a little careful with my XPATH expressions, keeping them reasonably restrictive. But since it's still only modifying rows where there's a link to a thread, this should still be pretty robust.
If you know what I mean.
Reply

Looks like something else has broken this script again frown
Reply



Forum Jump: