8
submitted 1 year ago* (last edited 1 year ago) by raman_klogius@burggit.moe to c/general@burggit.moe

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

How to install

Normally the browser extension would auto-install userscripts but that requires the filename to be *.user.js.

  1. Have a userscript browser extension (Tampermonkey/etc.) installed.
  2. Download script. Rename file to anything ending with .user.js e.g. helpfulcat.user.js
  3. Open the script with browser.

Alternative with Tampermonkey:

  1. Open Tampermonkey's dashboard
  2. Go to Utilities tab
  3. In Install from URL section, paste the link and press install.
  4. Confirm installation.

Upgrade notice

  • Please clear script's storage to have the new version work properly.

Preview

v0.1 v0.2
v0.1 v0.2, now with dark mode!
top 7 comments
sorted by: hot top controversial new old
[-] raman_klogius@burggit.moe 1 points 1 year ago

maybe dark mode support next. 🤷

[-] Burger@burggit.moe 1 points 1 year ago

Moar like, Dork mode! 😆 Jokes aside, this is really awesome. Thanks for making this!

[-] Mousepad@burggit.moe 1 points 1 year ago

The tampermonkey install method throws the following error:

[-] raman_klogius@burggit.moe 1 points 1 year ago* (last edited 1 year ago)

dunno what happened there. maybe some conflicting browser/TM settings. try fall back to the conventional method. ¯\_(ツ)_/¯

[-] raman_klogius@burggit.moe 1 points 1 year ago* (last edited 1 year ago)


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.

[-] Burger@burggit.moe 1 points 1 year ago

Might've been the recent update to 0.18.4 I did. Whoops.

[-] raman_klogius@burggit.moe 2 points 1 year ago

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.

this post was submitted on 06 Aug 2023
8 points (100.0% liked)

General

1 readers
2 users here now

Feel like you have something to post, but it's not really relevant to any of the current communities, and you don't feel like it's worth making an entirely new community just to post it? This is the place for that.

NSFW content is allowed in this community so long as you mark it as per site rules.

founded 1 year ago
MODERATORS