← Home ← Back to /j/

Thread 5514

14 posts 8 images /j/
Anonymous No.5514 >>5522
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).
Anonymous No.5515
Been using it for about an hour and no hiccups
The auto-update buttons are a huge QoL boost, many thanks!
Anonymous No.5517
Thanks!

10/10

Would thank again.
Anonymous No.5522
>>5514 (OP)
been working for me and I appreciate it.

Good job, wanted it myself when I started but Coffee is not a languange to learn
Anonymous ## Janitor No.6800 >>6803
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
Anonymous ## Janitor No.6803
>>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
Anonymous ## Mod No.6805 >>6806
the link is broken
Anonymous ## Janitor No.6806
>>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
Anonymous No.6875 >>6888
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
Anonymous No.6888 >>6889
>>6875
Looks like its not working, for me at least.
Anonymous No.6889 >>6894
>>6888
Ah, nevermind I'm just retarded.
Anonymous No.6894 >>6897
>>6889
Would you be able to explain what you did to make it work? I'm at a loss here.
Anonymous No.6897
>>6894
not him, but I did this on mine ages ago.
Anonymous No.6974
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