Skip Jump Page

Skip Jump Page.

目前為 2022-03-19 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name Skip Jump Page
  3. // @description Skip Jump Page.
  4. // @version 0.1
  5. // @author to
  6. // @namespace https://github.com/to
  7. // @match https://songwhip.com/*
  8. // @match https://linkco.re/*
  9. // @match https://*.lnk.to/*
  10. // @match https://big-up.style/*
  11. // @match https://orcd.co/*
  12. // @match https://nex-tone.link/*
  13. // @match https://*.landr.com/*
  14. // @license MIT
  15. // @icon https://www.google.com/s2/favicons?sz=64&domain=spotify.com
  16. // ==/UserScript==
  17.  
  18. [
  19. '//a[contains(@href, "spotify")]',
  20. '//img[contains(@src, "spotify")]/ancestor::a',
  21. ].forEach(l => {
  22. (l = $x(l)) &&
  23. (location.href = l.href);
  24. });
  25.  
  26. function $x(path){
  27. return document.evaluate(
  28. path, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
  29. }