您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Says it right in the title
// ==UserScript== // @name KBin.social add community link + name to entry meta // @namespace https://kbin.social/ // @version 0.1 // @description Says it right in the title // @author H2SO4 // @match https://kbin.social/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; let link = document.querySelector("#options .options__main li:first-child a"); if(link && link.href) { let community = link.href.match(/\/m\/([a-zA-Z@\.]+)/); if(community) { community = community[1]; let communityLink = document.createElement("a"); communityLink.href = "/m/"+community; communityLink.innerText = " to " + community; document.querySelector("#content .entry__meta").append(communityLink); } } })();