// ==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 // @downloadURL none // ==/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); } } })();