From 551bcdb61a237dcb46ddd1beea1bca2c53ecb221 Mon Sep 17 00:00:00 2001 From: Thorsten S Date: Mon, 12 Jan 2015 18:04:16 +0100 Subject: [PATCH] more fixes... --- quickmod.user.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/quickmod.user.js b/quickmod.user.js index 2b87069..c49c812 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.3 +// @version 0.2.4 // ==/UserScript== _log = console.log; // TODO: check GM_log @@ -32,7 +32,6 @@ function removepost(event) { _log(event); var post_id = get_post_id(event.currentTarget); var thread_id = get_thread_id(); - _log(this); var url = boardurl + "mcp.php?&f=" + get_forum_id() + "&t=" + thread_id + "&i=main&mode=topic_view&action=split&start=0"; var data = { @@ -105,9 +104,8 @@ li.css("background-image", 'url("/forum/styles/debianforum/imageset/topic_read_l li.css("background-repeat", "no-repeat"); li.css("height", "27px"); li.css("width", "27px"); -li.on('click', removepost); +li.html(' '); $(".postbody .profile-icons").prepend(li); - li.html(' '); -li.find('a').on('click', removepost) \ No newline at end of file +$('li.droppost a').on('click', removepost) -- 2.39.2