From dff615f1d3387bdbc02d34648a5b1d495cbfafa7 Mon Sep 17 00:00:00 2001 From: Thorsten S Date: Sun, 1 Feb 2015 00:17:52 +0100 Subject: [PATCH] finally fix this shit, replace stupid icon with less stupid text/button replacement --- quickmod.user.js | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/quickmod.user.js b/quickmod.user.js index c49c812..5ba50c7 100644 --- a/quickmod.user.js +++ b/quickmod.user.js @@ -4,7 +4,7 @@ // @require http://code.jquery.com/jquery-latest.min.js // @include https://debianforum.de/forum/viewtopic.php.* // @author Thorsten Sperber -// @version 0.2.4 +// @version 0.3 // ==/UserScript== _log = console.log; // TODO: check GM_log @@ -100,12 +100,16 @@ function removepost(event) { $(".postbody .profile-icons .droppost").off('click'); li = $("
  • "); -li.css("background-image", 'url("/forum/styles/debianforum/imageset/topic_read_locked.gif")'); -li.css("background-repeat", "no-repeat"); -li.css("height", "27px"); -li.css("width", "27px"); -li.html(' '); +li.html('weg damit'); $(".postbody .profile-icons").prepend(li); - -li.html(' '); -$('li.droppost a').on('click', removepost) +$('li.droppost a').on('click', removepost).css({ + "background": "linear-gradient(to bottom, #f7f7f7, #e3e3e3) repeat scroll 0 0 rgba(0, 0, 0, 0)", + "border": "1px solid #666", + "border-radius": "3px", + "color": "#d70751", + "font-weight": "bold", + "line-height": "11px", + "margin-top": "3px", + "padding": "1px 0 1px 2px" +} +); -- 2.39.2