NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Anonymous Github Usernames // @namespace http://tampermonkey.net/ // @version 1.0 // @description Anonymize Github usernames // @author Josh Frankel // @match https://github.com/* // @grant none // @copyright 2018, joshfrankel.me (https://openuserjs.org/users/joshfrankel.me) // @license MIT // @require https://code.jquery.com/jquery-3.3.1.min.js // ==/UserScript== (function () { $(document).ready(function () { $(".avatar").css("display", "none"); $(".vcard-details").css("display", "none"); $(".author").html("anonymous"); $(".vcard-names").html("anonymous"); $(".user-profile-mini-vcard").html("anonymous"); $(".select-menu-item-text span.description").html("anonymous"); $("head").append("<style>.Popover{ display:none !important; } </style>"); var current_url = location.pathname; // need to store as a reference history.pushState(null, null, '/anonymous'); window.addEventListener("popstate", function () { window.location.replace(current_url); }, false); }); })();