[Userscript] Derpibooru Comment Enhancements 1.4.5

Marker
My Little Pony - 1992 Edition
Wallet After Summer Sale -
Magnificent Metadata Maniac - #1 Assistant
Not a Llama - Happy April Fools Day!

Misanthrope
Derpibooru Comment Preview has been renamed to  
Derpibooru Comment Enhancements  
due to expanded features (sorry for the confusion)
 
Features  
  • Toolbar for easier comment formatting  
  • Highlights the comment if it’s visible.  
  • Show comment pop-up if it’s out of view.  
  • Shows replies that a comment has received (aka backlinks)  
  • On paginated comments, adds button to load next page.
     
    Settings  
    Once installed, settings could be found on Derpibooru’s Settings page.
     
    Tested for several hours on Chrome and (briefly) on Firefox.
     
    Care specially taken to ensure compatibility with VcSaJen’s Namize Background Ponies, which I use everyday and can’t recommend enough.
     
    Latest update  
    1.4.5  
  • Tweaked when hover preview is displayed when comment is partially in view
     
    1.4.0  
  • Add basic support for forum posts  
  • Autolink image embeds  
  • Better spoiler theme support  
  • User settings UI
     
     
    Download  
    Requires Tampermonkey or Violentmonkey  
    Firefox users are required to install Laboratory by Mozilla and follow the instructions here.
     
    download from GitHub  
    download from OpenUserJS  
    download from GreasyFork
     
    Screenshots  
    –  
    full
Nittany Discord
Roseluck - Had their OC in the 2023 Derpibooru Collab.
Elements of Harmony - Had an OC in the 2022 Community Collab
Non-Fungible Trixie -
Verified Pegasus - Show us your gorgeous wings!
Preenhub - We all know what you were up to this evening~
Twinkling Balloon - Took part in the 2021 community collab.
My Little Pony - 1992 Edition
Friendship, Art, and Magic (2020) - Took part in the 2020 Community Collab
Dream Come True! - Participated in the MLP 9th Anniversary Event
Economist -

Assistant
Dress Fanatic
Script isn’t working for me anymore. I’ve re-installed it three times and I’ve tried both links. Not sure what’s wrong.
 
Tapermonkey is up-to-date, but it doesn’t want to run the script.
 
EDIT: Nevermind. It only works on image comments. I gathered that from the regex. Wonder if you can make it work for forum posts?
Marker
My Little Pony - 1992 Edition
Wallet After Summer Sale -
Magnificent Metadata Maniac - #1 Assistant
Not a Llama - Happy April Fools Day!

Misanthrope
New feature: On paginated comments, add additional button that will load the next batch of comments below the existing ones.
Marker
My Little Pony - 1992 Edition
Wallet After Summer Sale -
Magnificent Metadata Maniac - #1 Assistant
Not a Llama - Happy April Fools Day!

Misanthrope
About the new toolbar:  
ZippySqrl
HARD WERK - Merited Perfect Pony Plot Provider badge with only their own art and really hates Applejack
Solar Supporter - Fought against the New Lunar Republic rebellion on the side of the Solar Deity (April Fools 2023).
Preenhub - We all know what you were up to this evening~
Twinkling Balloon - Took part in the 2021 community collab.
Friendship, Art, and Magic (2020) - Took part in the 2020 Community Collab
The Magic of Friendship Grows - For helping others attend the 2020 Community Collab
Lady's Wink -
Toola Roola - For helping others attend the 2019 Community Collab
Wallet After Summer Sale -
Friendship, Art, and Magic (2019) - Celebrated Derpibooru's seventh year anniversary with friends

Tired Artist
Oh, that was confusing, if you’re combining the toolbar with the preview script, I’d suggest renaming it, like…  
“Marker’s super amazing derpibooru comment section overhaul”.
Marker
My Little Pony - 1992 Edition
Wallet After Summer Sale -
Magnificent Metadata Maniac - #1 Assistant
Not a Llama - Happy April Fools Day!

Misanthrope
@zippysqrl  
Yeah… you’re probably right about that. Though I’m not sure if it’s possible to rename the scripts on the hosting sites or to do it without breaking automatic updates.
Marker
My Little Pony - 1992 Edition
Wallet After Summer Sale -
Magnificent Metadata Maniac - #1 Assistant
Not a Llama - Happy April Fools Day!

Misanthrope
Script renamed from Derpibooru Comment Preview to Derpibooru Comment Enhancements.  
OpenUserJS treated the name change as an entirely new script, existing users will need to reinstall it from the new links. Apologies for the inconvenience.
Marker
My Little Pony - 1992 Edition
Wallet After Summer Sale -
Magnificent Metadata Maniac - #1 Assistant
Not a Llama - Happy April Fools Day!

Misanthrope
Version 1.4.0  
New features:  
  • Added basic support for forum posts: i.e. they only work on comments on the same page.  
  • Autolink image embeds: Don’t you just hate it when someone embeds an image like  
    full !https://derpicdn.net/img/2012/6/17/5458/thumb.jpeg!  
    and you have a hard time trying to get to its original page?  
    This feature will automatically add clickable links that essentially turns that into  
    full !https://derpicdn.net/img/2012/6/17/5458/thumb.jpeg!:/5458  
    so you could easily follow the link to its source.  
    Also works for external images, the script will link to the original URL instead of camo.derpicdn.net version.  
    Images that already has a link will be unaffected.  
  • User settings: Some features of the script can now be turned on or off via the settings page.
     
    Finally got off my lazy ass to fix:  
  • Spoiler reveal in previews doesn’t take into account user’s current theme.  
  • Spoilers can now optionally be revealed in highlighted comments (i.e. when the comment is within the viewport).  
  • Reply link underline works on highlighted comments.
     
    Thank you for using Derpibooru Comment Enhancements, don’t hesitate to yell at me if anything breaks.
Marker
My Little Pony - 1992 Edition
Wallet After Summer Sale -
Magnificent Metadata Maniac - #1 Assistant
Not a Llama - Happy April Fools Day!

Misanthrope
Version 1.4.5  
  • Hover preview is more likely to be used when comment is short and partially in view, hopefully this reduces the need for scrolling the page to read the full comment.
     
    Previously undocumented changes since 1.4.0:  
  • Fix forum post navigation when ‘disable_native_preview’ is enabled  
  • Fix link highlight not working on forum posts  
  • Fix spoiler not revealing on external previews
Interested in advertising on Derpibooru? Click here for information!
KilianKuro Commissions!

Help fund the $15 daily operational cost of Derpibooru - support us financially!

Syntax quick reference: **bold** *italic* ||hide text|| `code` __underline__ ~~strike~~ ^sup^ %sub%

Detailed syntax guide