Skip to content

Some userscript studies and forks for various pony sites.

Notifications You must be signed in to change notification settings

undeadwanderer/undead-userscripts

Repository files navigation

Undead Userscripts

Some attempts at JS code for various MLP fansites (mostly Derpibooru but also EQD and Tabun) I either made back in early 2018 (Basically baby's first scripts) or resumed making recently.

License:

Everything except for tabun-filters is under Creative Commons BY-NC-SA 4.0, tabun-filters is under WTFPL as of how the original coder left it.

Installation/updating:

Open the script code and click "raw", your script manager should recognize it. I have yet to add autoupdate links into the code so you'll have to update the scripts manually for now. [upd.: Looks like Violentmonkey might fill in an update url when installing a script from the webpage so you might want to turn autoupdate of such a script off in case you need to edit the vars.]

Scripts in this repo:

  • tabun-filters — Post and comment filters for the MLP fansite tabun.everypony.ru. Fork of an abandoned userscript by CAHCET. See the script's folder for more information.

  • eqd-page-title-cleanup — Retitles Equestria Daily's pages for convenience.

  • derpibooru-search-reverse — An experimental script for Derpibooru that adds a button that reverses the sort order of the current image list while saving the current page's relative position in the list. Works with the main image list, tags, activity page, search results and galleries. Basically dusted off one of my beginner studies and made a bunch of fixes and improvements to get it working with the current version of the site.

  • derpibooru-forum-filter — Spoilers forum topics with "NSFW" (or any other words you don't wish to see) in the title on Derpibooru. Refer to the script's folder for more information. [Upd. 2024-02-18: Due to as of now using Mark Taiwan's gui library for the settings, might probably need Violentmonkey to run properly if you're on Firefox. Said settings can be found in the "Userscripts" tab on the Settings page.]

    • 〃-derpi4u-legacy — A version of the script above that uses the original gui library instead of my fork.
    • 〃-legacy — A version of the scripts above that doesn't require any libraries, the filter words array is editable in the code.
  • derpibooru-upload-tag — Automatically fills in tags and description of your choice on the image upload page on Derpibooru, as of now uses Mark Taiwan's library so the note on the script above applies.

    • 〃-legacy — Fills in a "safe" tag on the new image upload page on Derpibooru. An older version of the script above that doesn't rely on Derpi4U or needs Violentmonkey to use on Firefox at the exchange of customizability (you can still edit the values in the code itself though).
  • derpibooru-compact-image-names — Edits image "View" and "Download" links on Derpibooru to use only certain tag types from the image (ratings, artist/origin and characters by default).

    • 〃_derpi4u — Uses Derpi4U (my fork) for configuration.
    • 〃_legacy — Legacy version where enabled tag types are to be edited in the code.

Known issues:

  • A known issue for the non-legacy versions of the three scripts above - due to now using a modified version of the library and said library using the CSS styles imposed by the version loaded first at least one of the scripts needs to be ordered to initialize first (I'm not sure whether Tampermonkey supports load order customization or not but Violentmonkey does, you should use the latter anyway). Patched the library fork to solve the conflict, have yet to fix the global import and export buttons to appear when a script using the unmodified library is loaded first).

Configuration:

  • Versions of Derpibooru scripts stated to use Mark Taiwan's Derpibooru Unified Userscript UI Utility (Derpi4U) are configured by navigating to Derpibooru's user settings (/settings/edit) then to the "Userscript" tab, and saved by pressing the "save my settings" button. Refer to the library's documentation for more information.
  • Non-Derpi4U legacy versions are configured by editing the variables in the code, don't forget to back up your changes before updating the scripts.

Example config tab: Example screenshot of the userscripts settings tab

Credits:

  • Mark Taiwan a.k.a Marker for the Derpibooru Unified Userscript UI Utility library.
  • Rene_Z and stsyn for the Tag Suggestions userscript; I referenced the code while making the current version of derpibooru-upload-tag.