Skip to content

Instantly share code, notes, and snippets.

@Rayquaza01
Created June 19, 2023 23:21
Show Gist options
  • Select an option

  • Save Rayquaza01/0e4e4a1686cbbcf882df9f59d2f2ced3 to your computer and use it in GitHub Desktop.

Select an option

Save Rayquaza01/0e4e4a1686cbbcf882df9f59d2f2ced3 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Kbin Instance Display
// @namespace Violentmonkey Scripts
// @match https://kbin.social/*
// @grant none
// @version 1.0
// @author Arnaught
// @description Displays instance name next to users on remote instances
// ==/UserScript==
[...document.querySelectorAll(".user-inline")].forEach(item => {
if (!item.title.endsWith(location.hostname)) item.innerText = item.title.substring(1);
});
[...document.querySelectorAll(".magazine-inline")].forEach(item => {
if (!item.title.endsWith(location.hostname)) item.innerText = item.title.substring(1);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment