Remove highlight from Mobilism

Removes unnecessary highlight from Mobilism pages triggered when clicking on a search result to prevent potential issues with external links.

目前为 2023-12-04 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Remove highlight from Mobilism
  3. // @namespace https://github.com/fxolan
  4. // @author Abdurazaaq Mohammed
  5. // @version 1.0.1
  6. // @description Removes unnecessary highlight from Mobilism pages triggered when clicking on a search result to prevent potential issues with external links.
  7. // @match *://forum.mobilism.org/viewtopic.php?f=*
  8. // @match *://forum.mobilism.me/viewtopic.php?f=*
  9. // @grant none
  10. // @run-at document-start
  11. // @homepage https://github.com/fxolan/userscripts
  12. // @supportURL https://github.com/fxolan/userscripts/issues
  13. // @license The Unlicense
  14. // ==/UserScript==
  15.  
  16. (function() {
  17. 'use strict';
  18.  
  19. const url = window.location.href;
  20.  
  21. const index = url.indexOf("&hilit");
  22.  
  23. if (index > -1) window.location.href = url.substring(0, index);
  24. })();