Skip to content

Instantly share code, notes, and snippets.

@hyper-neutrino
Created April 13, 2021 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hyper-neutrino/895eab0cc8f7935da98dad32621ffab6 to your computer and use it in GitHub Desktop.
Save hyper-neutrino/895eab0cc8f7935da98dad32621ffab6 to your computer and use it in GitHub Desktop.
Link Expander
// ==UserScript==
// @name Link Expander
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author hyper-neutrino
// @match https://chat.stackexchange.com/rooms/*
// @icon https://www.google.com/s2/favicons?domain=stackexchange.com
// @grant none
// ==/UserScript==
(function() {
window.setInterval(() => [...$(".user-container a")].filter(a => a.classList.length == 0 && a.id == "").forEach(a => a.innerHTML = a.href.substring(0, 200) + (a.href.length > 200 ? "..." : "")), 1000);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment