The 4chan extension for Firefox has a few nice things to offer, and I've found myself using that browser to peruse 4chan at times, even though my primary browser is Opera. Unfortuantely, nobody seems to have ever written any enhancements for it (that I've ever found), so I decided to write one myself!
This mostly implements the feature I prefer most; loading a full thread right inside the page, instead of loading a seperate page to see the omitted posts. Just in the time I've been testing it, I've already been finding it pretty useful.
In any case, this is a UserJS script for anyone not in the know. It's Opera's version of an extension language. I've found myself using it a lot lately, not just to add features to websites, but to fix other ones that won't work properly in Opera. It's great.
If you don't know how to install a UserJS script, it's simple. You can either read the elaborate explantion at http://userjs.org/help/installation , or just: Go to Tools, Options, Preferences, then the Advanced tab, pick the Content section, click Javascript Options. In the "My Javascript files" blank, put like "c:\userjs" (minus the quotes), then create that folder on your computer, and copy the script inside. You'll probably want to right-click/save-as to get the script onto your computer, mind you.
Anyway, if anyone wants to mess around with it and see if they can find any problems, feel free. I'm also welcome to suggestions of things to add. Hope some folks find it useful!
Name:
Anonymous2006-06-01 1:51
So how do you extend/retract the threads then, you need to post some instructions :p Pics in the thread in /g/ will help :D
Name:
FyberOptic2006-06-01 1:57
There's some semi-instructions in the file itself, though I guess I should have mentioned'em here too.
If a thread has a dashed border, just click on the ID line in the bar at the top of each thread, and that'll load the full thread into the page. You can also disable the functionality with a button near the top of the page.
I'll just paste in the info I put in the file:
In a nutshell, this script allows omitted posts from threads to be expanded in-page, without the need to load the thread seperately. It also adds an extra page navigation bar above the threads, since just having one at the bottom kind of sucks sometimes.
When using this script, an "Enable Fychan" or "Disable Fychan" button will appear below the ad beneath the message posting form. This allows you to toggle the functionality of the script on and off.
When activated, all threads in the page are parsed and replaced, now contained inside bordered objects, with an ID bar along the top. The color/style of the border will differ depending on the thread. The different types are:
Solid black - Normal thread, no posts omitted
Dashed black - Normal thread, posts omitted
Solid green - Expanded thread
If a thread is surrounded by a dashed border, you should be able to click the link in the ID bar to dynamically load the full thread inside the container. Once the data is retrieved, the border will change to solid green to signify that thread is now expanded.
Name:
Anonymous2006-06-01 2:01
Thanks for that, I wasn't aware you could view the file
It works beautifully :D
I'll post suggestions here if I think of any :)
Name:
Anonymous2006-06-01 4:22
this is awesome, the only feature of the 4chan firefox extension i really wanted to see done in opera. would be nice if there was a way to minimize the threads after expanding.
Name:
Anonymous2006-06-01 7:27
nice work indeed. trying it out now
Name:
Anonymous2006-06-01 10:57
GJ man!
Name:
FyberOptic2006-06-01 12:43
I updated the script to v1.0.1. Same link to download it.
I fixed a DOM error that was happening when on the BBS here, fixed text spacing in certain spots, and implemented toggling of the standard/expanded threads.
As such, there's a new border style: dashed green. If you expand a thread, then shrink it again, this is the border you end up with. It means the thread is still in memory, and clicking on its ID bar will re-expand it without loading anything again.
There's still one small problem though which bugs me. The date on the OP disappears on the standard versions of the threads. I've figured out why, but fixing it might be another story. The date shows up fine on the thread once it's expanded, however.
As usual, let me know if anything seems wonky.
Name:
Anonymous2006-06-01 14:15
Could you make the next and previous pages load the same way? Would be cool.
Name:
Anonymous2006-06-01 15:33
I found a bug. Sort of. There is no need to load the script when browsing a thread, cause then there's nothing to expand
Name:
Anonymous2006-06-01 16:09
Hmm maybe you can put in a hide thread option?
Name:
Anonymous2006-06-01 21:50
can't d/l the update, your site appears to be down. any mirrors?
Name:
FyberOptic2006-06-01 22:30
My host was having some problems apparently, it's back up now.
I went ahead and made some minor changes, and updated it to v1.0.2. This fixes the flaws of certain bits of text not showing up (the date of the OP), and misc. spacing (which I was having to do a different fix on before) is showing up normal now.
It also deactivates now if it detects you're on a reply page. I had noticed before that it ran there and didn't much think anything about it, but since somebody else commented on that, I figured I might as well do something about it while I was at it.
So far, I've seen no problems due to the changes, so hopefully this release smashes all the bugs.
Name:
Anonymous2006-06-02 1:17
It still loads the "disable fychan"-button while on a reply page.
Name:
FyberOptic2006-06-02 1:37
I figured I'd leave it in the event I add more functionality which would affect those pages too.
Name:
FyberOptic2006-06-02 22:58
Tinkered around a bit more, and we're up to v1.0.3.
I took notice of a UserJS script someone else wrote, which converts urls in the page into clickable links, and wrote in code to this script to deal with that too. I haven't thoroughly tested it, but so far, I haven't seen any issues with it. It should convert urls in the normal page, in expanded threads, and even on reply pages.
Same url as above to download.
Name:
Anonymous2006-09-18 8:37
One thing this really needs: open thread's images to tabs. And disable that j-list ad. My own javascript does only these but it's not compatible with this and one is allways better than many.
>>19
I see what you mean, but couldn't you just use a site specific stylesheet with div#ad{display:none !important}?
Name:
Anonymous2006-09-18 13:54
>>20
not bad idea, though I'd prefer just adding something like this to the script:
document.getElementById("ad").style.display = 'none';
And that open all images to tabs is much more important than this.. Or I just make my script compatible with this. Dunno yet
Name:
FyberOptic2006-10-31 13:21
I haven't gotten around to implementing any new features, but now that I've had more time to browse 4chan again, I noticed the next/previous buttons were broken in the script now due to a 4chan code change, so I fixed that and released v1.0.4.2. Link is same as original post.
>>27
I block those useless and annoying ads because I WOULDN'T CLICK ON THEM ANYWAY!!! Why is it so hard to understand?
You want money from your stupid web site? Use a donation button, it's not killing my eyes and maybe I'll donate some cash.
Name:
Anonymous2006-12-24 7:34
You want money from your stupid web site? Use a donation button, it's not killing my eyes and maybe I'll donate some cash.
The standard excuse of someone that won't donate
Name:
Anonymous2006-12-24 7:41
>>29
You're fooling yourself if you think people don't donate. I do donate to web sites I visit on a daily basis, that's why I was talking about this, moron. I don't want my bandwidth wasted by annoying animated GIFs...
Animations in the web are for queer faggots. Queer faggots. The web is about text. Images at most. For everything else, there's Content-disposition: attachment. You don't want a simple web page to be fagged up with XBOX animations and Flash, and you don't want special requirements on your User-agent. You don't want to be distracted with gay faggot flashes and animations when reading text which is what you come to do. Gay faggot lusers wanted Star Trek-like interfaces, huh? How fucking nice. They should be forbidden from using computers until they mature. They should require a license to use computers.
>>33
Most of the times I'm here at world4ch I'm using elinks.
Name:
Anonymous2006-12-24 19:37
w3m > *
Name:
Anonymous2006-12-24 21:41
I block those useless and annoying ads because I WOULDN'T CLICK ON THEM ANYWAY!!! Why is it so hard to understand?
That's what everyone says, yet somehow advertising works.
If you see ad, chance of revenue is: 0.1%
If you see ad, chance of revenue is: 0.0%
It adds up. Your excuse is just a tragedy of the commons in the making. When was the last time you (yes you) donated?
usually if i'm thinking of buying something and then i see an ad for it, the chance of me buying it drops to 0.0%.
so if i don't see an ad, the chance of revenue is much higher than if i do see it.
and i just donated $150 to a radio station a couple weeks ago.
Name:
Anonymous2006-12-25 6:29
>>36 When was the last time you (yes you) donated?
One week ago, fucking loser. I have a job and I give the cash I earn to those who deserve it and provide me with useful crap.
Advertisment is NOT useful crap, it's just annoying crap, that's why I block it.
Name:
Anonymous2006-12-25 7:32
I wrote a script to click the ads for me
Name:
Anonymous2006-12-25 18:08
>>41
Ah, okay. Good for you. Really! I wonder what percentage of visitors you make up?
>>40
How do you buy something you don't know about? What do you think the no.1 rationalization of Madison Avenue and the entire Marketing profession is?
Ads are not just about buying or clickthrough, they're about eyeballs. All those beer and car ads on TV aren't there to get you to run out of the door _right now_.
How do you buy something you don't know about?
if i don't know about it, i don't need it and can't want it. What do you think the no.1 rationalization of Madison Avenue and the entire Marketing profession is?
who cares what a bunch of faggots think? i'm not a faggot, you're probably not a faggot, why should we buy what faggots tell us to buy? Ads are not just about buying or clickthrough, they're about eyeballs. All those beer and car ads on TV aren't there to get you to run out of the door _right now_.
all those beer and car ads are only there to give me time to go do something useful without missing the shows i want to watch.
Name:
Anonymous2006-12-27 9:47
important news, idiots:
it doesn't matter if you buy stuff from the ads
it matters if you see them/click on them, so 4chan gets $$$$
Name:
Anonymous2006-12-27 13:48
>>45
and that's why I use AdBlock, I don't want 4chan to get money.
How about you fags don't clutter up the Opera script topic with your pissing over ads?
Name:
Anonymous2006-12-29 1:29
>>47
Nice try Adolf, I post here to answer the questions and it's still a free country last time I checked. What's the link between "not giving money" and "not posting"? There is ... none.
I upgraded this script a bit as I've been wanting a couple of certain features, so hopefully you guys will find them useful as well. Download link same as above.
New stuff:
- Inline image expansion. Like in the Firefox extension, clicking a thumbnail will load the image right in the page. You can turn this off with a setting in the UserJS file if you prefer, but clicking the filename or middle-clicking the thumb will open it in a new window like always. Initially I disabled interstitial ads for this to work correctly, but then I rewrote how it worked so that it would still function properly while keeping ads intact. I haven't noticed any problems from having done so, but if it acts up, just let me know.
- Added an "All Images" command to the thread ID bar. Clicking this lets you open all images in a thread at once. If you try to open more than 15 (by default), it'll ask you to confirm. I did kind of a last minute fix so that this would work on reply pages as well, so hopefully I didn't break anything. Note that this WON'T WORK if you have popup blocking enabled for 4chan. You can disable that explicitly for 4chan by right-clicking the page and picking "Edit site preferences", then preferably selecting "Open pop-ups in background". You may have to do this once for each of 4chan's servers that you visit (zip, img, orz, etc).
- Added a minor fix so that it would load the default stylesheet, since for whatever reason, it wasn't working in Opera.
>>51
Ducks are Touring complete. They move across a (theoretically) infinite
river in either direction. They have memory. In each step, they can
catch fish, take a dump, or quack.
I didn't really want to release a new version yet, since it's just not completely ready to be honest. But it's been ages since I released anything to the public, and now that 4chan has changed its addressing method to have cb-ws and cb-nws in the urls, the inline image expansion is broken. And if you use that feature as much as I do, you'd be aggravated with it too, so I wanted to release a fix.
Therefore, I'm not updating the old one, and am just going to release a beta of the new features instead. With the image expansion problem fixed as well of course.
- Topic-return after posting. This feature has been in testing for a while, because it would occasionally have issues. I THINK it should be okay now. After you post in a topic, a dialog will pop up asking you if you want to return to it. If you pick cancel or hit escape or whatever, it'll just return to the index as usual.
- I changed the text along what I used to call the "ID bar", which is the bar along the top of each topic. People were confused and apparently didn't even realize thread expansion was a feature, because they weren't reading the instructions. But now it's plainly obvious what you can do, because it's labeled appropriately.
- Added Quick Reply. THIS IS EXTREMELY NEW. It's not even thoroughly tested in every section. I had to add a "close" button to the window that pops up just so that I could release this version. So yeah, you click Quick Reply in the bar along the top of each topic, and a little window pops up that lets you fill in the particulars. I haven't had any problems with it yet personally, so I hope it's actually working fine, and just needs some visual updatery.
- Fixed inline image expansion to work with new address scheme (cb-nws).
- There's Next/Prev buttons on the right of the topic bar now, which lets you jump up and down the page to other topics. This is listed as being in v1.0.5, but that version was never released to the public, and then I went to adding some bigger features, and went on to 1.0.6. So that's why you'll notice that extra version number in the version history.
Again, I point out that this is a BETA. If there's a problem, post about it here, or email me, whatever. If you have suggestions/comments, feel free to do the same for that matter. I'm partially counting on some of this stuff to be field tested, instead of my normal slow method of just using it myself until I notice something isn't right. Which isn't exactly the best way to do it, because I'm sure some of you are much bigger contributors to 4chan than me, and would notice things I don't.
Also, the documentation isn't updated, aside from the version history, so it'll still refer to stuff like the "ID bar", which as mentioned above, is just the bar above each topic, which I will hereby declare as the "topic bar" from now on I suppose.
Very nice. Is there a chance there could be something for text boards to? Like the ability to inline entire threads from the thread list, and quick post
Hey guys, been a while since I made any public updates to the Fychan UserJS script for Opera, but I finally got back on track. I even made a page specifically for it, so that people can find it and see what it's all about easier.
For those that have been using it for a while, you might be interested to know that I finally added a simple thread watcher. I've been asked for that many a time, so that was the priority feature this time.
>>74
Thread watcher seems to work good so far. I like that it's so noticeable as to which I've marked when I scroll through a section.
I'd like to see a little more details in the actual thread list, but you did say it was a basic thing for now, so I'll shut up.
Good work. Glad to see you're still working on it.
Name:
Anonymous2009-03-07 20:14
>>74
This is good. You should try and e-mail moot to see if you can get him to include your script on 4chan's tools page (http://www.4chan.org/tools/) along side of DamageInc's Firefox extension. There's plenty of Opera users who could really benefit from having an extension of their own and it would be nice for all who ask about acquiring a similar script for Opera to be directed to 4chan's official tools page.
I also let the Opera users in this thread on /comp/ http://dis.4chan.org/read/comp/1203116978 know about your script since they kept on bugging Damage to make a version of his extension for Opera.
Name:
Anonymous2009-03-07 23:37
>>74
Wow, this is great. Just the features I need. I'd say it's better than the firefox plugin.
Name:
HMA FAN2009-03-08 0:21
Cool script bro.
Name:
Anonymous2009-03-08 8:17
>>75
Some do, some don't. Most are horribly broken to begin with, but I don't expect anything better from Firefox users.
Name:
Anonymous2009-03-08 18:36
Bampu
Name:
Anonymous2009-03-08 19:45
>>77
- This is good. You should try and e-mail moot
+ This is good. You should try to e-mail moot
The biggest thing people have asked for lately is the ability to hide threads. The other comments I've gotten in the past have regarded how it looks. Well I took care of both! Of course, if you still don't like how it looks, then what's a guy to do. But I think it looks a lot slicker than it did.
Anyway, there's various other more minor improvements, such as to Quick Reply. Read the Version History section of the .js file for more info.
Some of these additions are hot off the press, so hopefully I've knocked all the bugs out. Just let me know as usual if you find anything.
Name:
Anonymous2009-03-18 18:52
>>77
Also I meant to reply here and never remembered it again.
Anyway, thanks for helping pass the word. I did email moot once before and mentioned it when emailing about something else, though not directly to ask him to put the script up. I'm not sure if they'd consider it and/or Opera big enough to put on their page as of yet. I figure word of mouth is cool for now.
Name:
Anonymous2009-03-18 22:53
Will this work in [insert alternate browser here]?
Name:
FyberOptic2009-03-18 22:56
>>91
I'm afraid not. FyChan is mainly built using Opera's specialized UserJS interface. However, alternatives do exist if you are using the FireFox web browser.
Name:
Anonymous2009-03-19 1:04
>>92
It would have been funnier if you had copied the response for that question from the website.
Also you are capitalizing things strangely, I think you are a FAKERRRRRR.
Never really thought about it, but I guess it'd suck to actually need an identifier on 4chan when it's so easy to pretend to be somebody else. Tripcodes crackable too. Shit sucks. Good thing I never make anything worthwhile.
Anydamnway, script is awesome. Hiding shit on /b/ makes my life easier when I don't have to worry about needing to explain why there are horse cocks on the screen to my roommate.
Hey FyberOptic, how about re-working your script so that it doesn't fuck up all other 4chan userscripts that happen to use document.addEventListener instead of window.opera.addEventListener and depend on other event listeners being installed (your script removes those listeners by cloning most nodes)? I'm tired of working around these issues because people demand ``Does it work with fychan?''. Oh, and maybe also work on performance issues that regularly pop up.
Name:
FyberOptic2009-03-19 6:35
>>94
Hi, thanks for you're interest in the FyChan Opera UserJS script. Fychan is a UserJS extension for the Opera web browser, to give the popular image board 4chan an extended set of features for easier browsing. If you would like more information about FyChan, please visit my website at http://fychan.fybertech.com/
>>94
Dude, the proper way to write an Opera UserJS script is using the window.opera interface, especially since I'm catching the AfterEvent.DOMContentLoaded event, because I want the page to update with the Fychan appearance as soon as possible. Any other method would likely result in Fychan not taking control until after the entire page loaded (including images), which sucks. Trust me, I've been writing this script long enough to know what is the most efficient method of applying itself to the page, based around how terrible the website loads sometimes.
I actually have multiple 4chan-related scripts which I wrote and use, providing features I may implement into Fychan one day, and others that are strictly for myself. These scripts perform just fine with one another, and they all use the exact same window.opera interface and event to trigger. So the problem isn't with Fychan.
If you're using document.addEventListener, then it sounds more like you're trying to adapt Greasemonkey scripts or something. I don't use or test against them. Opera has a certain degree of support for Greasemonkey, but not complete support. If your scripts are not working, it's a problem in Opera's handling of them or in your code.
In a nutshell, Fychan is fine, implementation and performance-wise. Aint changing it. Sorry your script doesn't work right.
If anyone else has further direct comments or questions, just do it via the website, cause it's too easy for people to get confused when people pretend to be me.
Name:
Anonymous2009-03-19 18:21
>>97
maybe you should put a forum on the fychan website instead of dealing with trip or name faggotry if people are copying you
I have another 4chan script I use from a buddy to hide these new porn ads, and while I don't know what the fuck you were talking about with the programming stuff, it works fine. >>94 must not know how to write shit.
Name:
FyberOptic2009-03-19 18:52
>>98
I actually do have a forum setup on my website, though nobody really uses it. Maybe I should just install phpbb and be done with it
>>97
I'm working on a way to comment on the fychan site as we speak, actually.
>>99
lol dude, people who know me would definitely know this is fake. I don't use phpbb for anything. Good try that time though.
Anyway fellows, I will no longer post here under this name, or make any direct replies as me, just so you know. As I said, if you want to know something in particular, click the button on the website, or wait until I get the comments thing going. If it's just a general question, you can still post here if you really want and maybe someone can help (possibly myself, but you probably won't know it!). I may still announce new versions here, but we'll see. The comments thing should be up on the site within a week depending on how much time I get.
Okay for reals, anyone else posting as me is definitely not me now!
Name:
FyberOptic2009-03-19 19:22
HAHAHA DISREGARD THAT, I DO NOT ACTUALLY SUCK COCKS.
Not that I do not enjoy them. But it's only an aesthetic thing, not physical, you know?
Name:
FyberOptic2009-03-19 19:23
>>101
Just a final word as well, my website is http://fychan.fybertech.com/ so feel free to bookmark this page.
There is a paypal link on the bottom for donations
Thank you
Name:
FyberOptic2009-03-19 19:31
Okay, enough is enough man.
This is the real FyberOptic, feel free to leave your comments and questions here and I will answer them. Please disregard >>99-103
No, I am the real FyberOptic. Please stop fagging up this thread.
Name:
FyberOptic2009-03-19 19:50
By the way, before I leave, I'll just mention that you're welcome to use my script even if you don't make a donation using the link found on http://fychan.fybertech.com/
By the way, since Opera has very little marketshare, I encourage you to make a donation to support Opera extensions. You'll find the link on http://fychan.fybertech.com/
>>97
It seems you do not really know what you are talking about. The `proper' way to catch any event is document.addEventListener. Normally, you'd hook DOMContentLoaded. The window.opera interface is provided so that you can load your script before or after other scripts you wish to patch/overwrite. Not just for any arbitraty change to the document.
In any case, claiming your script is zomgoptimized is just one fat lie. It's slow as fuck, mainly due to you inserting and swapping around a metric fuckton of nodes, triggering repaints/reflows every so often.
Oh well, I'm not bothering anymore. Learn to Javascript/DOM. And do visit http://dev.opera.com/articles/ and look up Javascript performance issues.
all other opera 4chan scripts that have come and gone are trash. like that fucking backwash shit that keeps getting whored lately. and that other one which tried to expand threads but broke everything, then everybody was a faggot to him and he left. thats it, seriously.
i dont know a lot about coding but I know that this script not only fucking works great but it's the only one out there. and it isn't slow for me, whatever the fuck "slow" is. maybe people should upgrade their shit computers instead of trying to look smart.
some of you people just boil my piss. it's not often anybody around this cesspool gives anything to the community worth a damn. so how about we don't fuck it up
tl;dr - stfu faggots or make your own
Name:
Anonymous2009-03-26 20:19
This shit is great and has helped me stop using firefox entirely for years now. Much love to the fag that made it, you're the kind of contributor that makes 4chan worth visiting still.
>>120
You know, it's usually not polite use different names in order to circumvent the FV filters.
Put your manners back in /prog/, I'm very disappoint[sic] in you.
Helpful material shared I’m very delighted to go through this particular article..thanks for presenting us great information.Fantastic walk-through. I enjoy this article.