Remove Url SEO Parameters

Remove Redundant Url SEO Parameters

目前为 2019-07-22 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Remove Url SEO Parameters
  3. // @namespace https://github.com/livinginpurple
  4. // @version 2019.07.22.20
  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. // @run-at document-start
  15. // @grant none
  16. // ==/UserScript==
  17.  
  18. (function() {
  19. 'use strict';
  20. console.log(GM_info.script.name + " is loading.");
  21. // 修改網址,且不留下歷史紀錄
  22. window.history.replaceState({},
  23. window.title,
  24. window.location.href.split('-')[0]
  25. );
  26. console.log(GM_info.script.name + " is running.");
  27. })(document);