🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

Greasy Fork is available in English.

📂 缓存分发状态(共享加速已生效)
🕒 页面同步时间:2026/01/29 20:01:06
🔄 下次更新时间:2026/01/29 21:01:06
手动刷新缓存

LogcheckerPlus

Enhancements for Logchecker

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(Tôi đã có Trình quản lý tập lệnh người dùng, hãy cài đặt nó!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

    // ==UserScript==
    // @name        LogcheckerPlus
    // @namespace   LogcheckerPlus
    // @author            TNSepta
    // @description Enhancements for Logchecker
    // @include     http*://*apollo.rip/logchecker.php
    // @include     http*://*passtheheadphones.me/logchecker.php
    // @include     http*://*notwhat.cd/logchecker.php
    // @include     http*://*hydra.zone/logchecker.php
    // @version     1
    // @grant       GM_addStyle
    // ==/UserScript==
    upTable = document.getElementsByClassName('forum_post vertical_margin')
    if (upTable.length > 0) {
            GM_addStyle (".LCPtooltip {\
        position: absolute;\
        display: inline-block;\
        border-bottom: 1px dotted black; /* If you want dots under the hoverable text */}\
            .LCPtooltip .LCPtooltiptext {\
        visibility: hidden;\
        width: 480px;\
        background-color: black;\
        color: #fff;\
        text-align: center;\
        padding: 5px 0;\
        border-radius: 6px;\
        position: absolute;\
        z-index: 1;}\
            .LCPtooltip:hover .LCPtooltiptext {\
        visibility: visible;}");
        upTable[0].innerHTML = '<tr class = \'colhead\'><td colspan=\'2\'>Bulk Upload Files</td></tr><tr><td> <div id=\'fileselect\'>\t<div id=\'filedrag\'><font size = \'60\'>Drop files here</font></div><div id = \'output\'></div></div> </td></tr>' + upTable[0].innerHTML
            // getElementById
        function $id(id) {
            return document.getElementById(id);
        }
            // output information
        function Output(msg) {
            var m = $id('output');
            m.innerHTML = msg + m.innerHTML;
        }
            // call initialization file
        if (window.File && window.FileList && window.FileReader) {
            Init();
        }else{
                    Output("Error, AJAX upload not supported, check your browser!");
            }
            // initialize
        function Init() {
            var fileselect = $id('fileselect'),
                filedrag = $id('filedrag')
            filedrag.style.height = '100px';
            // file select
            fileselect.addEventListener('change', FileSelectHandler, false);
            // is XHR2 available?
            var xhr = new XMLHttpRequest();
            if (xhr.upload) {
                // file drop
                filedrag.addEventListener('dragover', FileDragHover, false);
                filedrag.addEventListener('dragleave', FileDragHover, false);
                filedrag.addEventListener('drop', FileSelectHandler, false);
                filedrag.style.display = 'block';
            }
        }
            // file drag hover
        function FileDragHover(e) {
            e.stopPropagation();
            e.preventDefault();
            e.target.className = (e.type == 'dragover' ? 'hover' : '');
        } // file selection
     
        function FileSelectHandler(e) {
            // cancel event and hover styling
            FileDragHover(e);
            // fetch FileList object
            var files = e.target.files || e.dataTransfer.files;
            // process all File objects
            for (var i = 0, f; f = files[i]; i++) {
                UploadFile(f);
            }
        }
     
        function UploadFile(file) {
            var xhr = new XMLHttpRequest();
            var reader = new FileReader();
                    reader.onload = function(e) {
                            var url = "logchecker.php"
                            var params = "action=takeupload&submit=Upload+log&pastelog=" + escape(reader.result)
                            xhr.open("POST", url, true);
                            xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
                            xhr.onreadystatechange = function() { //Call a function when the state changes.
                                    if (xhr.readyState == 4 && xhr.status == 200) {
                                            //Grab the relevant information.
                                            anaOut = xhr.responseText.split("<div id=\"content\">")[1].split("<div id=\"footer\">")[0];
                                            console.log(anaOut);
                                            fname = file.name;
                                            logScore = anaOut.split("<strong>Score:</strong>")[1].split("(out of 100)")[0];
                                            if (anaOut.indexOf("Log validation report:")>=0){
                                                    logReport = anaOut.split("<h3>Log validation report:</h3>")[1].split("</blockquote>")[0];
                                            }else{
                                                    logReport = "No log report found, all is good!";
                                            }
                                            Output("<div class = 'LCPtooltip'>"+logScore+"<span class='LCPtooltiptext'>"+logReport+"</span></div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+fname+"</div><br>");
                                    }
                            }
                            xhr.send(params);
                    }
            reader.readAsText(file);
        }
    }