From 8de5ba0b4f9b5bee5bf45059b66be351dea034f0 Mon Sep 17 00:00:00 2001 From: Glorfindel Date: Fri, 12 Jul 2019 22:21:41 +0200 Subject: [PATCH] Tag Synonym Vote Buttons v0.1 --- .../tag-synonym-vote-buttons.user.js | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 tag-synonym-vote-buttons/tag-synonym-vote-buttons.user.js diff --git a/tag-synonym-vote-buttons/tag-synonym-vote-buttons.user.js b/tag-synonym-vote-buttons/tag-synonym-vote-buttons.user.js new file mode 100644 index 0000000..41f9a1c --- /dev/null +++ b/tag-synonym-vote-buttons/tag-synonym-vote-buttons.user.js @@ -0,0 +1,40 @@ +// ==UserScript== +// @name Stack Exchange, Proper Tag Synonym Vote Buttons +// @namespace Glorfindel +// @description Replaces the thumbs up/down buttons on the tag synonym dashboard with regular Stack Exchange vote buttons. +// @author Glorfindel +// @updateURL https://raw.githubusercontent.com/Glorfindel83/SE-Userscripts/master/tag-synonym-vote-buttons/tag-synonym-vote-buttons.user.js +// @downloadURL https://raw.githubusercontent.com/Glorfindel83/SE-Userscripts/master/tag-synonym-vote-buttons/tag-synonym-vote-buttons.user.js +// @version 0.1 +// @match *://*.stackexchange.com/tags/synonyms +// @match *://*.stackoverflow.com/tags/synonyms +// @match *://*.superuser.com/tags/synonyms +// @match *://*.serverfault.com/tags/synonyms +// @match *://*.askubuntu.com/tags/synonyms +// @match *://*.stackapps.com/tags/synonyms +// @match *://*.mathoverflow.net/tags/synonyms +// @grant none +// ==/UserScript== + +(function() { + "use strict"; + + $("a.js-synonym-upvote").each(function() { + this.parentElement.style.paddingTop = "0px"; + this.parentElement.style.paddingBottom = "0px"; + $(this).html(''); + }); + $("a.js-synonym-downvote").each(function() { + $(this).html(''); + }); + /* The code below shows the buttons next to each other, but I'm less satisfied with that result. + $("a.js-synonym-upvote").each(function() { + this.parentElement.style.paddingLeft = "4px"; + this.parentElement.style.paddingRight = "0px"; + $(this).html(''); + }); + $("a.js-synonym-downvote").each(function() { + $(this).html(''); + }); + */ +})(); \ No newline at end of file