Created
January 13, 2021 06:45
-
-
Save codygray/12d3d1838d3209312671067d3c2ed042 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Return Sanity to SE Post Quick-Links | |
// @namespace https://meta.stackexchange.com/a/359488 | |
// @version 0.2 | |
// @author Ollie | |
// @author Cody Gray | |
// @match *://*.askubuntu.com/* | |
// @match *://*.mathoverflow.net/* | |
// @match *://*.serverfault.com/* | |
// @match *://*.stackapps.com/* | |
// @match *://*.stackexchange.com/* | |
// @match *://*.stackoverflow.com/* | |
// @match *://*.superuser.com/* | |
// @exclude *://api.* | |
// @exclude *://blog.* | |
// @exclude *://chat.* | |
// @exclude *://data.* | |
// @exclude *://stackoverflow.com/advertising* | |
// @exclude *://stackoverflow.com/company* | |
// @exclude *://stackoverflow.com/jobs* | |
// @exclude *://stackoverflow.com/talent* | |
// @exclude *://stackoverflow.com/teams* | |
// @exclude *://*/tour | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
document.documentElement.insertAdjacentHTML('beforeend', ` | |
<style> | |
/*Lowercase the post menu buttons*/ | |
.js-post-menu .s-anchors > .grid--cell > * { | |
text-transform: lowercase; | |
} | |
/*Prevent the lowercase from affecting other things.*/ | |
.js-post-menu .s-anchors > .grid--cell > * > * { | |
text-transform: initial; | |
} | |
.js-post-menu .s-anchors > .grid--cell { | |
margin: 0; | |
} | |
.js-post-menu .s-anchors > .grid--cell button, | |
.js-post-menu .s-anchors > .grid--cell a { | |
margin: 4px; | |
} | |
.js-post-menu .s-anchors > .grid--cell a { | |
display: block; | |
} | |
.js-post-menu .s-anchors > .grid--cell .js-follow-post { | |
display: none; | |
} | |
</style>`); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment