Actions
Work Header
Userscript: Sort tag searches by Uses, Descending by default
Summary:
This userscript automatically selects sorting by Uses, Descending in tag search.
Work Text:
// ==UserScript==
// @name [AO3] Uses, Descending in tag search
// @version 1.1
// @description Automatically selects sorting by Uses, Descending in tag search
// @homepage https://archiveofourown.org/works/74676996
// @author napdragon
// @namespace https://archiveofourown.org/users/napdragon
// @tag AO3
// @icon https://archiveofourown.org/favicon.ico
// @match *://*.archiveofourown.org/tags/search*
// @match https://archiveofourown.gay/tags/search*
// @match https://archive.transformativeworks.org/tags/search*
// @grant none
// ==/UserScript==
(function() {
'use strict'
if (location.search) return
document.querySelector('select#tag_search_sort_column > option[value="uses"]').selected = 'selected'
document.querySelector('select#tag_search_sort_direction > option[value="desc"]').selected = 'selected'
})()
Series this work belongs to:
Actions
Kudos
Sorry, this work doesn't allow non-Archive users to comment.
You can however still leave Kudos!