Coder Social home page Coder Social logo

ccd0 / 4chan-x Goto Github PK

View Code? Open in Web Editor NEW
962.0 41.0 131.0 513.95 MB

Adds various features to anonymous imageboards.

Home Page: https://www.4chan-x.net/

License: Other

CoffeeScript 78.07% CSS 10.70% HTML 5.57% JavaScript 3.81% Makefile 1.24% Python 0.08% Shell 0.05% C++ 0.11% EJS 0.37%

4chan-x's Introduction

screenshot

4chan X

4chan X is a script that adds various features to anonymous imageboards. It was originally developed for 4chan but has no affiliation with it.

It was previously developed by aeosynth, Mayhem, ihavenoface, Zixaphir, Seaweed, and Spittie, with contributions from many others.

If you're looking for a maintained fork of OneeChan (a style script used in addition to 4chan X), try https://github.com/KevinParnell/OneeChan.

Please note

Uninstalling: 4chan X disables the native extension, so if you uninstall 4chan X, you'll need to re-enable it. To do this, click the [Settings] link in the top right corner, uncheck "Disable the native extension" in the panel that appears, and click the "Save Settings" button. If you don't see a "Save Settings" button, it may be being hidden by your ad blocker.

Private browsing: By default, 4chan X remembers your last read post in a thread and which posts were made by you, even if you are in private browsing / incognito mode. If you want to turn this off, uncheck the Remember Last Read Post and Remember Your Posts options in the settings panel. You can clear all 4chan browsing history saved by 4chan X by resetting your settings.

Use of the "Link Title" feature to fetch titles of Youtube links is subject to Youtube's Terms of Service and Privacy Policy. For more details on what information is sent to Youtube and other sites, and how to turn it off if you don't want the feature, see 4chan X's privacy documentation.

Install

Firefox

Install Violentmonkey, Tampermonkey, or Greasemonkey (issues since v4: #2526, #2576), then click here to install 4chan X.

Ports of Greasemonkey are available for SeaMonkey and Pale Moon.

Chromium

Userscript: Install Violentmonkey or Tampermonkey, then click here to install 4chan X.

Chrome extension: 4chan X is also available as a standalone Chrome extension. The Chrome extension has the additional feature of being able to sync your settings and data with other devices via Chrome Sync. But there is an issue when the script updates: Whenever the Chrome extension is updated, until you hard refresh (F5) the tab, 4chan X is unable to save any data (such as posts marked as yours and settings changes). The userscript version above does not have this problem when 4chan X updates, only when Violentmonkey / Tampermonkey is updated. To install as a Chrome extension:

  • Chromium, Vivaldi: Download 4chan X, then open chrome://extensions and drag the downloaded file onto the page. Alternatively, you can install 4chan X from the Chrome store.
  • Opera: Click to install 4chan X, then follow the prompts to activate it in your extension manager.
  • Chrome: Install 4chan X from the Chrome store.

Note: This version of 4chan X does not work with Opera 12. If you need Opera 12 support, try loadletter's fork instead.

Safari

Install the Userscripts extension. Enable it by pressing โŒ˜,, navigating to the extensions pane and checking Userscripts checkbox. Now open the Userscripts editor by clicking on the </> button in the taskbar. Then click on the + button and select the New Javascript option. Replace the default text with the contents of the 4chan X script. Finally save it by pressing โŒ˜s.

WebKitGTK+ / QtWebKit / QtWebEngine

Several minimal browsers have support for userscripts and can run 4chan X. Due to the lack of the cross-site GM_* API, and lack of support for userscripts in iframes, not all features will work. You may experience crashes when repeatedly solving the default image-based captchas. You can avoid this problem by enabling Use Recaptcha v1 in your settings.

  • dwb: Install the userscripts extension, then save the script to the $XDG_CONFIG_HOME/dwb/greasemonkey or $HOME/.config/dwb/greasemonkey directory (creating it if necessary):

    dwbem -N -i userscripts
    wget -P ${XDG_CONFIG_HOME:-$HOME/.config}/dwb/greasemonkey https://www.4chan-x.net/builds/4chan-X.user.js
    
  • Midori: Enable User addons in your preferences, under the Extensions tab. In the Privacy tab, check Enable HTML5 local storage support. Optionally, if you want 4chan X to be able to open new tabs when you start or reply to a thread, you will need to check Allow scripts to open popups under the Behavior tab. Then click the link to the script to install it.

  • Luakit: Navigate to the script, then type the command :usi to install it.

  • uzbl: Install the script from https://github.com/singpolyma/singpolyma/blob/master/uzbl/data/scripts/userscript.sh, enable it in your config file, and then save 4chan X to $XDG_DATA_HOME/uzbl/userscripts (or $HOME/.local/share/uzbl/userscripts). The commands below assume you have run uzbl at least once to create its config file.

    wget -P "${XDG_DATA_HOME:-$HOME/.local/share}/uzbl/scripts" https://raw.githubusercontent.com/singpolyma/singpolyma/master/uzbl/data/scripts/userscript.sh
    chmod +x "${XDG_DATA_HOME:-$HOME/.local/share}/uzbl/scripts/userscript.sh"
    echo '@on_event LOAD_COMMIT spawn @scripts_dir/userscript.sh document-start' >> "${XDG_CONFIG_HOME:-$HOME/.config}/uzbl/config"
    echo '@on_event LOAD_FINISH spawn @scripts_dir/userscript.sh document-end'   >> "${XDG_CONFIG_HOME:-$HOME/.config}/uzbl/config"
    wget -P "${XDG_DATA_HOME:-$HOME/.local/share}/uzbl/userscripts" https://www.4chan-x.net/builds/4chan-X.user.js
    
  • qutebrowser: Save the script to the $XDG_DATA_HOME/qutebrowser/greasemonkey or $HOME/.local/share/qutebrowser/greasemonkey directory:

    wget -P ${XDG_DATA_HOME:-$HOME/.local/share}/qutebrowser/greasemonkey https://www.4chan-x.net/builds/4chan-X.user.js
    

MS Edge

Install Tampermonkey, then click here to install 4chan X.

Other browsers

4chan X can be used in some browsers that do not support userscripts using a local proxy. Not all features will work.

Beta version

New features and non-urgent bugfixes are released on the beta channel for further testing before they are moved the stable version. Please report any issues you find, and be sure to mention which version you're using. You should back up your settings regularly to prevent them from being lost due to bugs.

To install the beta version and get updates whenever there's a new beta version:

To install the current beta version but get updates from the stable channel (for example, if just you want a particular recent feature):

Troubleshooting

If you encounter a bug, try the steps here, then report it to the issue tracker. If the bug seems to be caused by a script update, you can install a old version from the changelog.

More information

4chan-x's People

Contributors

4chenz avatar achtbit avatar aeosynth avatar ahodesuka avatar anounyym1 avatar bakugo avatar bstats avatar bui avatar ccd0 avatar duckness avatar ebinbuddha avatar fgts avatar hasumi- avatar hotdogman avatar ihavenoface avatar koushien avatar nstepien avatar paradox460 avatar parrotparrot avatar pentargency avatar pleebe avatar proplex avatar r3c0d3x avatar saxamaphone69 avatar seaweedchan avatar spittie avatar talichan avatar vampiricwulf avatar voh avatar zixaphir avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

4chan-x's Issues

404'd image files are not redirected to its designated archive

Firefox 29.0.1
Geasemonkey 1.15
4chanX 1.7.40 (with reset default settings)

According to the default settings, /a/ is configured to have File Redirection at Foolz archive. This failed when I tried to test it.
I went to page 10 and load up the thread at the bottom.
Waited 2 minutes for thread to be 404.
Right-click an image and load it into new tab.
The image simply stops at https://i.4cdn.org/a/1400379864156.png and no redirection happens.

Linkify links without making them blue

My idea is them to be exactly like they are without notification, but when you hover your mouse they get underline.
Always underlined and blue links are distracting.

Underlined Replies Part 2

Hi, I found a little problem with the solution you proposed over here (#54) and wonder if there is some kind of workaround for that.

unterm-strich

I would like it to look like it does in the third example.

Thanks for your hard work.

video things in 1.7.3

expand videos is not showing up in the menu under image expansion.

also, the autoplay/show controls thing is great, but think we could get an option show controls, but also have the 3rd click contract?

what is this mayhem!

why did mayhem come in and start changing everything? everyone uses this fork cause they didnt want his navigation among other things. people are super harsh to him but i dunno why, he does some good stuff, i just dont like his layout.. please fix!

Do not untruncate filename when using sauces

The current behavior is to untruncate long filenames when you hover over any part of the .fileText div This also annoyingly includes when you are trying to use a sauce, as they get pushed to the right when you try to click one.

1
2

Solution: Only expand filenames when hovering over the filename.

style.css:line 706

.fileText > span > a:hover .fntrunc,
.fileText > span > a:not(:hover) .fnfull,
.expanded-image > .post > .file > .fileThumb > img[data-md5] {
  display: none;
}

Underlined Replies

This is a really great extension. Thank you for making it!

Would it be possible to include an option to underline the replies on posts?

Thanks in advance.

Option for image hover in catalog?

Can you add the option to hover images in the catalog?

This would extend the functionality we get inside threads (hover over the thumbnail to show a floating expanded image) to the catalog - that way the user won't have to click the thread and load it, then close again, if all they only want to see the OP image.

"Disable native extension" checkbox gone?

Simple, just need a way to enable the native extension, I used to be able to uncheck "disable native extension" and use it along with the script if I chose to, now it's just on by default. Any way I can make this work, and why are most of the new chan* scripts going this route?

As for why I use the native extension along with scripts; archiving threads via saving as html. If I use a script and save it, backlinks and such don't redirect properly, whereas it works just fine with the native extension.

sage error

"Error: Upload failed"

Ummm what? I wasn't even uploading anything...
All i did was put sage in the email field, i wasnt uploading anything...
Why can't i post!!!!?
Argh!! it only lets me without sage.

Webm issue with Noscript addon

Noscript 2.6.8.26
Palemoon 24.5.0 x86

I've tried to tinker with the various settings of Noscript without much success, and short of disabling it there does not appear to be much I can do except hope that a solution can be found either in a later update, or someone discovering settings either within the extension or Noscript that fixes this.

With default settings of both 4chan x and Noscript, Webm files will not load for me, displaying instead a placeholder or nothing at all when expanded/hover expanded.

With settings adjusted down to allow more permissions/allowing certain archives for some reason?, hover expanding causes the Webm to load after hovering over the same one twice, but stops playing after a few seconds and generally does not appear to function. Bypassing the hover activation and clicking to expand has it play normally.

Using the gallery function does not appear to have any issue with viewing Webms, all of this only occurs when trying to view them in a thread, and the type/behavior of the issue seems different for different boards.

This does not happen when viewing 4chan without 4chan x, and I think given the above it may have something to do with the way webms are loaded with this extension active, directing/referencing the archives for some reason.

.webm and memory

Contracting an expanded webm should remove it from memory, otherwise this will result in huge tabs.

Quoted title not working

Change the page title to reflect you've been quoted.
This option doesn't seem to be working. Even when I have been quoted, it doesn't show up.

Pull some rice from Appchan X

screen shot 2014-05-25 at 1 55 04 pm
Things like the checkbox, post hiding button being in the post, and the menu and post hiding button only appearing when the post is hovered over would all be great things to have but can't be added with just some custom CSS.
The picture above shows the top post being hovered over, and the bottom post's checkbox being checked.

Lots of bugs?

Quick reply isn't autohiding with oneechan, searching the index/catalog withJSON ( infinite scroll) caused Chromium to freeze/crash (reproduced 4 times) and needed and end task to close it, url image upload is broken, and there's some sort of quick reply crash that happens on occasion.

Also, custom board names (g-catalog) broke.

This is what I noticed going from 1.5.2 to 1.6.1. JSON actually seems to work now at least.

4chan Thread Watcher (suggestion)

can you add a refresh function to the thread watcher (like the vanilla thread watcher)?

you can update that thread watcher just by clicking a little button, very helpful when you have 20 threads from different boards on the thread watcher

tw

Inline .webm playback jittering

The inline playback for .webm jitters each time the thread auto updates, not sure if this also happens when no new posts are added.

Catalog Key Binding

The keybind option for opening the catalog of the board you're on, going to page 0, as well as the rest of the binds that are intended to change what page you are on do not function.

As an aside (Also fitting in with the title of this issue oddly enough): No binds seem to work on the board catalog for me at all.

Uncaught TypeError: Cannot read property 'children' of undefined

When Quote Threading is disabled, every time the thread updates and adds a new reply you get a Uncaught TypeError: Cannot read property 'children' of undefined in the console.

typerror

Everything seems to be working but I don't think it should be printing this error to the console. Tested on a fresh Chrome 33, 4chan X 1.7.3 and default settings except for Quote Threading disabled.

gallery mode

when viewing thread images in the gallery mode, the next and back buttons arnt working. the only way to change photos is click the next one on the list

Captcha doesn't automatically reload

captcha doesn't automatically reload
can't load a captcha by clicking in the captcha filed
have to load captcha by clicking in the comment field then the captcha field

Please fix it soon.

GIF related.

http://i.minus.com/imPykZK3ikQ8a.gif

Precise steps to reproduce the problem, with the expected and actual results.

Open the quick reply window. Type captcha. Enter. Captcha doesn't change.

click the captcha input field
receive captcha
type captcha
new captcha doesn't load

That's it.

Console errors, if any.

I don't know. None, I guess.

Please fix it. Thanks.

Every captcha made in-threads is wrong.

This only just started happening a few minutes ago. Rolling back to an old version doesn't fix it.

Doesn't seem to be specific to 4chan X. Just might as well keep this up to avoid people making the same issue.

<hr> weirdness on bottom of threads

With JSON Navigation disabled, there's one


above .navlinksbot and it looks weird with none on bottom when there is one there normally.

navlinks hr 2

With JSON Navigation enabled, there's one


but it kinda just overlaps .navlinksbot.

navlinks hr

I'd personally prefer just how it looked before with an


above and below, but if you hide them with CSS that'd be fine since I could just unhide them.

reCaptcha is borked in Quick Reply

"Google broke AJAX/JavaScript reCAPTCHA, so we rolled back to the NoScript version. We're hoping for a fix from them soon. 4chan Pass users are unaffected."

Unread Line / Counter / Scroll to last read post

Seem to have stopped working in the last update on Firefox (Stable). Working in Chrom*.

These damn internet browsers man. Could very likely be another problem on my end, however these functions work in other forks so I'm not too positive.

Fixed frame for embedded youtube videos and reporting

Ihavenoface's 4chanX fork has some interesting features I hope you could take a look at.
The script is here: http://ihavenoface.github.io/4chan-x/

And the feature looks like this:
http://i.imgur.com/fmoLFaC.png

It makes embedded youtube videos have their own frame which is fixed. The advantage is sometime it's just music or radio or something interesting you want play while you can scroll past the post and read the thread. And then you have immediate access to pause or seek features for the video, without having to scroll way back up the the post with the link.

This features is also very nifty for reporting posts as seen in the picture, the same type of fixed frame can be applied. So the browser doesn't need to make a new tab.

Quote Preview

Since moot messed around with the links, quote previewing doesn't work after the thread has updated.
Hovering over the quotes probably shows the problem. The ones that work are /thread/[thread no]#[post no] where as the ones that don't work are /thread/#[post no]

search/cataloge

could you please make an option to hide the search/catalog thing at the top just above the first thread?

thanks

Add a Werk/Fappe Tyme indicator

It would be great to have an indicator that only shows up when you have Werk or Fappe Tyme enabled. People might forget it's enabled.

e.g.
captura de pantalla 2014-05-24 08 292

Backlink (you)'s

Ever since mayhem code code merged for webm things backlinks have lacked the (you) indication. I'm pretty sure backlinks having (you) indicators at all was a seaweed thing and not present in mayhem's version. Can the feature be added back?

thread watcher request

would it be possible to get an option that makes the thread watched act as if in toggle mode, but never disappear when refreshing, and automatically be open when opening a new tab?

thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.