Author Topic: Elecro is back, but we can do something about it  (Read 4593 times)

If we all do our part, and use a script that blocks everything having to do with elecro, nobody will have to deal with him.
It's a very simple script. You can apply it with tampermonkey for google chrome and greasemonkey for firefox
Code: [Select]
// ==UserScript==
// @name       Elecro Removal
// @namespace  http://forum.blockland.us/
// @version    0.2
// @description  something useful
// @include    http://forum.blockland.us/*
// @copyright  2012+, Kingdaro
// ==/UserScript==

var postForm = document.getElementById('quickModForm');
var posts = postForm.getElementsByTagName('tr');
var n = 'Electro';

var i;
for (i=0;i<=posts.length;i++){
var v = posts[i];
var str = v.innerHTML;

if (str.search(n)>-1){
posts[i].innerHTML = '<td class="windowbg" style=" \
border-style:solid; \
border-color:black; \
border-width:1px 1px 0 1px; \
text-align:center; \
">-spam-</td>';
}
}
Any post containing the word "Elect        ro" without spaces will get blocked
Credit to Kingdaro for the script

I don't really mind him tbh.

it would be nice if you can show how to ya know, insert the script?

it would be nice if you can show how to ya know, insert the script?
I think the Firefox extension is called Greasemonkey.

I thought the forums left smarter lately.

I think the Firefox extension is called Greasemonkey.
I have that already.

it would be nice if you can show how to ya know, insert the script?
Go download tampermonkey as a chrome extension, you can from there add a new script, then you paste in the script that king wrote.
From there, you have to save and enable it.

Go download tampermonkey as a chrome extension, you can from there add a new script, then you paste in the script that king wrote.
From there, you have to save and enable it.
I have firefox you dingus

I have firefox you dingus
you still paste the script into wherever you put scripts in greasemonkey

you still paste the script into wherever you put scripts in greasemonkey
thats what I don't know how to do

This works surprisingly well.

Expanded installation tutorial for firefox using greasemonkey.

1. Copy the code into the clipboard

2.

3.

Done.
« Last Edit: August 19, 2013, 12:12:09 AM by Pecon »

why does the script have his name as "Electro", his name is loving Elecro


wait where is he back

why does the script have his name as "Electro", his name is loving Elecro
his alt name is electro