[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/j/ - Janitor & Moderator Discussion

Name
Options
Comment
File
  • Please read the Rules and FAQ before posting.



File: 4chanx.png (79 KB, 744x241)
79 KB
79 KB PNG
I wrote a userscript which adds the janitor tools to 4chan x and I thought I would share it here as it seems some others may find it useful as well.

The script does the following:
- Adds the deletion and ban request icon buttons to the end of all posts, including those that are auto-updated.
- Automatically sets the cookie which 4chan x uses to determine whether or not it shows captchas to you, so you can use captchaless posting.
- Adds a link to /j/ to the end of the custom board list, and will indicate when there are new posts in a similar manner to the native extension.

If you want to post without the cooldown, there is an option in the 4chan x settings to disable this, just open the settings panel and Ctrl+F "cooldown".

The script works in pretty much the same way as the native one does, just changed to accomodate for 4chan x specific elements.

I've been using it myself for the past few days and it seems to be working fine but let me know if you find any something odd occurs, or if you have any feedback.

I have only tested it with ccd0's v3 fork, but I believe it should also work with loadletter's v2 fork.

You can get the source code from: https://cryptobin.co/11n084a2
Password: BwcuL9sF+k6DotgAXx4eeurrKgaLINunsc1VYNXDtU0XnXlnYlVpQQUBUzcQP1HZ

Firefox users will need Greasemonkey (https://wiki.greasespot.net/Greasemonkey_Manual:Installing_Scripts), Chrome users will need Tampermonkey (https://tampermonkey.net/faq.php#Q100).
>>
File: 1368491274721.gif (439 KB, 500x378)
439 KB
439 KB GIF
Been using it for about an hour and no hiccups
The auto-update buttons are a huge QoL boost, many thanks!
>>
Thanks!

10/10

Would thank again.
>>
>>5514
been working for me and I appreciate it.

Good job, wanted it myself when I started but Coffee is not a languange to learn
>>
File: 1533831699582.png (868 KB, 741x960)
868 KB
868 KB PNG
I don't know if it's just me, but this script hasn't worked on my machines for quite a while, and I'm not aware of an alternative. I forgot all about it until just earlier today, and since I remember it being useful, I decided to get it working again.
I didn't make the original script, so I hope the author doesn't mind.
I also made a couple of minor improvements, like reading which boards the user jannies from local storage, so the buttons won't appear on every board like they (probably) did in the original.
I don't do a lot of JS, so while it's working on my machine, it might not work properly for you.

https://cryptobin.co/c1a5y357
6TRW0dfCu618ASUWCF2bI0JMr5cwvRZ6hQ3X8WrBTLUUEtpfDp8SfLjUzOmm06En
>>
>>6800
I just woke up and looked at the code, and I realized I forgot to include a condition to check if the user's boards are listed as "all", which means it won't work for mods, etc. It's working now.
https://cryptobin.co/76n5w6j3
gNtrt7FJ0q1b1QPpNrEANYGSj+/4mJskFbQ6gesJnsErbgRiQb8fn/G80KK5GDSs
>>
the link is broken
>>
>>6805
It's working for me.
Someone else mentioned cryptobin links not working for them yesterday, so I'll upload it somewhere else.
This version fixes a bug where the BR and Delete buttons would appear on new posts on all boards. The only difference is that the event listener attachment is moved into the conditional which checks the janitor's boards.

https://defuse.ca/b/Ae3e4b8NQFEEG7SVPJsL4w

Q#f+Gt7J3w]`%',z
>>
I'm no coder but I have edited the script to include 4channel in listed domains.
Password is:
cjjWh7dHN2bjz8OI7pHLH3aDzRO3my/LfV+kJEbLeUSh8+ltiUgWDhkwyatIK/TC

Link is:
https://cryptobin.co/z1u0s3f6
>>
>>6875
Looks like its not working, for me at least.
>>
>>6888
Ah, nevermind I'm just retarded.
>>
>>6889
Would you be able to explain what you did to make it work? I'm at a loss here.
>>
>>6894
not him, but I did this on mine ages ago.
>>
With the recent updates to Hotpocket Helper, I suggest you all switch to it and ignore this script. I have been testing it and it being updated by professionals makes it a superior product.

>>6945



Delete Post: [File Only]
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.