Group Leader
- Joined
- Nov 15, 2024
- Messages
- 474
It's very rare for me to search all of MangaDex Forums, so I wrote a tiny userscript to switch the search UI to "Search: This thread" automatically.
The userscript can be installed from Greasy Fork: https://greasyfork.org/en/scripts/566311-mangadex-forums-search-helper
The userscript can be installed from Greasy Fork: https://greasyfork.org/en/scripts/566311-mangadex-forums-search-helper
JavaScript:
// ==UserScript==
// @name MangaDex Forums: search helper
// @namespace https://andrybak.dev
// @version 1
// @description Helps with search on the MangaDex Forums
// @author Andrei Rybak
// @license MIT
// @match https://forums.mangadex.org/threads/*
// @icon https://forums.mangadex.org/favicon.ico
// @require https://cdn.jsdelivr.net/gh/rybak/userscript-libs@dc32d5897dcfa40a01c371c8ee0e211162dfd24c/waitForElement.js
// @grant none
// ==/UserScript==
/*
* Copyright (c) 2026 Andrei Rybak
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
/* jshint esversion: 6 */
/* globals waitForElement */
(function() {
'use strict';
waitForElement('form[action="/search/search"] select[name="constraints"]').then(theSelect => {
theSelect.children[0].selected = false;
theSelect.children[1].selected = false;
theSelect.children[2].selected = false;
theSelect.children[3].selected = true;
});
})();