Kemono link on Patreon

Quick link to Kemono page from Patreon

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Kemono link on Patreon
// @namespace    http://tampermonkey.net/
// @version      1.2.1
// @description  Quick link to Kemono page from Patreon
// @author       aqemi
// @match        https://www.patreon.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=patreon.com
// @grant        none
// @license      MIT
// ==/UserScript==

(function () {
  function extractCreatorId() {
    if (typeof __next_f !== 'undefined') {
      const regex = /www\.patreon\.com\/api\/user\/(\d+)/;
      const flat = __next_f.flat();
      const chunk = flat.find((x) => typeof x === 'string' && regex.test(x));
      if (!chunk) {
        console.error('Creator ID not found in __next_f data structure');
        return null;
      }
      const [, id] = chunk.match(regex);
      return id;
    } else if (typeof __NEXT_DATA__ !== 'undefined') {
      const base = __NEXT_DATA__.props.pageProps.bootstrapEnvelope.pageBootstrap;
      const { included } = base.post ?? base.campaign;
      const includedEntry = included.find((x) => x.type === 'user');
      if (!includedEntry?.id) {
        console.error('Creator ID not found in __NEXT_DATA__');
        return null;
      }
      return includedEntry.id;
    } else {
      console.error('Unable to extract creator ID: Neither __next_f nor __NEXT_DATA__ is available');
      return null;
    }
  }

  function insertLink(url) {
    const homeLinks = document.querySelectorAll('a[href="https://www.patreon.com/home"]');
    const homeLink = Array.from(homeLinks).slice(-1).pop();
    const kemonoLink = homeLink.cloneNode(true);
    kemonoLink.href = url;
    kemonoLink.ariaCurrent = null;
    const title = kemonoLink.querySelector('p');
    title.innerHTML = 'Kemono';
    title.style.setProperty('color', '#e6702f', 'important');
    const icon = kemonoLink.querySelector('svg');
    icon.innerHTML = `
<g fill="#000000">
    <path d="M242.1 526.4 c-71.7 -117.3 -104.4 -170.5 -105.1 -170.9 -0.3 -0.2 -5.5 9.5 -11.5 21.6 -6 12 -11.3 21.9 -11.7 21.9 -0.3 0 -3 -0.5 -5.8 -1.2 l-5.3 -1.2 0.8 -25.3 c0.4 -13.9 0.4 -25.3 0.1 -25.3 -0.4 0 -9.7 7.2 -20.8 15.9 l-20.2 15.9 -4.3 -3.5 c-2.4 -1.9 -4.3 -4 -4.3 -4.5 0 -0.5 5 -10.4 11.1 -21.9 6.1 -11.6 10.8 -21.3 10.5 -21.6 -0.4 -0.4 -46 10.8 -50 12.3 -0.6 0.2 -2.3 -1.9 -3.9 -5 l-2.7 -5.5 20.2 -15.3 c16.2 -12.3 19.7 -15.3 18.2 -15.9 -1.1 -0.4 -12.7 -2.2 -25.9 -4 -13.2 -1.7 -24.3 -3.4 -24.7 -3.8 -0.3 -0.3 -0.9 -3.1 -1.3 -6.1 l-0.7 -5.5 24.9 -5.9 c13.6 -3.3 25.1 -6.2 25.6 -6.6 0.4 -0.3 -9.2 -6.4 -21.3 -13.4 -12.1 -7.1 -22.3 -13.2 -22.6 -13.7 -0.3 -0.5 0.2 -3.2 1.1 -5.9 1.2 -3.5 2.2 -5 3.5 -5 0.9 0 12.9 1.8 26.6 4 13.6 2.1 24.9 3.8 25 3.7 0.2 -0.1 -6.7 -9.5 -15.1 -20.9 l-15.4 -20.7 4 -4.5 4 -4.5 16.2 9.9 c8.9 5.4 16.3 9.7 16.5 9.6 0.2 -0.2 -16 -44.2 -35.9 -97.7 -43.5 -117.3 -39.1 -105.1 -37.6 -104.3 0.7 0.4 12 8 25.2 16.9 71.7 48.3 151 100.8 153.3 101.4 1.5 0.5 4.3 1.9 6.3 3.2 4.4 2.9 9.2 5.8 13.2 8.1 2.7 1.5 3.3 1.6 6.6 0.2 1.9 -0.8 3.8 -1.8 4.1 -2.3 0.9 -1.4 7 -4.2 8 -3.6 1.4 0.8 27 -9.8 27 -11.3 0 -0.6 -5.8 -12.9 -13 -27.2 -7.1 -14.3 -13 -26.2 -13 -26.4 0 -0.3 2.1 -2.1 4.6 -4 l4.6 -3.6 5 4.5 c2.7 2.4 11.4 10.4 19.4 17.6 8 7.2 14.7 12.9 15 12.7 0.2 -0.3 -0.2 -10.6 -1.1 -22.9 -2.1 -31.4 -2.5 -28.4 3.8 -30.1 2.8 -0.9 5.5 -1.3 5.9 -0.9 0.3 0.3 5.7 11.3 11.9 24.4 10.3 21.8 11.4 23.6 12.4 21.5 0.7 -1.3 4.7 -12.1 9 -24 7.1 -19.9 7.9 -21.7 9.9 -21.3 1.1 0.2 3.7 0.6 5.7 1 l3.6 0.5 0.7 8.8 c0.3 4.8 0.8 15.5 1.1 23.7 0.3 8.3 0.8 16.5 1.1 18.4 l0.6 3.4 17.8 -17.8 17.8 -17.8 4.6 2.9 c2.5 1.6 4.6 3.4 4.6 4 0 0.6 -4.3 12.3 -9.5 25.9 -5.2 13.6 -9.5 25.3 -9.5 25.9 0 1.2 47.1 20.6 49.8 20.6 0.7 0 36.4 -30 79.3 -66.7 l78 -66.8 5 -0.3 c3.2 -0.2 4.9 0.1 4.9 0.9 0 1.1 -41.9 152 -51.6 186.1 -2.9 10 -4.4 17.2 -4.2 19.8 l0.3 4 15.5 -9.5 c8.5 -5.2 16 -9.5 16.7 -9.5 1.1 0 7.3 6.8 7.3 8.1 0 0.4 -6.8 9.8 -15.1 20.9 -8.2 11.1 -14.9 20.3 -14.7 20.5 0.2 0.1 12.2 -1.7 26.8 -4 l26.5 -4.1 2.1 5.5 c1.2 3.1 2.1 5.6 2 5.7 0 0.1 -10.4 6.1 -22.9 13.4 -12.5 7.3 -22.6 13.5 -22.3 13.7 0.2 0.3 11.6 3.1 25.2 6.4 13.6 3.3 25 6.1 25.2 6.3 0.2 0.3 0.1 2.9 -0.3 5.9 -0.6 4.5 -1.1 5.6 -2.9 6 -1.1 0.3 -12.7 2 -25.6 3.8 -12.9 1.7 -23.8 3.5 -24.2 3.8 -0.4 0.4 7.8 7.1 18.2 15 10.5 7.9 19.4 14.9 19.9 15.5 0.6 0.7 -0.1 3 -1.7 6.2 l-2.7 5.1 -25.5 -6.7 c-14 -3.7 -25.6 -6.4 -25.8 -6 -0.1 0.4 4.7 10.2 10.8 21.7 6 11.6 11 21.5 11 22 0 1 -7.4 7.3 -8.6 7.3 -0.6 0 -3.1 -1.9 -27.7 -21.3 l-13.8 -10.9 0.3 25.8 0.3 25.7 -2.5 0.7 c-8.7 2.3 -7.1 3.9 -16.5 -15 -4.7 -9.3 -8.8 -17 -9.3 -17 -0.4 0 -3.6 5.3 -7.1 11.8 -3.5 6.4 -13 23.6 -21.1 38.2 -8.1 14.6 -16.9 30.6 -19.5 35.5 -2.7 5 -7.6 14 -11 20 -12.9 22.9 -48.3 87.5 -52.7 96.3 l-2.2 4.2 -16.1 0 c-8.9 0 -27 0.3 -40.1 0.7 l-24 0.6 -32.3 -52.9z m37.4 10.6 c21.9 -6.6 52.3 -6.6 71 -0.1 l6 2.1 1.6 -2.1 c1.7 -2.3 4.7 -7.7 45.8 -82.9 10.1 -18.4 28 -51.2 39.8 -72.7 l21.5 -39.3 3.4 0 c3.2 0 3.6 0.4 7.3 7.8 l4 7.7 0.1 -17.2 0 -17.3 3.1 0 c2.7 0 10.9 5.7 24.3 16.9 1.1 0.9 -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4 1.9 -6.2 63.7 38.7 l57.8 42.1 0 3.9 c0 3.7 -1.4 5.6 -23 30.5 -21.6 24.9 -23.2 26.5 -26.3 26.5 l-3.4 0 0.4 -23.2z"/>
</g>
<g fill="#e6702f">
  <path d="M266.6 542.8 c-1.3 -2.1 -26.9 -43.8 -57.3 -93.3 -6 -9.9 -25.1 -41.1 -42.4 -69.3 l-31.3 -51.4 -9.8 19.4 -9.7 19.3 0.6 -23.7 c0.4 -14 0.2 -23.8 -0.3 -23.8 -0.5 0.1 -9 6.6 -18.9 14.4 -9.9 7.9 -18.2 14.3 -18.3 14.1 -0.2 -0.2 4.4 -9.4 10.3 -20.5 5.8 -11.1 10.4 -20.4 10.1 -20.7 -0.4 -0.4 -32 7.3 -43.4 10.6 -2 0.6 -3 0.6 -2.7 0 0.4 -0.5 8.7 -7 18.6 -14.5 9.9 -7.5 17.7 -14 17.2 -14.3 -0.4 -0.4 -10.2 -2 -21.8 -3.6 -11.6 -1.6 -22.1 -3.1 -23.5 -3.5 -1.8 -0.5 3.1 -2 17.5 -5.4 24.8 -5.9 27.5 -6.6 27.5 -7 0 -0.2 -6.5 -4.1 -14.4 -8.7 -10.6 -6.1 -14.2 -8.7 -13.8 -9.9 0.4 -1.1 0.2 -1.2 -0.8 -0.4 -0.9 0.9 -2.6 0.4 -7.1 -2.3 -3.3 -2 -5.8 -3.7 -5.7 -3.8 0.2 -0.2 11.1 1.4 24.3 3.5 13.2 2.1 24.1 3.7 24.2 3.6 0.2 -0.2 -6.2 -9 -14.2 -19.6 -8 -10.6 -14.5 -19.5 -14.5 -19.6 0 -0.2 7.8 4.3 17.3 10.1 9.4 5.7 17.3 10.2 17.5 10 0.1 -0.1 -10.3 -28.8 -23.3 -63.6 -13 -34.9 -25.2 -67.7 -27.1 -72.9 -1.9 -5.2 -7.9 -21.4 -13.3 -36 -5.4 -14.6 -9.7 -26.6 -9.6 -26.8 0.6 -0.8 148.4 99 148.9 100.6 0.3 0.9 1.1 5.5 1.7 10.1 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7.8 -13.3 -0.4 0.5 -10.3 18.2 -21.8 39.4 -43.1 78.7 -57.8 105.7 -61.8 113 -2.3 4.1 -7.3 13.4 -11.2 20.5 -3.9 7.2 -8.9 16 -11 19.6 l-3.9 6.7 -2.8 -1.5 c-13.2 -6.9 -36.2 -10 -54.9 -7.3 -8.5 1.3 -22.2 4.7 -25.7 6.5 -5.3 2.7 -6.8 2.7 -8.4 0.3z m-111.7 -356.1 c11.3 -13 20.6 -24.2 20.6 -24.7 0 -0.5 -26 -19.8 -57.8 -43 -31.8 -23.1 -57 -40.8 -55.9 -39.3 10 13.7 48.5 55.7 62.9 68.5 8.3 7.5 11.2 10.6 10.7 11.7 -0.4 0.9 -1.9 4.8 -3.2 8.6 -2.3 6.4 -2.6 8.7 -2.9 27.5 l-0.4 20.5 2.7 -3 c1.5 -1.6 12 -13.7 23.3 -26.8z"/>
  <path d="M379 211.1 c-4.7 -2.5 -13.9 -7.5 -20.5 -11 -14.3 -7.6 -21.3 -11.4 -28 -15.1 -7 -3.8 -16 -8.6 -30 -16 -6.6 -3.5 -12.4 -6.6 -13 -7 -0.5 -0.4 -6.4 -3.6 -13 -7 -6.6 -3.5 -14.9 -7.9 -18.5 -9.9 -3.6 -2 -9.5 -5.2 -13.2 -7.1 -3.7 -1.9 -6.5 -3.7 -6.3 -4.1 0.3 -0.3 6.8 -3.2 14.5 -6.4 7.7 -3.2 14 -6.1 14 -6.5 0 -0.5 -3.7 -8.3 -8.1 -17.4 -4.5 -9.2 -8 -16.8 -7.8 -17 0.2 -0.2 8.3 6.8 17.9 15.6 l17.5 16 0.3 -3.3 c0.1 -1.9 -0.4 -12.6 -1.2 -23.9 -0.7 -11.3 -1.2 -20.7 -1 -20.9 0.2 -0.2 1.5 2 2.8 5 1.3 3 6.1 13.1 10.6 22.4 l8.2 17 1.7 -4.5 c0.9 -2.5 4.6 -12.5 8.1 -22.3 7.6 -21 7.4 -21.2 8.5 7.6 0.3 10.6 0.9 20 1.2 21.1 0.4 1.5 3.8 -1.4 17.4 -15 9.3 -9.3 16.9 -16.6 16.9 -16.4 0 0.3 -2.9 8.2 -6.5 17.5 -3.6 9.4 -6.5 17.5 -6.5 18.1 0 0.9 21.4 9.7 63.6 26.3 l5.2 2 71.8 -61.5 c39.5 -33.8 72 -61.1 72.2 -60.6 0.2 0.7 -47.4 173.2 -48.1 173.8 -0.2 0.2 -20.1 3 -26.2 3.7 -1.9 0.2 -2 -0.6 -2.6 -12.8 -0.7 -15.5 -2.9 -24.6 -6.9 -29.7 -1.7 -2 -3 -4.4 -3 -5.2 0 -0.8 6.2 -9.8 13.8 -19.8 12 -15.9 29.9 -40.7 41.2 -57.3 l3.4 -5 -6.4 5.7 c-23.7 20.9 -88.4 79.5 -88.7 80.3 -0.1 0.6 8.3 10.8 18.8 22.9 10.4 12 18.8 22 18.7 22.2 -0.3 0.2 -12.3 1.9 -65.8 8.9 -16.1 2.1 -17.3 1.9 -27 -3.4z"/>
 </g>`;
    icon.setAttribute('viewBox', '0 0 600 579');
    homeLink.parentNode.insertBefore(kemonoLink, homeLink.nextElementSibling);
  }

  function findAndAddLink() {
    const creatorId = extractCreatorId();
    if (!creatorId) {
      return console.error('Kemono link not added: Creator ID extraction failed');
    }
    const url = `https://kemono.cr/patreon/user/${creatorId}`;
    console.info(`%cKemono link:%c ${url}`, 'font-weight: bold; color: #e6702f;', 'color: inherit;');
    this.setTimeout(() => {
      insertLink(url);
    }, 1500);
  }

  window.addEventListener(
    'load',
    function () {
      findAndAddLink();
    },
    false
  );
})();