Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Script Request

Name: Anonymous 2011-02-15 11:09

FrozenVoid,

Could you make a thread hider for world4ch ? So that each thread has an icon associated with it (a + symbol would do) and on.click the thread would be hidden ?

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2011-02-15 11:13

Search on userscripts.org

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2011-02-15 11:20

1. You're not going to repeat clicking to close same shitty threads every day.
2. That better done with a word filter which works on the post level.
3. You better just ignore these threads.

// ==UserScript==
// @name           ShiichanFilter
// @namespace      4ch
// @include        http://dis.4chan.org/*;
// ==/UserScript==
function loc(x){location.href=x};
function win(x){window.name=x};
function wtim(x,y){window.setTimeout(x,y)}
function wint(x,y){window.setInterval(x,y)}
function tt(x){document.title=x};
function id(x){return document.getElementById(x)};
function cr(x){return document.createElement(x)};
function tag(x,y){if(!y){return document.getElementsByTagName(x)}else{return x.getElementsByTagName(y)}};
function sa(x,y,z){x.setAttribute(y,z)};
function ga(x,y){return x.getAttribute(y)};
function ap(x,y){x.appendChild(y)}
function fl(e,x,y){e.elements.namedItem(x).value=y};
function gcl(vclass){return document.getElementsByClassName(vclass)}
var filt=/hax my anus/gim;
var filt2=/VIPPER/gim;
var filt3=/thread_name2/gim; //Links/threadnames
function tag(x,y){if(!y){return document.getElementsByTagName(x)}else{return x.getElementsByTagName(y)}};
function sa(x,y,z){x.setAttribute(y,z)};
var posts=tag('blockquote');var pl=posts.length;//hide by text
for(var d=0;d<pl;d++){if(posts[d].innerHTML.search(filt)!=-1){sa(posts[d].parentNode,'style','display:none')}else{sa(posts[d].parentNode,'style','display:inline')}}
var ss2=gcl("postername");//hide by postername
for(var d=0;d<pl;d++){if(ss2[d].innerHTML.search(filt2)!=-1){sa(ss2[d].parentNode.parentNode.parentNode,'style','display:none')}}
var st2=gcl("replies");//hide entire thread
for(var d  in st2){if(st2[d].parentNode.innerHTML.search(filt3)!=-1){sa(st2[d].parentNode.parentNode.parentNode,"style","display:none")}}
var sd2=tag("a");//hide thread from links
for(var d  in sd2){if(sd2[d].innerHTML.search(filt3)!=-1){sa(sd2[d],"style","display:none");}}


_____________________________________________
http://bayimg.com/image/iafhbaacj.jpg
orbis terrarum delenda est
http://encyclopediadramatica.com/Portal:Furfaggotry Furry Drama Encyclopedia

Name: Anonymous 2011-02-15 11:53

FrozenVoid, can you stop posting so I won't need any scripts to hide your messages?

Name: =+=*=F=R=O=Z=E=N==A=N=U=S=*=+= !frozEn/KIg 2011-02-15 12:30

REQUEST DENIED

Name: NOT OP 2011-02-15 13:13

I don't want to auto-ignore anything, I want buttons.

Use localStorage to keep a list of hidden threads.

Name: Anonymous 2011-02-15 13:27

>>6
{m local storage}?

Name: Anonymous 2011-02-15 13:30

>>3
you should fix the image in your sig

Name: Anonymous 2011-02-15 13:34

>>3
The real FV would never use [code] tags.

Name: Anonymous 2011-02-15 13:37

>>3
I'm not going to manually edit the script every time a shit thread pops up. This is why I asked for a
thread hider in the OP.

Name: Anonymous 2011-02-15 13:47

HIDE MY ANUS

Name: Anonymous 2011-02-15 16:01

FrozenVoid, when will you return to /g/?

Name: Anonymous 2011-02-15 16:21

I'm too lazy to put this into a userscript.

(function(){t=document.getElementsByClassName("thread");for(i=0;i<t.length;i++)t[i].childNodes[1].childNodes[1].innerHTML+=' <a onClick=\'this.parentNode.parentNode.parentNode.style.display="none"\'>✖</a>'})()

Name: >>13 2011-02-15 16:22

(So, just put javascript: before it)

Name: Anonymous 2011-02-15 16:28

>>13
t.length inside the loop.
SLOW AS FUCK

Name: Anonymous 2011-02-16 0:02

>>15
m'eh, I'd be surprised if any of the major js engines couldn't optimize it.

Name: Anonymous 2011-02-16 0:04

>>15
1995 called they want to borrow some of the CPU cycles you're wasting on that OpenGL 3d screen saver.

Don't change these.
Name: Email:
Entire Thread Thread List