您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Freedium: Your paywall breakthrough for Medium!
当前为
// ==UserScript== // @name Medium to Freedium // @namespace http://tampermonkey.net/ // @version 2.0.0 // @description Freedium: Your paywall breakthrough for Medium! // @author Diegiwg // @match https://medium.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=freedium.cfd // @grant none // @run-at document-end // ==/UserScript== (function() { 'use strict'; function replaceHomepageLinkWithButton(functionToExecute) { const homepageLink = document.querySelector('[aria-label="Homepage"]'); if (homepageLink) { const newButton = document.createElement('button'); newButton.className = homepageLink.className; newButton.innerHTML = "Medium to Freedium"; newButton.style = "color: rgb(18 102 49); font-size: 2rem;" newButton.addEventListener('click', functionToExecute); homepageLink.replaceWith(newButton); } else { console.log('Element with aria-label "Homepage" not found.'); } } function yourFunctionToExecute() { window.location.href = 'https://freedium.cfd/' + window.location.href; } replaceHomepageLinkWithButton(yourFunctionToExecute); })();