hipda-search

Search enhance for HiPDA

  1. // ==UserScript==
  2. // @name hipda-search
  3. // @namespace https://www.hi-pda.com/forum/search.php*
  4. // @version 0.1.2
  5. // @description Search enhance for HiPDA
  6. // @author maltoze
  7. // @match https://www.hi-pda.com/forum/search.php*
  8. // @match https://www.4d4y.com/forum/search.php*
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. const searchSelectElem = document.querySelector("#wrap > form > p.searchkey > select");
  17. searchSelectElem.options.add(new Option("全文","fulltext"));
  18. searchSelectElem.options.add(new Option("标题增强","hello"));
  19. searchSelectElem.selectedIndex = searchSelectElem.length - 1;
  20. })();