I wrote this userscript to make posting shota.nu media to this site easier.
Features
- Copy direct URL to clipboard
- Copy markdown image markup (
![]()
) to clipboard - Image preview on hover
- Rearrange the uploads list (for the following features)
- Produce markdown markup for the whole uploads list as an album
- Produce the above markup in a centered table format
- Pops out the site in a window, so you can have both sites visible
- Remembers the expiry selection
New in v0.2
- Night mode!
- Expiry selection recall can be turned off
- Auto-popout
New in v0.3
- Burggit integration: Adds link to shota.nu in burggit.moe navbar
- Added saucenao search button
- Ability to remove deleted uploads from view
- More album list options (2-column table)
- Ability to add notes to each item. Used in conjunction with the item below.
- Ability to use custom markdown template for each item in album list. Eg:
$0|$1|...|$n
inserts entries from notes (separated with “|”)$i|$i0
inserts item index$ofn
inserts the original filename
- Button to copy album list markdown to clipboard
- Automatically merge config from previous versions. New settings should work out of the box.
How to install
- Have a userscript browser extension (Tampermonkey recommended) installed.
- Download script. Rename file to anything ending with
.user.js
e.g.helpfulcat.user.js
- Open the script with browser.
- Confirm installation.
Alternative with Tampermonkey:
- Open Tampermonkey’s dashboard
- Go to Utilities tab
- In Install from URL section, paste the link and press install.
- Confirm installation.
Upgrade notice
Please clear script’s storage to have the new version work properly.
No longer required from v0.3 onwards.
Preview
v0.1 | v0.2, now with dark mode! | v0.3 |
version 0.3 is out!
- Burggit integration: Adds link to shota.nu in burggit.moe navbar
- Added saucenao search button
- Ability to remove deleted uploads from view
- More album list options (2-column table)
- Ability to add notes to each item. Used in conjunction with the item below.
- Ability to use custom markdown template for each item in album list. Eg:
$0|$1|...|$n
inserts entries from notes (separated with “|”)$i|$i0
inserts item index$ofn
inserts the original filename
- Button to copy album list markdown to clipboard
- Automatically merge config from previous versions. New settings should work out of the box.
More on template substitutions
- The screenshot above uses this markup template:
[${i1}]($url) ${0}
${i1}
is filled with index that starts from 1. To count from 0 use${i0}
${0}
is filled with the item’s first note entry (they all have only one here)${thing}
is preferred over$thing
$$
is replaced with- Unknown fields are left as is
\n
is replaced with actual new line (added in v0.3a)
EDIT: Feature now included in the base userscript
Old content
Extra code for burggit; adds a link to shota.nu on the header.
[EDIT: code now hosted on shota.nu itself.]
The userscript meta block is untested; i just quickly threw one in to make this become a userscript.
this broken-af website is escaping the &s in the code block wtf
EDIT: it broke everything, and I was a dumdum not realizing I could have hosted it on shota.nu itself.Might’ve been the recent update to 0.18.4 I did. Whoops.
I looked at lemmy’s issue tracker and it’s introduced in 0.18.3. apparently still not fixed in 0.18.4.
Hopefully people nerdy enough to use my userscripts catch the bug in my code and read my warning.
maybe dark mode support next. 🤷
Moar like, Dork mode! 😆 Jokes aside, this is really awesome. Thanks for making this!
The tampermonkey install method throws the following error:
dunno what happened there. maybe some conflicting browser/TM settings. try fall back to the conventional method. ¯\_(ツ)_/¯