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

userscript support throd

Name: aeosynth !zdxFBW2hCw 2010-02-14 21:28

instead of registering on us.o just to make one post, you can use this thread. questions, comments, feature requests, patches are all fine.

I'll provide support for everything listed at http://userscripts.org/users/64431/scripts.

Name: aeosynth !zdxFBW2hCw 2010-02-14 21:54

oh, and if you're making a bug report, please try to provide a stack trace - http://userscripts.org/topics/30737.

Name: Anonymous 2010-02-15 7:18

Hey aeosynth, I'm using your thread watcher for the text boards and I was wondering if you could devlope a thread hider, like in 4chanx.

Many thanks.

Name: aeosynth !zdxFBW2hCw 2010-02-15 15:15

Developing a mini 4chan x for the text boards is something I've thought about, but it's low on my priorities right now. Sorry :(.

Name: Anonymous Z 2010-02-16 5:32

Has anyone really been far even as decided to use even go want to do look more like?

Name: Anonymous 2010-02-16 11:45

Name: Anonymous 2010-02-17 4:40

How can you get 4chan time to work on the text boards?

Name: aeosynth !zdxFBW2hCw 2010-02-17 6:55

>>7
I guess I could seperate date parsing from date manipulation, then check the url to see which parser to use. Give me a sec....

Updated.

Name: Anonymous 2010-02-17 8:29

>>8
Cheers. It works except there's some brackets that appear after the date :

02/17/2010()06:55AM

Name: 9 2010-02-17 8:31

Forgot to mention the brackets only appear on the text boards.

Name: Anonymous 2010-02-17 15:35

How come insta-click doesnt work on google searches?

Name: aeosynth !zdxFBW2hCw 2010-02-17 19:03

>>9
>>10
actually the brackets appear on the imageboards too, you just don't notice it because they're being used to enclose the day of the week. the text boards don't display the dotw, so the brackets are empty there. change the date formatting yourself.

I guess I could extract the formatting into a seperate function, too; that would probably be easier than figuring out the dotw based on the timestamp.

>>11
b/c insta-click only sees the links available at page load, while google uses ajax to insert more links after page load. let me fix that....

Updated.

Name: Anonymous 2010-02-18 8:14

>>12
I found a third option - include the bracketsparens in the matches.

4chan time updated.

Name: Anonymous 2010-02-18 8:33

is there a way to make /b/ackwash compatible with fychan? because it doesn't work for me

Name: Anonymous 2010-02-18 16:01

>>12
Cheers.

How did you learn to code? How many languages do you know?

Name: Anonymous 2010-02-18 18:28

>>15
It is more valuable to learn how to design programs than the number of languages you've experienced. http://htdp.org

Name: aeosynth !zdxFBW2hCw 2010-02-18 18:49

>>14
/b/ackwash reloaded works fine for me in opera 10.50 with fychan and 4chan x.

>>15
you can read my origin story at http://aeosynth.wordpress.com/2009/09/29/goodnight/. basically, I learned to code by writing code. javascript is really the only programming language I'm comfortable with atm.

Name: Anonymous 2010-02-18 21:41

Hey man, I was wondering if you could add easymodo on the related boards (/a/  /jp/  /m/  /sp/ ). Sometimes, the archive has sauce for images.

Name: Anonymous 2010-02-18 21:50

Also, now that "Quick post" has been removed, I've noticed that sometimes the thread updater duplicates the posts you make.
http://i46.tinypic.com/2q0lgqq.jpg

Browser is opera 10.50

Name: Anonymous 2010-02-18 21:54

>>18
If you're talking about 4chan sauce, add whatever url works to the prefix array.

Name: Anonymous 2010-02-18 21:59

>>20
I am talking about 4chan sauce, but it uses the md5 (4chan has an md5 attribute for images, though) of the images instead of the location.

I tried doing it myself, but I failed.

Name: Anonymous 2010-02-18 22:03

>>21
an example would be http://archive.easymodo.net/cgi-board.pl/{board}/image/{hash}

Name: aeosynth !zdxFBW2hCw 2010-02-18 23:19

>>22
that is so not getting implemented.

Name: Anonymous 2010-02-19 1:10

>>23
;-;
Ok, I'll try again. How do I get it to work with the thread updater, though?

Name: Anonymous 2010-02-19 11:05

>>17
hmm. I use operaUSB (opera-usb.com). do you see any reason why this could be a problem?

Name: Anonymous 2010-02-19 11:25

>>25
here.
just tested with a default install.

fychan, 4chan filter works
4chanX, backwash doesn't

with the USB install only fychan works

of course I installed the gmfunctions emulator, made sure that loads first and that backwash loads after 4chanX

any ideas?

Name: Anonymous 2010-02-19 11:25

Do you know regex?

Name: Anonymous 2010-02-19 11:53

>>27
who are you talking to?

Name: aeosynth !zdxFBW2hCw 2010-02-19 18:02

>>26
stack trace plox. I don't support opera usb, only the normal Opera. 10.50+ is required now for json support, and the emulator isn't needed anymore.

so - make sure 4chan x is the only script in your userscript folder, reload a 4chan page, look for errors in the error console. repeat for backwash.

>>24
4chan sauce should work w/ the updater....

Name: Anonymous 2010-02-20 5:26

>>28
aeosynth

Name: aeosynth !zdxFBW2hCw 2010-02-20 6:49

>>27
>>30
that is a bad question and you should feel bad

Name: Anonymous 2010-02-20 9:14

>>31
? Regex is commonly used in javascript.

Name: Anonymous 2010-02-20 16:09

>>32
Of course he knows RegEx

Name: Anonymous 2010-02-20 16:09

why is this in comp and not prog?

Name: Anonymous 2010-02-20 16:24

>>34
Because of tradition.

Name: aeosynth !zdxFBW2hCw 2010-02-20 22:28

>>34
/prog/riders don't need support.

>>35
also this.

Name: Anonymous 2010-02-21 11:55

/prog/ is gay

Name: Anonymous 2010-02-21 12:34

Wha do I add to the 4chan filter to make it block all users who use trips?

Name: Anonymous 2010-02-21 13:14

>>38
!

Name: Anonymous 2010-02-22 16:20

Hey I'm using this thread filter but I get bands where the threads are hidden.


// ==UserScript==
// @name ShiichanFilter
// @namespace 4ch
// @include http://dis.4chan.org/*;
// ==/UserScript==
function gcl(vclass){return document.getElementsByClassName(vclass)}
var filt=/test1|text2|text3/gim;
var filt2=/name1|name2|name3/gim;
var filt3=/thread1|thread2|thread3/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");}}


Is there a way to modify the above code to make it hide threads the way this script does? :



var threads, thread;
threads = document.evaluate("//div[@class='border']", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
for (var i = 0; i < threads.snapshotLength; i++) {
  thread = threads.snapshotItem(i);
  if (-1 != thread.childNodes[3].childNodes[3].childNodes[1].childNodes[1].textContent.search(/200[4-8]-[0-9][0-9]-[0-9][0-9] [0-9][0-9]:[0-9][0-9]/g)) {
      thread.style.display = "none";
  }
}

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