FXP admin tools

try to take over the world!

目前为 2019-05-23 提交的版本。查看 最新版本

// ==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();
}

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址