Greasy Fork is available in English.

Remove Url SEO Parameters

Remove Redundant Url SEO Parameters

  1. // ==UserScript==
  2. // @name Remove Url SEO Parameters
  3. // @namespace https://github.com/livinginpurple
  4. // @version 2020.11.06.24
  5. // @description Remove Redundant Url SEO Parameters
  6. // @author livinginpurple
  7. // @match http://*.pixnet.net/*
  8. // @match https://*.pixnet.net/*
  9. // @match http://blog.xuite.net/*
  10. // @match https://blog.xuite.net/*
  11. // @match http://*.techbang.com/posts/*
  12. // @match https://*.techbang.com/posts/*
  13. // @match https://*.dcard.tw/*
  14. // @match https://*.inside.com.tw/*
  15. // @match https://*.logdown.com/*
  16. // @match https://cookpad.com/tw/*
  17. // @run-at document-start
  18. // @grant none
  19. // ==/UserScript==
  20.  
  21. (function() {
  22. 'use strict';
  23. const scriptName = GM_info.script.name;
  24. console.log(`${scriptName} is loading.`);
  25. // 修改網址,且不留下歷史紀錄
  26. window.history.replaceState({},
  27. window.title,
  28. window.location.href.split('-')[0]
  29. );
  30. console.log(`${scriptName} is running.`);
  31. })(document);