Better Danbooru Artist Search

Improve URL handling within the Danbooru artist search engine and automatically navigate to unambiguous wiki page.

These are versions of this script where the code was updated. Show all versions.

  • v3.8.0 - Imported from URL
  • v3.8.0 - Imported from URL
  • v3.8.0 - Imported from URL
  • v3.7.0 - Imported from URL
  • v3.6.3 - Imported from URL
  • v3.6.3 - Imported from URL
  • v3.6.2 - Increased version number. Use the correct (zenith rather than "first", as of the latest update to Danbooru) element for the `artists_list`.
  • v3.6.1 - Increased version number. Only add wildcards if there are no results.
  • v3.6.0 - Increased version number. Optionally try searching with wildcards if search returned no results.
  • v3.5.3 - Increased version number. Properly detect domain endings (fixed regex by escaping periods).
  • v3.5.2 - Increased version number. Shorten URL properly to '.com' by using `lastIndexOf` instead of `search` method. Clearly log when site is mobile on Nico Nico Seiga.
  • v3.5.1 - Increased version number. Fixed mobile detection of Twitter. Removed useless commented code.
  • v3.5.0 - Increased version number. Detect and strip the more URL query string rather than specifically "?p=s" for Twitter URLs.
  • v3.4.0 - Increased version number. Detect and strip additional URL query string value pairs (ampersand key equals value) for Pixiv URLs (might employ this feature for all other URLs someday...).
  • v3.3.0 - Increased version number. Refined understanding of changelog verb tenses. Detect DeviantArt image pages and shorten into artist page URLs. Use 'else if' when viable.
  • v3.2.1 - Increment version number. Add more logging. Remove some if statements.
  • v3.2.0 - Increment version number. Add '{ARTIST}'s works' detection for Pixiv. Update 'Additional info'.
  • v3.1.0 - Increment version number. Add more logging. Replace document.location with window.location.href. Update search engine.
  • v3.0.0 - Increment version number drastically. Change back to if statements, as switch was acting up.
  • v2.3.6 - Increment version number. Add stupid braces. Python is a better language, stylistically speaking.
  • v2.3.5 - Increment version number. Add more and more bad logging. Am perplexed.
  • v2.3.4 - Increment version number. Add more bad logging.
  • v2.3.3 - Increment version number. Add bad logging.
  • v2.3.2 - Increased version number. Fixed mobile niconico seiga support again??
  • v2.3.1 - Increased version number. Fixed mobile niconico seiga support??
  • v2.3.0 - Increased version number. Added conversion support for mobile version of niconico seiga. Simplified search engine URL.
  • v2.2.5 - Increased version number. Changed @match to only match the search page, and not the artist page.
  • v2.2.4 - Increased version number. Simplified check for whether query is a url.
  • v2.2.3 - Increased version number. Added https detection.
  • v2.2.2 - Increased version number. Improved (?) descriptions and renamed script to better (?) reflect its function.
  • v2.2.1 - Finally learnt how to properly version (MAJOR.MINOR.PATCH where MAJOR is for backwards-incompatible changes, MINOR is new compatible features and PATCH is bug fixes). Also fixed the switch statement so that it actually works, and included /*falls through*/ comments so JSHint stops bothering me.
  • v2.2.0 - Replaced nested ifs with switch statement, replaced is_edited for old_query !== query, fixed indentation and twitter status check.
  • v2.0.0 - Changed the version number haphazardly, removed some redundant comments, added a redundant comment, and most importantly, added functionality to automatically go to the artist if there is only one.
  • v1.5 - Added support for custom urls, fixed code line length and indentation, and optimised a check
  • v1.4 - Added namespace.
  • v1.4
  • v1.3
  • v1.2