4chan / 4chan-js Goto Github PK
View Code? Open in Web Editor NEWSource code for 4chan's native extension.
Home Page: http://www.4chan.org/
License: Other
Source code for 4chan's native extension.
Home Page: http://www.4chan.org/
License: Other
the 'settings' button doesn't even do anything; https works
For instance, the option of having the board navigation links point to the catalog of each board rather than page 0 or a link to the catalog of a board when on the thread index.
...So that I don't need to use GM_xmlhttpRequest to fetch images (which I need to do in order to calculate SHA-1 hashes for reverse image search in ExLinks).
If you close (clicking on an inline expanded image) a big image that was inline expanded you end up at the same scroll depth you were at when the image was still expanded. This has the effect for example if the image was taller than the screen height you scrolled a bit downwards while the image being expanded, you suddenly are several posts deeper than before closing.
(hope I'm leaving this in the right place) Posting from China using a 4chan pass but for some reason I'm not able to delete my posts. However I can report people, so it's not all that bad.
Any way around this or is it impossible to fix this?
Since expanding all images would waste too much bandwidth as a default setting why not add it to 4chan pass?
Make it a second tier pass for $25 to cover the bandwidth use.
A QR window that stays open all the time, like 4chan X.
Related requests: make post ID links add to the QR text edit when it's open, option to hide post form (and make links open QR instead consequently)
To be honest I would try to do some of this myself, but the single-file-source style development of these extensions really punches me in the balls.
When posting on /g/, not sure about other boards,
>>postnumber
is changed to
>postnumber
Which disables linking to post. Critical issue IMO.
The API repo's issue tracker is still closed, so I'm posting this here.
country_name
gives country names for /pol/ flags instead of the flag's title.
I find 10 seconds to be too high (as in fast) of an update time. Could a dropdown menu with appropriate times be made available?
Add http://vocaroo.com/ just like what you did to soundcloud and youtube
The API repo's issue tracker is still closed, so I'm posting this here.
/vg/ uses /v/'s spoiler image (http://static.4chan.org/image/spoiler-v.png
), but the custom_spoiler
is set to "0"
. plz fix etc
emailEnd + capcodeStart + emailEnd
WTF
You set capcode
but never end up using it?
data.sub.replace(',', ',');
First of all: WTF, 4chan
Second: that replaces only the first instance of ,
.
if (data.filename.length > 40) {
shortFile = data.filename.slice(0, 35) + '(...)' + data.ext;
}
OPs have a +10 filename length threshold.
container.className = 'postContainer replyContainer';
Even for OPs?
Cumon @desuwa, step it up.
I'm not sure if this is a conflict with 4chan X, but the option to create new threads has completely dissapeared for me.
Is there anyway to enable that, cause my pic folder is just a swath of meaningless numbers. I know 4chanPlus had that for a while, but since this extension is on the site itself I thought it might be possible. Hell I'd be fine with 1350273866784-(original filename).
Posting cooldown is 60 seconds on /q/ instead of the usual 30 for any replies.
As the title says - what are the "official" minimum browser requirements for the inline extension? Quickly skimming through the code, I figure it'd probably work on IE8 (but not earlier, due to the usage of localStorage), but I'm not seeing any official mentions in regards to this anywhere. You should add a note about this on the site itself, since with the extension being native to the site means that it's available (but not necessary working) for any browser out there, not just the few (generally non-terrible) browsers that support userscripts.
I'm selfishly asking for a feature that may be only wanted by me but it might be useful for other 4channers.
I'd like for the stub/tag to tell why the thread/comment is filtered instead of just the showing the usual user id, date, and post number which is mostly just useless when it's just anon.
Filtering a post is like making it a spoiler currently and the way spoilers work sucks as you really have no idea what's inside of it until you click it which is probably intended. Finding out why a post is filtered could be difficult if the filter made was too generic and/or if your filter list is considerably long. Making an easy way to group filters might make this search easier.
Also, perhaps directly from the filtered thread/comment itself, the rule in effect can be disabled or deleted or changed.
Also, in a thread, there could be a pop-out window on what filter rules are being used in the thread though is not as important to me as the previous ideas.
Perhaps we can choose what the 'thread/comment tag' says like a general title or something.
Grouping filter rules so they can be commonly identified with them same identifier might be good too.
This was a feature of another 4chan filter that no one probably uses any more plus some of my own ideas. It was called chan monkey or something and was made by this filipino dude or something.
Some of these are ideas are also similar to features of adblock plus.
That is mostly what I had in mind about this topic and I'll maybe make another thread concerning the design of the filter itself with drawings which might be stupid and horrible. Thanks for reading this through if anyone bothers.
It would be nice to have a feature that makes posted hyperlinks clickable instead of relying on third-party extensions to do that.
Noticed by an anon on /q/:
https://boards.4chan.org/q/res/183774
When you have image expansion turned on, clicking in the 5px bottom margin underneath an image opens the image in a new tab instead of expanding it.
Hi there. Having some strange problems. One of them is that I cannot have access to the Settings link to disable TW, it only shows a "javascript void" and nothing happens when I click on it. I have disabled 4chanX 2.34.10 to see if that was the problem, but the latter remains; not 4chanX's fault. THis happens both in the latest versions of FF and Opera (where no scripts are used at all).
The Settings links appear like this:
http://i45.tinypic.com/729lhe.jpg
The other problem is that I cannot quote posts in FireFox anymore (I can in Opera); it seems to be another javascript problem. Now I have to select, copy, and paste the post number and then add the ">>"
So, what do you make of this? Thanks!
I browse 4chan with frames and it'd be awesome if I could choose which boards are visible on the left for easier access to my favorite ones. Kind of like the current "Show Worksafe Only" feature. I can't be the only person who would find that useful...
Add Enable/Disable option to have the users ID have color and bold. Having the ID text be converted into a unique color.
Here is a PHP function as an example:
http://mrkmg.com/php-function-to-generate-a-color-from-a-text-string/
This could be a better visual identifier then just the ID.
The way that mobile device detection is done right now is causing (at the least) my iPad to not be able to use the inline extension. If I change the user agent, the extension works fine, so the device detection needs to be tweaked so users are not unnecessarily blocked from using the extension. I think this was caused by @b2351efa5c33ca4bcb09d88be21e92be486a9d3e since it worked fine before around that time.
The auto update feature needs a few additions to truly be useful:
Since you insert it no matter what, just put in in a css file instead of a js one.
Also, to ligten every stylesheets, put the general styling in one default file, and the themes in other files.
Inline expansion inside inline expansion fades out and becomes hard to see.
Please don't define $, this doesn't play well with about a million other frameworks/extensions that want to use that symbol.
The API's issue tracker is closed so I'm posting this here.
The name
or email
values, for example, are in HTML, when the email should just be rawurlencoded.
So could you indicate that?
When you click the update button, and if a new post appears, if you then try to click the post ID/Number of that post, so to add
">>[postnumber]" to your reply-field, nothing happens. You have to hard-refresh the page before clicking matters.
Using Opera
Version 12.01
Build 1532
Platform Linux
System x86_64, 3.3.8-gentoo-test=w=
I'm not sure if this is the right place, but I've noticed that around the NSFW markers on the main page a double </h3>
tag is been used. (See w3 validator.) The only thing this affects is strict parsers like Expat for people who are trying to pull a live list of boards.
Once purchasing a 4chan Pass it isn't allowing me to quick reply.
Rather than having a stub for hidden threads, the ability to completely hide threads would be a useful feature for those who want to hide threads for good.
The majority of posts I report are spam/advertising, and I figure it's the same for everyone.
So, how about making the default selection on the report window "Spam"? This would be a minor change, but would save a lot of clicks per day.
Some features, for example:
etc.
don't work work in 12.50 (latest Opera Next version: http://my.opera.com/desktopteam/blog/)
Please fix that.
When a post containing a spoilered image gets added by the thread updater it shows the default spoiler image (spoiler.png) instead of a board specific spoiler image (e. g. spoiler-a.png).
Like hell, no one likes ponies and allowing ponies to use this extension is anything but right. There is no reason why they should use 4chan JS, it just makes their browsing experience easier and they will continue to shitpost.
Just make it harder for them, they deserved it. It's the only right choice and you know it.
This kind of bugs me everytime I am browsing, as it ruins the layout of some posts, especially with youtube embeds spawning rather large embed boxes inside of an otherwise well formatted piece of greentext.
Could be optional, but should at least be a possible feature.
/f/ threads get marked as 404'd when updated.
Original issue: https://github.com/MayhemYDG/4chan-x/issues/770
@Guillimet
Extensions/userscripts want to use Parser.parsePost
, Parser.parseThread
and similar for inserted posts, ideally using custom events.
Support
includes not changing the name of variables without prior notification.
Using Firefox I have all the history/cache/settings etc wiped when I close the browser, so I was wondering if there was a way to permanently save the settings for the inline extension, at all?
It's not a big deal, I was just curious to whether there was a way to do this.
Thanks moot!
The API repo's issue tracker is still closed, so I'm posting this here.
The HTML has the quotes, but not the JSON API.
Using html attributes that specify event handlers one can attach js code to an event that will fire eventually if user has embedding enabled.
I.E. http://youtube.com/watch?v=ID"onload="alert('xss')
Can be fixed by adding quotes to filter RegExp as a quick fix.
As with the auto update feature, image expansion seems to be a bit basic. Proposed additions:
I tap the settings link, but nothing happens.
Opera Mobile 12.00.ADR-1207201819
Instead of switching to the specified post when clicking on quotes/backlinks, open the post inline, quote pyramid style. Refer to extensions such as 4chan X, which had this feature for a long time.
Probably the main reason to use such extensions in the past, this feels like an essential addition to the list of features.
the ability to apply this to script to offline 4chan saved pages.
i save long threads to read later on, and inline navigation is something that i would really love
https://github.com/4chan/4chan-API
1 You may not use "4chan" in the title of your application, product, or service.
2 You may not use the 4chan name, logo, or brand to promote your application, product, or service.
will 4chan x have to change its name
5 You may not clone the live site and its functionality. This means don't suck down our JSON, host it elsewhere, and throw ads around it.
can archivers use the api
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.