Author Topic: Blockland Greasemonkey Scripts  (Read 41011 times)

it's easier to ignore a -snip- than it is to avoid some idiot saying something so mind-bogglingly stupid that you /have/ to reply to them.

This all sounds like crazy talk to me. Ignore a blocked out snip? How is this possible, I don't even.

I need a script to ignore the -snip- of the blocked user I am ignoring because I can't ignore things on my own terms.

I promise to promptly abuse the trust you have given to me by stuffposting everywhere.

Seriously though, I'm going to put myself on the blacklist and see what it does :o

This all sounds like crazy talk to me. Ignore a blocked out snip? How is this possible, I don't even.

I need a script to ignore the -snip- of the blocked user I am ignoring because I can't ignore things on my own terms.
you wouldn't understand since you're one of the users saying those mind-bogglingly handicapped things.
No. I'm not adding a -snip-. If you know a post is there you're going to disable the mod to check and see what it is. Human curiosity dictates such.
the shortage of posts on a page would make a tell more subtle than a -snip- but could still trigger curiosity

either way the mod is useless in helping you avoid people, it's useful in making it so, again, you don't have to see their stuff.

if you actually have that high of a curiosity either disable it or enable it to a certain thread where you just don't want to see anything at all.

I promise to promptly abuse the trust you have given to me by stuffposting everywhere.

Seriously though, I'm going to put myself on the blacklist and see what it does :o
Haha ;D

It checks the whitelist before the blacklist. Adding yourself to the blacklist will do nothing.

Haha ;D

It checks the whitelist before the blacklist. Adding yourself to the blacklist will do nothing.
I set it to this:
Code: [Select]
if(localStorage.blockList == undefined) localStorage.blockList = ("Wedge");
if(localStorage.whiteList == undefined) localStorage.whiteList = ("Badspot,Ephialtes,Rotondo,kompressor");

For some reason it blocks your most recent post when I do this. Is it because of your quote? The rest of my posts appear fine.

his script blocks posts with quotes, yes

I set it to this:
Code: [Select]
if(localStorage.blockList == undefined) localStorage.blockList = ("Wedge");
if(localStorage.whiteList == undefined) localStorage.whiteList = ("Badspot,Ephialtes,Rotondo,kompressor");

For some reason it blocks your most recent post when I do this. Is it because of your quote? The rest of my posts appear fine.
Yes. If someone quotes a blocked post, it blocks that as well.

localStorage definitions aren't set each time the page loads, it's constant data similar to cookies but entirely client-side. If you're changing stuff, be sure to define localstorage.blockList in the developer's console/firebug/etc.

The "master ignore script" screws stuff up because it overrides "$"  because it loads jQuery. $ is already used by Prototype.JS, or whatever similar thing BLF uses.

Yes. If someone quotes a blocked post, it blocks that as well.

localStorage definitions aren't set each time the page loads, it's constant data similar to cookies but entirely client-side. If you're changing stuff, be sure to define localstorage.blockList in the developer's console/firebug/etc.
I've actually just been changing the script in notepad and then reinstalling it every time because I am dumb and do not know anything about javascript.

I've actually just been changing the script in notepad and then reinstalling it every time because I am dumb and do not know anything about javascript.
Still doesn't work. localStorage is a small text file associated with the domain name. Gotta define localStorage.blockList directly. Remove the if() statements before the definitions and the script will do it for you, but this will break the add/remove stuff.

The "master ignore script" screws stuff up because it overrides "$"  because it loads jQuery. $ is already used by Prototype.JS, or whatever similar thing BLF uses.
jQuery isn't used anywhere by SMF.

I've actually just been changing the script in notepad and then reinstalling it every time because I am dumb and do not know anything about javascript.
Assuming you use Chrome, to edit the localStorage, press F12, then click the "Resources" tab, then in the tree to the left, select Local Storage -> forum.blockland.us. Now you can edit it as a simple key/value store.

jQuery isn't used anywhere by SMF.
SMF uses Prototype.js. Or at least something with an identical API. PJS defines $ as a shortcut for document.getElementById. PJS $ is overridden by jQ $ because of the following snippet in the beginning of ignore-users.user.js:
Code: [Select]
function addJQuery(callback) {
// Creates script element.
var script = document.createElement("script");

// Inserts the Google CDN script as the source.
script.setAttribute("src", "http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js");

// Calls the callback function upon load.
script.addEventListener('load', function() {
var script = document.createElement("script");
script.textContent = "(" + callback.toString() + ")();";
document.body.appendChild(script);
}, false);

// Adds the element.
document.body.appendChild(script);
}
« Last Edit: January 20, 2012, 09:25:49 PM by DontCare4Free »

SMF uses Prototype.js. Or at least something with an identical API. PJS defines $ as a shortcut for document.getElementById.
I can't find this script or this definition anywhere. Can you link me to the file and the page it is appearing on?

Success. I have managed to blacklist my own posts from the forum. Everything is so strange now.

Success. I have managed to blacklist my own posts from the forum. Everything is so strange now.
...

what

Success. I have managed to blacklist my own posts from the forum. Everything is so strange now.
What a wonderful usage of my script~