Remove redirection tracking from Qwant Lite

A script that removes redirection tracking from Qwant Lite.

目前為 2020-06-03 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name Remove redirection tracking from Qwant Lite
  3. // @namespace StephenP
  4. // @version 1.0
  5. // @description A script that removes redirection tracking from Qwant Lite.
  6. // @author StephenP
  7. // @grant none
  8. // @include https://lite.qwant.com/?q=*
  9. // ==/UserScript==
  10. var results=document.body.getElementsByClassName("title");
  11. var link;
  12. for(var i=0;i<results.length;i++){
  13. link=decodeURIComponent(results[i].children[0].href);
  14. results[i].children[0].href=decodeURIComponent(results[i].children[0].href).slice(link.lastIndexOf("=/")+2);
  15. }