Skip Jump Page

Skip Jump Page.

2022-05-05 يوللانغان نەشرى. ئەڭ يېڭى نەشرىنى كۆرۈش.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Skip Jump Page
// @description  Skip Jump Page.
// @version      0.5
// @namespace    https://github.com/to
// @author       to
// @license      MIT
//
// @match        https://songwhip.com/*
// @match        https://linkco.re/*
// @match        https://*.lnk.to/*
// @match        https://big-up.style/*
// @match        https://orcd.co/*
// @match        https://nex-tone.link/*
// @match        https://*.landr.com/*
// @match        https://song.link/*
// @match        https://ffm.to/*
// @match        https://fanlink.to/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=spotify.com
// ==/UserScript==

[
    '//a[contains(@href, "spotify")]',
    '//img[contains(@src, "spotify")]/ancestor::a',
].forEach(path => {
    let elm = $x(path);

    console.log(elm);
    // 予約ページを避ける
    if(elm && !/accounts\.spotify/.test(elm.href)){
        // 適切なリンクが存在しないリンクの場合 クリックする
        elm.href?
            location.href = elm.href :
            elm.click();
    }
});

function $x(path){
    return document.evaluate(
        path, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
}