try to take over the world!
目前為
// ==UserScript==
// @name FXP admin tools
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.fxp.co.il/forumdisplay.php?*
// @grant none
// ==/UserScript==
(function() {
'use strict';
if($(".threadimod").length > 0 ){
var threads = $("#threads").find('.threadbit');
threads.each(function(){
var text = $(this).find('.title').text();
if(!text.includes("✔")){
$(this).append('<span class="check_thread" style="color:green; font-size: 1.4em; position: absolute; right: -20px; top: 15px;">✔️</span>');
}
});
}
})();
$(".check_thread").click(function(){
var title = $(this).parent().find('.title');
checkThread(title);
$(this).remove();
});
function checkThread(title){
var dblEvent = new MouseEvent('dblclick', {
'view': window,
'bubbles': true,
'cancelable': true
});
title.html("[✔] -- " + title.text());
title.parent()[0].dispatchEvent(dblEvent);
vB_ThreadTitle_Editor = new vB_AJAX_TitleEdit(title[0]);
vB_ThreadTitle_Editor.save(title.text());
vB_ThreadTitle_Editor.restore();
}