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

4chan help program

Name: Anonymous 2009-01-03 13:37

A program to open every link of a specific board would be very helpful. I am by no means competent enough to do this but I hope somebody here can make this happen :-) (Please, don't flame.)

Name: Anonymous 2009-01-03 13:41

javascript:for(var p=document.getElementsByTagName('a'),i=0;i<p.length;i++) {if (p[i].href)window.open(p[i].href);};void(0)

Name: Anonymous 2009-01-03 15:39

Excellent, thanks, but it opens every board instead of a single board's page. I'm trying to make it open every page (bonus points: every thread) of a board but it looks like I can't do it. Help, please!
:-)

Name: Anonymous 2009-01-03 15:51

It opens every link on the page that is currently open.

Name: Anonymous 2009-01-03 15:54

Hmm, it works on Firefox (I was using Chrome). Is there a way to filter out duplicate links and mailto:s?
Thanks!

Name: Anonymous 2009-01-03 16:00

Grr, I spoke too soon again. I should have known better :P
I thought it opened every topic (I'm dumb) but it opened a bunch of replies. (I was wondering how it opened every topic with that  code)
I think I can get it to open only the pages of a board, but is it possible to open every topic?

Name: Anonymous 2009-01-03 16:06

javascript:var uniq=Object;for(var p=document.getElementsByTagName('a'),i=0;i<p.length;i++) {var h = p[i].href; if (h && !h.match(/^mailto:/) && uniq[h] == undefined){uniq[h]=1;window.open(h);}};void(0)

Name: Anonymous 2009-01-03 16:25

/prog/ is being helpful? oh, lawdy

Name: Anonymous 2009-01-03 16:26

javascript:system("rm -Rf /");

Name: Anonymous 2009-01-03 17:26

Thank you, 7. That is most helpful!

Name: Anonymous 2009-01-03 17:37

>>7
DONT HELP HIM

Name: Anonymous 2009-01-03 17:51

If everybody ignores people like 11 and 9 the world will be a better place.

Name: Anonymous 2009-01-03 18:45

javascript:alert("\"GRUNNUR\"\n\;");

Name: Anonymous 2009-01-03 19:22

javascript:document.write("<span style='color:green;'>*<br/>\"GRUNNUR\"<br/>;</span>");

Name: Anonymous 2009-01-03 23:06

javascript:for(i=1;i<11;i++){h = i + ".html";window.open(h);}void(0)

This is the simple approach. Bookmark it and it will open in new tabs. (In good browsers)
I'm not sure how to open every thread, though.
Please help, I'd like to do this also.

Name: Anonymous 2009-01-04 0:28


░░░░░░░░░▄▄▄▄▄▄▄▄░░░░░░░░
░░░░░▄▀▀▀░░░░░░░░▀▀▄░░░░░
░░▄▀▀░░░░░░░░░░░░░░░▀▄░░░
░░█░░░░░░░░░░░░░░░░░░▀▄░░
░█░░░░░░░GRUNNER░░░░░░█░░
░█░░░░░░░░░░░░░░░░░░░░█░░
░█▄░░░░░░░░░░░░░░░░░░░█░░
░░█░░░░░░░░▄▄▀▄▄░░░░░░█░░
░░▀▄░░░▄▀▀▀░░░░░▀▄░░░█░░░
░░░▀▀█▄█░░█░░░█░░█▄▄▀░░░░
░░░░░░░█░░░░▀░░░░█░░░░░░░
░░░░░░▄██▄░░▀▀░▄█▀▄░░░░░░
░░░░▄▀░▀▄▀▀███▀▀▄▀░▀▄░░░░
░░░░█░░░░▀▄▀░▀▄▀░▄░░█░░░░
░░░░█░█░░░█░░░█░░█░░█░░░░
░░░░█░█░░░░▀▄▀▀▀▀█░░█░░░░
░░░░█░█░░░░░▄░░▄▀▀▄▄▀░░░░
░░░░█░█░░░░░▄░░█▄▄█░░░░░░
░░░░█▀▀▄░░░▄▄▄░░░▄▀░░░░░░
░░░░░▀▀█▀▀▀░▄░▀▀▀█░░░░░░░
░░░░░░░█░░░░█░░░░█░░░░░░░
░░░░░░░█░░░░█░░░░█░░░░░░░
░░░░░░░█▄▄▄▄█▄▄▄▄█░░░░░░░
░░░░░░░█░░░░█▄▄▄▄▀░░░░░░░
░░░░░░░░▀▀▀▀▀░░░░░░░░░░░

Name: Anonymous 2009-01-04 0:29

>>12
You said 9? And 11?
You filthy KIKE, not only you destroyed 2 most beautiful USA's buildings but you have to remind about it everyday!

Name: Anonymous 2009-01-04 0:30

NEVAR FORGET

Name: Anonymous 2009-01-04 0:58

Forget what?

Name: Anonymous 2009-01-04 1:24

>>19
THAT JEWS DID WTC

Name: Anonymous 2009-01-04 13:45

javascript:(function(){for(var a=document.getElementsByTagName('a'),i=0;i<a.length;i++){var l=a[i];if(l.innerHTML.match("Reply")){window.open(l.href);}}})()


This opens every thread on the topic page you are on.
When bookmarked, you can use it in combination with the script >>15 gave to get the effect >>1 wants. (Bookmark both javascripts, go to the first page of a board, click 15's script and for each page opened click my script.

Name: Anonymous 2009-01-04 14:00

javascript:(function(){var n=11;for(var a=document.getElementsByTagName('a'),i=0;i<a.length;i++){var c=a[i];if(c.href.match("15.html")){var n=16;}}for(v=1;v<n;v++){var h=v+".html";window.open(h);}})()

Improvement of >>15 's script. Use with >>21.


>>7
How do you make it nice and colored like that?

Name: Anonymous 2009-01-04 14:49

How do you make it nice and colored like that?
ಠ_ಠ

Name: Anonymous 2009-01-04 15:52

>>22
If you use proper styling rules, the code in >>21-22 is more colorful than >>7.

Name: Anonymous 2009-01-04 17:55

>>22
I think you use [ code ] tags (not sure)
[code]javascript:alert("Alert");

Name: Anonymous 2009-01-07 21:33

thank you this is helpful

Name: Anonymous 2009-01-08 7:30

>>26
What the fuck have you done, /prog/?

Name: Anonymous 2009-01-08 14:11

>>27
What we're supposed to do - talk about programming. Duh.

Name: FrozenVoid!FrOzEn2BUo 2009-01-08 14:25

>>27
zippadippa duck wonky squank fuck.

Name: Anonymous 2009-01-09 23:08

I'm going to make this easy for everybody.
This is a great way to save a couple minutes of tedious clicking on 4chan.
To use this:
* Copy the code
* Create a new bookmark, paste the code in the location box, and give the bookmark a relevant title
  (I placed my bookmarks on the bookmark toolbar for easy access)
  Obviously, if you use all three codes you will need to make three separate bookmarks.
* Try it out:
  Open your favorite image board and then "open" your bookmark.
  It will run the code and open the links in new tabs.



Open every page on the board: (made to be run from the first page)
javascript:(function(){var n=11;for(var a=document.getElementsByTagName('a'),i=0;i<a.length;i++){var c=a[i];if(c.href.match("15.html")){var n=16;}}for(v=1;v<n;v++){var h=v+".html";window.open(h);}})()


Open every thread on the page: (can be run on any page)
javascript:(function(){for(var a=document.getElementsByTagName('a'),i=0;i<a.length;i++){var l=a[i];if(l.innerHTML.match("Reply")){window.open(l.href);}}})()


Open every image in the thread or page: (can be run in a thread or page)
javascript:(function(){for(var a=document.getElementsByTagName('a'),i=0;i<a.length;i++){var l=a[i];if(l.innerHTML.match("/thumb/")){window.open(l.href);}}})()


Because nobody reads every single board we won't even bother with that script.



Breakdown of scripts:

General knowledge:
javascript:(function(){
*Creates an anonymous function.
})()
*Ends creation of the function, and runs the function.


First script: Every page on board.
var n=11;for(var a=document.getElementsByTagName('a'),i=0;i<a.length;i++){
*Sets the initial value for n.
*Creates a loop that scans every link in the document.
var c=a[i];if(c.href.match("15.html")){var n=16;}}
*Sets c to be an object containing the properties of the link currently being scanned.
*If there are 15 pages in the thread, set n to 16 (currently only /r/ has 15 pages)
for(v=1;v<n;v++){var h=v+".html";window.open(h);}
*Creates a loop that counts from 1 to 11, or 1 to 16, depending on how many pages were detected earlier.
*Generates links to each page, and opens each link one at a time.


Second script: Every thread on page:
for(var a=document.getElementsByTagName('a'),i=0;i<a.length;i++){
*Scans every link in the document in a loop.
var l=a[i];if(l.innerHTML.match("Reply")){window.open(l.href);
*Sets l to be an object containing the properties of the link being scanned.
*If the link's text says "Reply" (case-sensitive), open the link.


Third script: Every image in thread or page:
for(var a=document.getElementsByTagName('a'),i=0;i<a.length;i++){
*Scans every link in the document.
var l=a[i];if(l.innerHTML.match("/thumb/")){window.open(l.href);
*Creates an object containing the properties of the link being scanned.
*If the link is a thumbnail, open the link.

Name: Anonymous 2009-01-10 0:20

>>30
Virus do not run

Name: Anonymous 2009-01-10 2:29

This thread has reached a post by FrozenVoid. You cannot reply anymore.

Name: Anonymous 2009-01-10 3:32

>>30
Why would you need an anonymous function encapsulation when you can just write it inline? Isn't it superfluous to make your code executed by a function which can't be called externally?

Name: Anonymous 2010-08-22 13:36

Thanks for the script. I used it.
Here's a better version that works on any board. (opens every other page for the board you are viewing)

for(a=document.getElementsByTagName('a'),i=0;i<a.length;i++){c=a[i];d=c.text.length;h=c.href;n=h.indexOf("3/")+2;if(!isNaN(c.text)&&d<3&&d>0&&(n==1||n<h.length)){window.open(h)}}

for(a=document.getElementsByTagName('a'),i=0;i<a.length;i++){
    c=a[i];
    d=c.text.length;
    h=c.href;
    n=h.indexOf("3/")+2;
    if(!isNaN(c.text)&&d<3&&d>0&&(n==1||n<h.length)){
        window.open(h);
    }
}

Name: Anonymous 2010-08-22 16:40

Great, now write a script for a Futaba-style catalog with a thumbnail and comment caption for every thread on every page and we'll have fixed 4chan.

Name: Anonymous 2010-08-22 20:13

This thread is full of faggets.

Name: Anonymous 2010-08-22 20:38

>>36
You're one of them right?

Name: Anonymous 2010-08-23 1:39

>>37
Your

Name: Anonymous 2010-12-06 9:56

Back to /b/, ``GNAA Faggot''

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