[–]▶ No.326993>>326998 >>327005 [Watch Thread][Show All Posts]
Sup bitches? It's good to be back.
Since the domain change meant losing our previous site settings and js/css tweaks, and spoilerscript.html is still 404-ing, I'm going to compile them in this thread.
I'll link the actual code to Gist or Github, to make it easier for keeping things up-to-date.
____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
▶ No.326994>>326996 >>326997
First up, here's the script for unhiding spoilered thumbnails. When a normal image is uploaded, a thumbnail image is generated regardless if the spoiler option is selected.
Unfortunately, this doesn't won't work on webm or mp4 files, or images posted before the site's migrations.
Grab the code from here and paste it in your User JS tab: https://raw.githubusercontent.com/marktaiwan/8Chan-disable-spoiler-thumbnail/master/8chan%20disable%20spoiler%20thumbnail.js
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
▶ No.326995
- Adds a toolbar above the comment box
- Some syntaxes also works with keyboard shortcuts, mouse over the button to view.
- Press 'esc' while in quick reply to close it
- Press 'c' to navigate to the catalog page
Code: https://raw.githubusercontent.com/marktaiwan/8kun-Formatting-Tools/master/8kun-formatting-tools.js
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
▶ No.326996
>>326994
Found this old thing when I first made the script.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
▶ No.326997
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
▶ No.326998
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
▶ No.327005
>>326993 (OP)
01000010 01001111 01011001 00100000 01011001 01001111 01010101 00100000 01000100 01001001 01000100 00100000 01000111 01001111 01001111 01000100 00100000 01010011 01001111 01001110
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
▶ No.327007>>327008
But wait there's more!
I had spent the last two days porting my customizable shortcuts script over to 8kun. There are variants for Exhentai, Derpibooru and 4chan.
Basic features includes shortcuts that redirect you to board index/catalog, previous and next page on the board, trigger thread or catalog update.
The other half of the script is the keyboard navigation mode, when it's on you can use your keyboard to select the thumbnails in a thread/catalog, and expand and minimize them.
There are 3 storable presets. Only preset 1 is pre-configured on fresh install, preset 2 and 3 and left empty for you to customize. The idea is that you might want to have different keybinds for different situations. You can switch between them on the fly by using alt + [1~3]
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
▶ No.327008>>327009
>>327007
…there's also a 'Default' preset if you ever want to look back and reflect on how empty your life is before this script came into your life.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
▶ No.327009>>327010
>>327008
By default, you enter and exit the navigation/selection mode by pressing Q
In this mode, you use the direction keys (WASD and the arrow keys by default) to select image and webms. Up and down keys will switch between thumbnails from different posts, while left and right is used to select from within the same post, if you reached the end of current post, it will wrap around to the next one.
Press E to expand or collapse a selected thumbnail, Shift + E to open it in a new tab. You can also use N and M to play/pause and mute/unmute a selected webm.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
▶ No.327010>>327011
>>327009
When not in keyboard selection mode, the direction keys can be used for scrolling the page.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
▶ No.327011>>327012
>>327010
Chaining these together, you can navigate a board without moving your mouse, in this demo I can…
Press C to change to the catalog,
Shift + F to focus on Search,
Press Esc to deselect from the search field,
Q to enter navigation mode,
then E to select the thread.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
▶ No.327012
>>327011
Other small undocumented features:
Ctrl + Shift + / can be used to quickly open and close the settings panel.
For compatibility reasons, the shortcuts will not work if any sort of input element (text field, tick box, dropdown list .etc) has focus.
If any of those elements has focus, you can deselect them by pressing the Esc.
If a key or keybind combination is not being used by the script, any default actions will apply.
The command named "Go to selected post" basically just click the selected post's ID link. It's pretty hacky, but I use it as a way to navigate into a thread from the board index.
Installation'
Script link: https://github.com/marktaiwan/8kun-Custom-Shortcuts/raw/master/8kun-custom-shortcuts.user.js
I've written it as an userscript extension, but you can use it by copy and pasting the code into your User JS if you really want to, although I would advise against it since the full script is over 1000 lines long.
A script manager will also be able to regularly check and apply any update automatically. If you are new to userscripts, I recommend the extension Violentmonkey as your script manager: https://violentmonkey.github.io/
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
▶ No.327054>>327057 >>327224
>trusting scripts delivered via imageboards
DON'T RISK RUINING YOUR LIFE, /pone/
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
▶ No.327057
>>327054
Who the fuck wants to go an obscure board in an infamous basket weaving mongolian cave painting?
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
▶ No.327224
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.