Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Kemono fantia button
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description Add kemono party button to fantia page.
- // @author mbahArip
- // @match https://fantia.jp/fanclubs/*
- // @icon https://www.google.com/s2/favicons?sz=64&domain=fantia.jp
- // @grant none
- // ==/UserScript==
- function addButton(){
- const fantiaID = parseInt(window.location.href.split('fanclubs/')[1]);
- const kemonoURL = `https://kemono.party/fantia/user/${fantiaID}`
- let buttonElement = document.createElement('a');
- buttonElement.className = 'btn btn-success btn-block';
- buttonElement.href = kemonoURL
- buttonElement.innerText = 'Kemono.party';
- document.querySelector('.fanclub-btns').append(buttonElement);
- }
- (function() {
- 'use strict';
- addButton();
- })();
Advertisement
Add Comment
Please, Sign In to add comment