您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Entfernt doppelte Kommentare
当前为
// ==UserScript== // @name Nextdoc Doppelt-Kommentare Entfernen // @namespace fragensammlung@nextdoc // @include http://www.nextdoc.at/fragensammlung?* // @version 1 // @require http://code.jquery.com/jquery-1.9.1.min.js // @grant none // @description Entfernt doppelte Kommentare // ==/UserScript== $(document).ready(main); function main() { doppel_kommentare = $('div.comment').filter(function(){ return $(this).find('div.content').text().trim().toLowerCase()=="doppelt"; }); kommentare_counter = doppel_kommentare.parents('.node-quiz-question').find('.comments-number a'); kommentare_anzahl = (kommentare_counter.text().split(' ')[1]*1-1); if(kommentare_anzahl > 0){ kommentare_counter.text("Kommentare: "+ (kommentare_counter.text().split(' ')[1]*1-1) ); } else { kommentare_counter.parent().remove(); } doppel_kommentare.remove(); }