Kemono.su link on Patreon

Quick link to Kemono page from Patreon

// ==UserScript==
// @name         Kemono.su link on Patreon
// @namespace    http://tampermonkey.net/
// @version      1.0.2
// @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() {
    window.addEventListener('load', function() {
        const base = __NEXT_DATA__.props.pageProps.bootstrapEnvelope.pageBootstrap;
        const {included} = base.post ?? base.campaign;
        const includedEntry = included.find(x => x.type === 'user');
        const link = `https://kemono.su/patreon/user/${includedEntry?.id}`;
        console.info(link);
        document.body.insertAdjacentHTML('beforeend', `<div style="position:fixed;top: 75px;right:20px;background:#e6702f;border-radius:50px;padding:12px 24px;z-index:9999;">
    <a href="${link}" target="_blank" class="patreon-btn" style="color: white; font-weight: bold; text-decoration: none; font-size: 16px;">
        Kemono
    </a>
</div>`)
    }, false);
})();
长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元