Off Topic > Drama
Blockland Greasemonkey Scripts
SpreadsPlague:
his script blocks posts with quotes, yes
CityRPG:
--- Quote from: Wedge on January 20, 2012, 09:15:51 PM ---I set it to this:
--- Code: ---if(localStorage.blockList == undefined) localStorage.blockList = ("Wedge");
if(localStorage.whiteList == undefined) localStorage.whiteList = ("Badspot,Ephialtes,Rotondo,kompressor");
--- End code ---
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.
--- End quote ---
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.
DontCare4Free:
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.
Wedge:
--- Quote from: CityRPG on January 20, 2012, 09:18:22 PM ---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.
--- End quote ---
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.
CityRPG:
--- Quote from: Wedge on January 20, 2012, 09:21:21 PM ---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.
--- End quote ---
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.
--- Quote from: DontCare4Free on January 20, 2012, 09:20:59 PM ---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.
--- End quote ---
jQuery isn't used anywhere by SMF.