From: Thorsten S Date: Sat, 31 Jan 2015 23:17:52 +0000 (+0100) Subject: finally fix this shit, replace stupid icon with less stupid text/button replacement X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=dff615f1d3387bdbc02d34648a5b1d495cbfafa7;p=dfde%2Fquickmods.git finally fix this shit, replace stupid icon with less stupid text/button replacement --- 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" +} +);