Greasy Fork

手机助手

自动滚动,嗅探图片、视频,页面旋转,字体放大,去除广告浮动

目前为 2024-01-30 提交的版本。查看 最新版本

// ==UserScript==
// @name         手机助手
// @namespace    http://tampermonkey.net/
// @version      9.500.11.57
// @description  自动滚动,嗅探图片、视频,页面旋转,字体放大,去除广告浮动
// @author       You
// @match        *://*/*
// @run-at       document-start
// @require      https://cdn.bootcss.com/jquery/3.7.1/jquery.min.js
// @grant    GM_setValue
// @grant    GM_getValue
// @license      MIT
// ==/UserScript==

var winWidth;

var runFunc = setInterval(function() {

        if (!this.jQuery || winWidth != window.innerWidth) {
            winWidth = window.innerWidth;
            return
        }

        clearInterval(runFunc);

        this.$ = this.jQuery = jQuery.noConflict(true);

        (function($) {

            'use strict';

            if (document.querySelector('.JqMA-btn-all') ||
                $(".JqMA-btn-all", window.parent.document).length) {
                return;
            }

            function dqSlt(selectPath) {

                return $(document.querySelectorAll('iframe')).contents().find(selectPath).add(document.querySelectorAll(selectPath));

            }

            function addCss(id2, dom1, style1) {
                var id1 = id2 ? id2 : ("JqMA-" + Math.random().toString(36).replace(".", "") +
                    Math.random().toString(36).replace(".", ""));

                dqSlt("head").not("." + id1).append($("<style>").attr({
                    id: id1
                }).html(`html body ${dom1}{${style1}}`)).addClass(id1);
                return id1;
            }

            function removeCss(id1) {
                if (id1) {
                    dqSlt("#" + id1).remove();
                    dqSlt("." + id1).removeClass(id1);
                }
            }

            function uniqueArr(arr) {
                for (var i = 0; i < arr.length; i++) {
                    for (var j = i + 1; j < arr.length; j++) {
                        if (JSON.stringify(arr[i]) == JSON.stringify(arr[j])) {
                            arr.splice(j, 1);
                            j--;
                        }
                    }
                }
                return arr;
            }

            if (GM_getValue("DSImg") == null) {
                GM_setValue("DSImg", 1);
            }

            var DSImg = locHost_p() == GM_getValue("picZ_locH") ?
                GM_getValue("DSImg") : 1;

            var winProp = window.innerHeight / window.innerWidth;

            var winHeight = winWidth * winProp;

            var winW = winHeight * 0.49;

            var wHeight = winHeight * 0.049,
                SPicH = winWidth * 0.125,
                top = (winHeight - wHeight) * 0.5;

            var html_style =
                `html,body {
            overflow-wrap: break-word !important;
            scroll-behavior: auto !important;
            filter: none !important;
            min-height: ${winHeight}px !important;
        }`;

            var inner_style =
                `.JqMA-inner-all{
            position: relative !important;
            z-index: 2147483646 !important;
            margin: 0 !important;
            border: 0 !important;
            padding: 0 !important;
            width: 100% !important;
            display: block !important;
            overflow-wrap: break-word !important;
        }
        .JqMA-inner-pic,
        .JqMA-inner-word {
            height: auto !important;
            margin: ${0.2 * winHeight}px 0 ${0.2 * winHeight}px 0 !important;
            background: black !important;
        }
        .JqMA-inner-word {
            color: #171717 !important;
            text-align: left !important;
            font-size: ${winW * 0.06}px !important;
        }
        .JqMA-inner-pic {
            text-align: right !important;
            font: 0 "Fira Sans", sans-serif !important;
        }
        .JqMA-inner-pic,
        .JqMA-inner-pic *:not(.JqMA-mark-pageNext) {
            box-sizing: border-box !important;
            border-radius: 0 !important;
            float: none !important;
            opacity: 1 !important;
            visibility: visible !important;
            filter: none !important;
        }
        .JqMA-inner-pic *{
            overflow-wrap: break-word !important;
            margin: 0 !important;
            padding: 0 !important;
            position: static !important;
        }
        .JqMA-inner-pic *:not(a){
            border: 0 !important;
        }
        .JqMA-inner-pic *::before,
        .JqMA-inner-pic *::after {
            display: none !important;
        }
        .JqMA-inner-pic picture,
        .JqMA-inner-pic img {
            display: inline-block !important;
            width: 100% !important;
            height: auto !important;
            user-select: none !important;
            object-fit: contain !important;
            background: gray !important;
        }
        .JqMA-inner-pic xmp,
        .JqMA-inner-pic a {
            color: #171717 !important;
            vertical-align: top !important;
            height: ${0.6 * SPicH}px !important;
            overflow: hidden !important;
            font-size: ${winW * 0.05}px !important;
            line-height: 1.36 !important;
            cursor: pointer !important;
        }
        .JqMA-inner-pic a:visited {
            color: #741274 !important;
            border: 2px solid #741274 !important;
        }
        html .JqMA-inner-pic picture + xmp:not(.JqMA-css-smallPic) {
            margin-top: ${-1.5 * SPicH}px !important;
        }
        .JqMA-inner-pic .JqMA-css-smallPic {
            margin-top: ${-0.6 * SPicH}px !important;
            background: rgba(0,0,0,0.6) !important;
        }
        html .JqMA-inner-pic xmp {
            background: none !important;
            position: relative !important;
            white-space: pre-wrap !important;
            white-space: -moz-pre-wrap !important;
            white-space: -pre-wrap !important;
            white-space: -o-pre-wrap !important;
            word-wrap: break-word !important;
            text-align: left !important;
            width: 100% !important;
        }
        .JqMA-inner-pic a{
            background: none !important;
            position: absolute !important;
            top: 0 !important;
            left: 50% !important;
            margin-left: ${-0.5 * SPicH}px !important;
            display: inline-block !important;
            user-select: none !important;
            width: ${SPicH}px !important;
            text-align: center !important;
            text-decoration: none !important;
            border: 2px solid red !important;
        }
        .JqMA-btn-all,
        .JqMA-inner-all,
        .JqMA-inner-pic * {
            min-width: none !important;
            max-width: none !important;
            min-height: none !important;
            max-height: none !important;
        }
        .JqMA-btn-all {
            overflow: hidden !important;
            opacity: 1 !important;
            background: rgba(0,0,0,0.4) !important;
            color: white !important;
            display: block !important;
            text-align: center !important;
            line-height: 2.8 !important;
            border-radius: 0 !important;
            cursor: pointer !important;
            user-select: none !important;
            z-index: 999999999999 !important;
            padding: 0 !important;
            border: 0 !important;
            font-weight: bold !important;
            filter: none !important;
            position: fixed !important;
            font-size: ${winW * 0.036}px !important;
            height: ${wHeight}px !important;
            width: ${wHeight}px !important;
        }
        `;

            var css_style =
                `.JqMA-mark-pageNext,
        .pagetual_pageBar {
            display: block !important;
            height: 0 !important;
            min-height: none !important;
            margin: 0 !important;
            border: 0 !important;
            padding: 0 !important;
            overflow: hidden !important;
        }
        .JqMA-css-textBig,.JqMA-inner-word {
            text-align: left !important;
            text-indent: 2em !important;
            letter-spacing: normal !important;
            line-height: normal !important;
            filter: none !important;
            overflow-wrap: break-word !important;
        }
        .JqMA-css-yScroll{
            overflow-y: scroll!important;
        }
        .JqMA-css-xScroll{
            overflow-x: scroll!important;
        }
        .JqMA-css-hide_fix {
            display: none !important;
            top: 0 !important;
        }
        .JqMA-css-fixed {
            position: fixed !important;
        }
        .JqMA-inner-pic .JqMA-css-smallPic {
            width: 12.5% !important;
            height: ${0.6 * SPicH}px !important;
            overflow: hidden !important;
        }
        .JqMA-css-transform,.JqMA-css-rotate {
            max-height: none !important;
            height: auto !important;
            padding-bottom: ${0.9 * winHeight}px !important;
        }
        .JqMA-css-transform {
            transform: translate(0%, 0%) !important;
            padding-top: ${0.9 * winHeight}px !important;
        }
        html body .JqMA-css-xmpBlank {
            height: ${0.3 * SPicH}px !important;
            width: 100% !important;
            text-align: center !important;
            background: #111111 !important;
        }
        html .JqMA-css-rotate {
            float: right !important;
            position: relative !important;
            left: -100% !important;
            padding-bottom: ${1.5 * winHeight}px !important;
        
            transform: rotateZ(-90deg) !important;
            transform-origin: 100% 0 !important;
            -webkit-transform: rotateZ(-90deg) !important;
            -webkit-transform-origin: 100% 0 !important;
            -moz-transform: rotateZ(-90deg) !important;
            -moz-transform-origin: 100% 0 !important;

            width: ${winHeight}px !important;
            min-width: none !important;
            max-width: none !important;
        }`;

            var jianG = wHeight;

            var left = 0,
                left2 = wHeight + left,
                left3 = wHeight + left2;

            var leftCss = "left:" + left + "px !important;",
                leftCss2 = "left:" + left2 + "px !important;",
                leftCss3 = "left:" + left3 + "px !important;";

            var animateTime = 800,
                scrollNum = parseInt(winHeight * 6 * animateTime / 100000);

            function locHost_p() {
                return window.location.hostname + window.location.pathname.replace(/[_\/]$/, "").replace(/(?<=[_\/])[^_\/]*$/, "") +
                    window.location.search.replace(/(?<==).*$/, "");
            }

            function locHost_w() {
                return window.location.hostname + window.location.pathname.replace(/\/$/, "").replace(/(?<=\/.*?\/).*$|(?<=[_\/])[^_\/]*$/g, "") +
                    window.location.search.replace(/(?<==).*$/, "");
            }

            if (GM_getValue("scrollJu") == null) {
                GM_setValue("scrollJu", 5);
            }

            var scrollJu = Math.abs(GM_getValue("scrollJu"));

            if (GM_getValue("picwh") == null) {
                GM_setValue("picwh", 50);
            }

            var picwh = locHost_p() == GM_getValue("picZ_locH") ?
                GM_getValue("picwh") : 50;

            if (GM_getValue("outerSz") == null) {
                GM_setValue("outerSz", 0.1);
            }

            var outerSz = locHost_p() == GM_getValue("picZ_locH") ?
                GM_getValue("outerSz") : 0.1;

            function addInput(class1, value1, style1) {
                $(document.querySelector("html")).append($('<p>').attr({
                    class: "JqMA-btn-all " + class1,
                    style: style1 + "px !important;"
                }).html(value1));
            }

            addInput('JqMA-btn-del', 'X', leftCss + "top:" + (top));
            addInput('JqMA-btn-width', 'W', leftCss + "top:" + (top - 1 * jianG));
            addInput('JqMA-btn-pic', 'P', leftCss + "top:" + (top - 2 * jianG));
            addInput('JqMA-btn-down', '▽', leftCss + "top:" + (top - 3 * jianG));
            addInput('JqMA-btn-up', '△', leftCss + "top:" + (top - 4 * jianG));
            addInput('JqMA-btn-scrollDiv', "O", leftCss + "top:" + (top - 5 * jianG));
            addInput('JqMA-btn-search', "S", leftCss + "top:" + (top - 6 * jianG));

            addInput('JqMA-btn-transform', "T", leftCss + "top:" + (top + jianG));
            addInput('JqMA-btn-jia', '+', leftCss + "top:" + (top + 2 * jianG));
            addInput('JqMA-btn-jian', '-', leftCss + "top:" + (top + 3 * jianG));
            addInput('JqMA-btn-next', "N", leftCss + "top:" + (top + 4 * jianG));
            addInput('JqMA-btn-picwh', picwh, leftCss + "top:" + (top + 5 * jianG));
            addInput('JqMA-btn-outerSz', outerSz.toFixed(1), leftCss + "top:" + (top + 6 * jianG));

            addInput('JqMA-btn-Ju', scrollJu, leftCss2 + "top:" + (top));

            function addInner() {

                if (!dqSlt(".JqMA-mark-pageNext").length) {

                    $(document.querySelector("body")).prepend($("<p>").attr({
                        class: "JqMA-mark-pageNext"
                    }));
                }
            }

            if (GM_getValue("Dhide") == null) {
                GM_setValue("Dhide", 1);
            }
            var Dhide = window.location.hostname == GM_getValue("Dhide_locH") ?
                GM_getValue("Dhide") : 1;

            if (GM_getValue("xiutanRun") == null) {
                GM_setValue("xiutanRun", 1);
            }
            var xiutanRun = window.location.hostname == GM_getValue("xiutanRun_locH") ?
                GM_getValue("xiutanRun") : 1;

            setTimeout(function() {

                firstRun();

                if (Dtransform == 1) {
                    autoScrollBy(0.9 * winHeight);
                }

                var _timeTouch;

                dqSlt("html").on("touchend", function() {

                    clearTimeout(_timeTouch);
                    _timeTouch = setTimeout(function() {
                        firstRun();
                    }, 1000);
                });

                Dhide && delHide();

            }, 10);

            function firstRun() {

                $(document.querySelector("body")).append(document.querySelectorAll(
                    "html > *:not(head,.JqMA-btn-all,#pagetual-picker)"
                )).filter(function() {
                    return $(this).css("overflow-y") == "hidden";
                }).addClass("JqMA-css-yScroll");

                $(document.querySelector("head:not(.JqMA-mark-addStyle)")).append(
                    $("<style>").html(html_style + inner_style + css_style)
                ).addClass("JqMA-mark-addStyle");

                dqSlt("head:not(.JqMA-mark-addStyle)").append(
                    $("<style>").html(css_style)
                ).addClass("JqMA-mark-addStyle");

                addInner();

                if (widthN > 12) {
                    fontInterFn();
                }
                if (picZ) {
                    imgInterFn();
                }
                if (Dtransform) {
                    transformFunc();
                }
                if (!Dhide && xiutanRun) {
                    xiuTan();
                }

                dqSlt("html:not(.JqMA-mark-htmlFunc)").on('click', function(event) {

                    var _target = $(event.target);

                    if (_target.is("a,a *")) {
                        return;
                    }

                    var direction = 1;

                    if (scrollJu < 0) {
                        direction = -1;
                    }

                    if (_target.has(".JqMA-css-textBig").length || _target.is(".JqMA-css-textBig,.JqMA-css-textBig *") ||
                        (picZ == 2 && _target.is(".JqMA-inner-pic *"))) {

                        autoScrollBy(direction * 0.93 * (Drotate ? winWidth : winHeight));

                    } else if (_target.has("img,picture").length || _target.is("img,.JqMA-inner-pic *")) {

                        if (_target.is("img:not(.JqMA-inner-pic *)") &&
                            _target.outerWidth() < 0.2 * winWidth) {
                            return;
                        }

                        autoScrollBy(direction * 0.45 * (Drotate ? winWidth : winHeight));
                    }
                }).on("touchstart", ":not(.JqMA-btn-move)", function() {

                    if (Dscroll) {

                        dqSlt(".JqMA-btn-Ju").first().trigger("click");

                        pauseScroll = 1;
                    }
                }).on("touchend", function() {

                    stopPause();
                }).addClass("JqMA-mark-htmlFunc");
            }

            $.fn.slideScreen = function(_target, fn, trsTime) {
                var timeout_1;

                $(this).on('touchmove', _target, function(event) {
                    if (timeout_1) {
                        clearTimeout(timeout_1)
                    }
                    timeout_1 = setTimeout(function() {

                        fn(event);

                    }, trsTime || 500);
                });
            }

            var scrollDiv = 0;

            dqSlt("html").on('click', '.JqMA-btn-scrollDiv', function() {

                scrollDiv += 1;

                if (scrollDiv < 2) {

                    dqSlt(".JqMA-btn-scrollDiv").each(function() {
                        this.style.setProperty("color", "green", "important");
                    });

                } else {
                    scrollDiv = 0;

                    dqSlt(".JqMA-btn-scrollDiv").each(function() {
                        this.style.setProperty("color", "white", "important");
                    });
                }
            }).slideScreen('.JqMA-btn-scrollDiv', function() {
                window.location.reload(false);
            });

            dqSlt("html").on('click', '.JqMA-btn-next', function() {

                var pageDom = dqSlt(".pagetual_pageBar,.JqMA-mark-pageNext,.JqMA-inner-all");

                var offsetDiffs = [];

                pageDom.each(function() {

                    var offsetD = -0.5 * (Drotate ? winWidth : winHeight);

                    if (Drotate) {
                        offsetD += $(this).offset().left - $(window).scrollLeft();

                    } else {
                        offsetD += $(this).offset().top - $(window).scrollTop();

                    }

                    if (offsetD > 1) {

                        offsetDiffs.push(offsetD);

                    }
                });

                if (offsetDiffs.length) {

                    offsetDiffs = offsetDiffs.sort(function(a, b) {
                        return a - b;
                    });

                    autoScrollBy(offsetDiffs[0]);

                    dqSlt(".JqMA-btn-next").html(pageDom.length - offsetDiffs.length);
                }
            }).slideScreen('.JqMA-btn-next', function() {

                var pageDom = dqSlt(".pagetual_pageBar,.JqMA-mark-pageNext,.JqMA-inner-all");

                var offsetDiffs = [];

                pageDom.each(function() {

                    var offsetD = -0.5 * (Drotate ? winWidth : winHeight);

                    if (Drotate) {
                        offsetD += $(this).offset().left - $(window).scrollLeft();

                    } else {
                        offsetD += $(this).offset().top - $(window).scrollTop();

                    }

                    if (offsetD < -1) {

                        offsetDiffs.push(offsetD)

                    }
                });

                if (offsetDiffs.length) {

                    offsetDiffs = offsetDiffs.sort(function(a, b) {
                        return b - a;
                    });

                    autoScrollBy(offsetDiffs[0]);

                    dqSlt(".JqMA-btn-next").html(offsetDiffs.length - 1);

                }
            });

            function transformFunc() {

                $(document.querySelector("body")).addClass("JqMA-css-transform");

                if (Dtransform == 1) {

                    dqSlt(":not(.JqMA-css-hide_fix,head *,.JqMA-btn-all,#pagetual-picker)").filter(function() {
                        return /sticky|fixed/.test($(this).css("position"));
                    }).addClass("JqMA-css-hide_fix JqMA-css-fixed");

                } else {

                    dqSlt(":not(.JqMA-css-fixed,head *,.JqMA-btn-all,#pagetual-picker)").filter(function() {
                        return /sticky/.test($(this).css("position"));
                    }).addClass("JqMA-css-fixed");
                }

                dqSlt(".JqMA-btn-transform").each(function() {
                    this.style.setProperty("color", "green", "important");
                }).html("T" + Dtransform);
            }

            if (GM_getValue("Dtransform") == null) {
                GM_setValue("Dtransform", 0);
            }

            var Dtransform = window.location.hostname == GM_getValue("Dtransform_locH") ?
                GM_getValue("Dtransform") : 0;

            dqSlt("html").on('click', '.JqMA-btn-transform', function() {

                Dtransform += 1;

                if (Dtransform < 3) {

                    dqSlt(".JqMA-css-hide_fix").removeClass("JqMA-css-hide_fix");

                    transformFunc();

                    if (Dtransform == 1) {
                        autoScrollBy(0.9 * winHeight);
                    }
                } else {
                    Dtransform = 0;

                    dqSlt(".JqMA-css-transform").removeClass("JqMA-css-transform");

                    dqSlt(".JqMA-css-fixed").removeClass("JqMA-css-fixed");

                    autoScrollBy(-0.9 * winHeight);

                    dqSlt(".JqMA-btn-transform").each(function() {
                        this.style.setProperty("color", "white", "important");
                    }).html("T");
                }
                GM_setValue("Dtransform", Dtransform);
                GM_setValue("Dtransform_locH", window.location.hostname);

            }).slideScreen('.JqMA-btn-transform', function() {

                var oldDt = Dtransform;

                Dtransform = 0;

                dqSlt(".JqMA-css-transform").removeClass("JqMA-css-transform");

                dqSlt(".JqMA-css-fixed").removeClass("JqMA-css-fixed");

                oldDt != 0 && autoScrollBy(-0.9 * winHeight);

                dqSlt(".JqMA-btn-transform").each(function() {
                    this.style.setProperty("color", "white", "important");
                }).html("T");

                GM_setValue("Dtransform", Dtransform);
                GM_setValue("Dtransform_locH", window.location.hostname);
            });

            var Drotate = 0;

            DSImg == 1 && dqSlt(".JqMA-btn-search").each(function() {
                this.style.setProperty("color", "green", "important");
            });

            dqSlt("html").on('click', '.JqMA-btn-search', function() {

                DSImg += 1;
                if (DSImg == 2) {
                    DSImg = 0;
                    dqSlt(".JqMA-btn-search").each(function() {
                        this.style.setProperty("color", "white", "important");
                    });
                } else {
                    dqSlt(".JqMA-btn-search").each(function() {
                        this.style.setProperty("color", "green", "important");
                    });
                }
                if (picZ) {
                    picZ -= 1;
                    dqSlt(".JqMA-btn-pic").first().trigger("click");
                }
                GM_setValue("DSImg", DSImg);

            }).slideScreen('.JqMA-btn-search', function() {

                var _scrollTop = getScrollTop(),
                    _scrollLeft = getScrollLeft();

                autoScrollTo(0);

                Drotate += 1;

                if (Drotate < 2) {

                    dqSlt("html,body,div").filter(function() {
                        return $(this).css("overflow-y") != "hidden" &&
                            $(this).css("overflow-x") == "hidden" &&
                            $(this).height() > 0.5 * winHeight;
                    }).addClass("JqMA-css-xScroll");

                    setTimeout(function() {

                        $(document.querySelector('body')).addClass("JqMA-css-rotate");

                        autoScrollTo(_scrollTop * winProp);

                        dqSlt('.JqMA-btn-all').each(function() {

                            var _clone = $(this).clone().addClass("JqMA-btn-left")
                                .css('margin-left', (winHeight * winProp - winWidth * 0.8) + "px");

                            _clone.appendTo(document.querySelector("html"));
                        });

                    }, 100);

                } else {

                    Drotate = 0;

                    setTimeout(function() {

                        dqSlt(".JqMA-css-rotate").removeClass("JqMA-css-rotate");

                        autoScrollTo(_scrollLeft / winProp);

                        dqSlt(".JqMA-btn-left").remove();

                    }, 100);
                }
            });

            function getScrollLeft() {
                return $(document.querySelector("html")).scrollLeft() +
                    $(document.querySelector("body")).scrollLeft();

            }

            function getScrollTop() {
                return $(document.querySelector("html")).scrollTop() +
                    $(document.querySelector("body")).scrollTop();

            }

            var pauseScroll = 0,
                Dpause;

            dqSlt(".JqMA-btn-Ju,.JqMA-btn-down,.JqMA-btn-up").addClass("JqMA-btn-move");

            dqSlt("html").on('click', "a,.JqMA-btn-down,.JqMA-btn-up", function() {

                if (Dscroll) {
                    dqSlt(".JqMA-btn-Ju").first().trigger("click");
                }
                setTimeout(function() {
                    if (Dscroll) {
                        dqSlt(".JqMA-btn-Ju").first().trigger("click");
                    }
                }, 210);
            });

            function stopPause() {

                if (pauseScroll == 1) {

                    clearTimeout(Dpause);

                    Dpause = setTimeout(function() {

                        pauseScroll = 0;

                        if (!Dscroll) {

                            dqSlt(".JqMA-btn-Ju").first().trigger("click");
                        }
                    }, 200);
                }
            }

            $(document).scroll(function() {

                stopPause();
            });

            function visibleDiv() {
                return dqSlt("div").filter(function() {

                    return $(this).css("display") != "none" &&
                        $(this).css("overflow-y") != "hidden" &&
                        $(this).height() > 0.5 * winHeight;
                });
            }

            function autoScrollBy(scrollBy_Ju, speed = 0) {

                if (scrollDiv) {

                    visibleDiv().stop().animate({
                        scrollTop: "+=" + scrollBy_Ju + "px"
                    }, speed, "linear");

                } else {

                    if (Drotate) {

                        dqSlt("html,body").stop().animate({
                            scrollLeft: "+=" + scrollBy_Ju + "px"
                        }, speed, "linear");

                    } else {

                        dqSlt("html,body").stop().animate({
                            scrollTop: "+=" + scrollBy_Ju + "px"
                        }, speed, "linear");
                    }
                }
            }

            function autoScrollTo(scrollTo_Ju, speed = 0) {

                if (scrollDiv) {

                    visibleDiv().stop().animate({
                        scrollTop: scrollTo_Ju
                    }, speed, "linear");

                } else {

                    if (Drotate) {

                        dqSlt("html,body").stop().animate({
                            scrollLeft: scrollTo_Ju
                        }, speed, "linear");

                    } else {

                        dqSlt("html,body").stop().animate({
                            scrollTop: scrollTo_Ju
                        }, speed, "linear");
                    }
                }
            }

            dqSlt("html").slideScreen('.JqMA-btn-width', function() {

                if (dqSlt(".JqMA-inner-word").length) {

                    dqSlt(".JqMA-inner-word").remove();

                    window.speechSynthesis.cancel();

                    dqSlt('.JqMA-btn-width').each(function() {
                        this.style.setProperty("color", "white", "important");
                    });
                } else {

                    var allStr = "";

                    dqSlt(":not(head *,link,style,script,noscript)").each(function() {

                        if ($(this).css("display") == "none") {
                            return true;
                        }
                        var addStr = $(this).clone().children().remove().end().text().replace(/\s+/g, " ");

                        if (addStr.replace(/[一-鿯]/g, "aa").replace(/[^A-Za-z]/g, "").length > 8) {
                            allStr += "<br><br>";
                        }
                        allStr += addStr + " ";
                    });

                    allStr = allStr.replace(/\s{2,}/g, " ")

                    addInner();

                    $(document.querySelector("body")).prepend($("<p>").attr({
                        class: "JqMA-inner-word JqMA-inner-all"
                    }).html(allStr));

                    dqSlt('.JqMA-btn-width').each(function() {
                        this.style.setProperty("color", "green", "important");
                    });

                    window.speechSynthesis.cancel();
                    var allStrlist = allStr.replace(/<br><br>/g, "\n").split(/([\s\S]{100,400}?[…~;—。!?!?]|[\s\S]{400}[,,\s])/);
                    for (var i = 0; i < allStrlist.length; i++) {
                        if (allStrlist[i].length > 0) {
                            var utterThis = new SpeechSynthesisUtterance(allStrlist[i]);
                            window.speechSynthesis.speak(utterThis);
                        }
                    }
                }
            });

            var css_textImg,
                css_textBig;

            function fontInterFn() {

                var fSize = widthN > 12 ? parseInt(winWidth / widthN) : 0;

                css_textBig = addCss(css_textBig, ".JqMA-css-textBig",
                    "font-size:" + fSize + "px !important;");

                dqSlt(":not(head *,link,style,script,noscript,.JqMA-css-textBig,.JqMA-inner-pic *,.JqMA-btn-all,#pagetual-picker *)").filter(function() {

                    if ($(this).css("display") == "none" || $(this).outerWidth() < 0.5 * winWidth) {
                        return false;
                    }
                    var textLen = $(this).clone().children().remove().end().text()
                        .replace(/[\s]+/g, "").length;

                    if (textLen > 0) {

                        if (textLen > 50) {

                            oldFont = parseInt($(this).css("font-size").replace("px", ""));
                        }
                        return true;
                    }
                    return false;

                }).addClass("JqMA-css-textBig");

                var _scale = fSize ? parseInt(fSize / oldFont * 100) / 100 : 1;

                css_textImg = addCss(css_textImg, ".JqMA-css-textImg",

                    `transform: scale(${_scale}) !important;
            -webkit-transform: scale(${_scale}) !important;
            -moz-transform: scale(${_scale}) !important;

            margin: 0 ${_scale * 9 - 9}px !important;`)

                dqSlt(".JqMA-css-textBig").find("em:not(.JqMA-css-textBig,.JqMA-css-textImg),img:not(.JqMA-css-textImg)").filter(function() {
                    return ($(this).is("img") || $(this).css("background-image").split(/[""'']/).length > 1) &&
                        $(this).outerWidth() < 0.1 * winWidth;
                }).addClass("JqMA-css-textImg");

                if (fSize) {

                    dqSlt(".JqMA-btn-width").html(21 - widthN);

                } else {
                    dqSlt(".JqMA-css-textBig").removeClass("JqMA-css-textBig");

                    dqSlt(".JqMA-css-textImg").removeClass("JqMA-css-textImg");

                    dqSlt(".JqMA-btn-width").html("W");
                }
            }

            if (GM_getValue("widthN") == null) {
                GM_setValue("widthN", 10);
            }

            var widthN = locHost_w() == GM_getValue("widthN_locH") ?
                GM_getValue("widthN") : 10;

            var oldFont = 22;

            dqSlt("html").on('click', '.JqMA-btn-width', function() {

                widthN += 3;

                if (widthN > 16) {
                    widthN -= 3 * 3;
                }
                removeCss(css_textBig);
                removeCss(css_textImg);

                fontInterFn();

                GM_setValue("widthN", widthN);
                GM_setValue("widthN_locH", locHost_w());
            });

            function picSizeOut(_this, picwh_2 = null) {

                if ($(_this).is("xmp")) {
                    return true;
                }

                var natureW = _this.naturalWidth;

                var natureH = _this.naturalHeight;

                if (!picwh_2) {
                    picwh_2 = picwh;
                }

                return natureW >= picwh_2 && natureH >= picwh_2 &&
                    natureW / natureH <= 6;
            }

            function xiuTan() {

                if (!document.querySelector(".JqMA-btn-hrefAll")) {
                    $(document.querySelector("html")).append($("<p>").attr({
                        class: "JqMA-btn-all JqMA-btn-hrefAll",
                        style: "background: none !important; overflow: scroll !important; height: " + 0.2 * winHeight + "px !important; width: " + 0.3 * winWidth + "px !important; bottom: 1% !important; right: 0 !important;"
                    }).append($("<span>").attr({
                        class: "JqMA-btn-all",
                        style: "margin-left: auto !important; height: 12px !important; line-height: 12px !important; color: red !important; text-align: left !important; position: static !important;"
                    }).html("————")).append($("<span>").attr({
                        class: "JqMA-btn-all",
                        style: "margin-left: auto !important; height: 12px !important; line-height: 12px !important; color: red !important; text-align: left !important; position: static !important;"
                    }).html("————")));
                }
                var preMatches = [];
                $(document.querySelectorAll(".JqMA-btn-hrefAll a")).each(function() {
                    preMatches.push(this.getAttribute("href"));
                });

                var pageSource = "";
                dqSlt("html").each(function() {
                    pageSource += this.outerHTML;
                });

                var regex_2 = /(video|source|iframe)[^<>\n]*? src=".*?(?=")|http[^""''\s]*?(\.|%2E)(avi|mp4|mov|m4v|m3u8|wmv|flv|f4v|webm)([?!/#&%.][/&%;._\-=0-9A-Za-z]*)?/gi;

                var matches = pageSource.match(regex_2);

                if (matches != null) {
                    matches = Array.from(new Set(matches));
                    for (var i = 0; i < matches.length; i++) {
                        var newI = matches[i];
                        try {
                            newI = decodeURIComponent(newI);
                            newI = decodeURI(newI);
                            newI = unescape(newI);
                        } catch (error) {
                            console.log(error);
                        }
                        newI = newI.replace(/.*src="/g, "").replace(/\\\//g, "/").replace(/&amp;/g, "&").replace(/&quot;/g, "").replace(/(?<==http.*?)[""''].*$/, "").replace(/^.*=(?=http)/, "");
                        if (preMatches.indexOf(newI) > -1 || newI.length < 1) {
                            continue
                        }
                        preMatches.push(newI);

                        var aName = newI.match(/[^/,""''\s]*?(\.|%2E)(avi|mp4|mov|m4v|m3u8|wmv|flv|f4v|webm)/);

                        $(document.querySelector(".JqMA-btn-hrefAll span")).first().after($("<a>").attr({
                            href: newI,
                            class: "JqMA-btn-all JqMA-btn-href",
                            style: "text-align: left !important; position: static !important; width: " + 0.6 * winWidth + "px !important;"
                        }).html(aName ? aName[0] : newI.replace(/\?.*/, "").replace(/\/$/, "").replace(/^.*[,/]/, "")));
                    }
                }
            }

            dqSlt("html").on('click', ".JqMA-btn-outerSz", function() {
                outerSz += 0.1;
                if (outerSz > 0.4) {
                    outerSz = 0.1;
                }
                if (picZ) {
                    picZ -= 1;
                    dqSlt(".JqMA-btn-pic").first().trigger("click");
                }

                dqSlt(".JqMA-btn-outerSz").html(outerSz.toFixed(1));

                locHost_p() == GM_getValue("picZ_locH") && GM_setValue("outerSz", outerSz);

            }).slideScreen('.JqMA-btn-outerSz', function() {

                xiutanRun++;

                if (xiutanRun < 2) {
                    xiuTan();
                } else {
                    xiutanRun = 0;
                    dqSlt(".JqMA-btn-hrefAll").remove();

                }

                GM_setValue("xiutanRun", xiutanRun);
                GM_setValue("xiutanRun_locH", window.location.hostname);
            });

            dqSlt("html").on('click', ".JqMA-btn-picwh", function() {

                dqSlt(".JqMA-btn-all").each(function() {
                    this.style.setProperty("display", "none", "important");
                });

                var _outStop = setTimeout(function() {

                    dqSlt("html").off("click.picwh");

                    dqSlt(".JqMA-btn-all").each(function() {
                        this.style.setProperty("display", "block", "important");
                    });

                }, 3000);

                setTimeout(function() {

                    dqSlt("html").on("click.picwh", function(event) {

                        var _target = $(event.target);

                        dqSlt("html").off("click.picwh");

                        dqSlt(".JqMA-btn-all").each(function() {
                            this.style.setProperty("display", "block", "important");
                        });

                        clearTimeout(_outStop);

                        if (_target.is(".JqMA-inner-pic img.JqMA-mark-imgLoaded")) {

                            if (_target[0].naturalWidth < _target[0].naturalHeight) {

                                picwh = _target[0].naturalWidth + 1;
                            } else {
                                picwh = _target[0].naturalHeight + 1;
                            }
                            if (picwh < 50) {
                                picwh = 50;
                            }
                        } else {
                            picwh = 50;
                        }

                        picImgFilter();

                        dqSlt(".JqMA-btn-picwh").html(picwh);

                        locHost_p() == GM_getValue("picZ_locH") && GM_setValue("picwh", picwh);
                    });
                }, 100);

            }).slideScreen('.JqMA-btn-picwh', function() {

                picwh -= 50;
                if (picwh < 50) {
                    picwh = 50;
                }
                picImgFilter();

                dqSlt(".JqMA-btn-picwh").html(picwh);

                locHost_p() == GM_getValue("picZ_locH") && GM_setValue("picwh", picwh);
            });

            function picImgFilter() {

                dqSlt(".JqMA-inner-pic xmp").addClass("JqMA-css-smallPic");

                dqSlt(".JqMA-inner-pic .JqMA-mark-imgLoaded").filter(function() {
                    return picSizeOut(this);
                }).closest("picture").each(function() {
                    $(this).nextAll("xmp").first().removeClass("JqMA-css-smallPic");
                }).removeClass("JqMA-css-smallPic");

                dqSlt(".JqMA-inner-pic .JqMA-mark-imgLoaded").filter(function() {
                    return !picSizeOut(this);
                }).closest("picture").addClass("JqMA-css-smallPic");

            }

            dqSlt("html").slideScreen('.JqMA-btn-pic', function() {

                var _scrollTop = getScrollTop(),
                    _scrollLeft = getScrollLeft();

                dqSlt(".JqMA-inner-pic").attr("style", "display:none !important;");

                Drotate || autoScrollBy(1000 * winHeight);

                var i = 0;
                var _timeout = setInterval(function() {
                    autoScrollBy(-0.5 * winHeight);
                    i++;
                    if (getScrollTop() <= 0.5 * winHeight) {
                        clearInterval(_timeout);
                        if (picZ) {
                            picZ -= 1;
                            dqSlt(".JqMA-btn-pic").first().trigger("click");
                        }
                        setTimeout(function() {
                            autoScrollTo(Drotate ? _scrollLeft : _scrollTop);
                        }, 200);
                    }
                }, 100);
            });

            if (GM_getValue("picZ") == null) {
                GM_setValue("picZ", 0);
            }

            var picZ = locHost_p() == GM_getValue("picZ_locH") ?
                GM_getValue("picZ") : 0;

            dqSlt("html").on('click', ".JqMA-btn-pic", function() {

                getImgArr();

                GM_setValue("picZ", picZ);
                GM_setValue("picZ_locH", locHost_p());
                GM_setValue("picwh", picwh);
                GM_setValue("outerSz", outerSz);
                GM_setValue("DSImg", DSImg);
            });

            function getTrim(_str) {
                try {
                    return _str.trim();
                } catch (error) {
                    return null;
                }
            }

            function getAttr(_this, _attr) {
                return getTrim($(_this).attr(_attr)) || null;
            }

            function returnLength(lStr) {
                return lStr && lStr.replace(/[\s]+/g, "").replace(/[一-鿯]/g, "aa").length > 1;
            }

            var preImgArr = [],
                newImgArr,
                nextDom = 0,
                preLen;

            function imgInterFn() {

                //var oldTime = Date.now();

                newImgArr = [];
                preLen = 0;

                dqSlt(".JqMA-btn-pic").each(function() {
                    this.style.setProperty("color", "green", "important");
                }).html("P" + picZ);

                var _text = dqSlt("html").clone().find("head,link,style,script,noscript").remove().end().text()
                    .match(/http[^""''\s]*?(\.|%2E)(xbm|tif|pjp|svgz|jpg|jpeg|ico|tiff|gif|svg|jfif|webp|png|bmp|pjpeg|avif)([?!/#&%.][/&%;._\-=0-9A-Za-z]*)?/gi);

                dqSlt(":not(.JqMA-mark-picSlt,picture *,.JqMA-inner-pic *)").filter(function() {

                    return ($(this).is("a,img,video,iframe") ||
                            $(this).has("> img,> picture").length ||
                            $(this).css("background-image").split(/[""'']/).length > 1) &&
                        $(this).css("display") != "none" && $(this).outerWidth() > outerSz * winWidth;

                }).add(dqSlt(".pagetual_pageBar")).each(function(inum, dom) {

                    $(this).addClass("JqMA-mark-picSlt");

                    var dataObj = [],
                        _img = $(this),
                        _picStr = null,
                        _imgStr = null;

                    if (inum == 0 || _img.is(".pagetual_pageBar")) {

                        nextDom += newImgArr.length - preLen;
                        preLen = newImgArr.length;

                        if (nextDom > 5 * 2) {

                            newImgArr.push($("<p>").attr({
                                class: "JqMA-mark-pageNext"
                            }));
                            nextDom = 0;
                        }
                    }

                    if (picZ != 2) {

                        if (inum == 0 && _text) {
                            dataObj = dataObj.concat(_text);
                            _text = null;
                        }

                        if (_img.is("picture")) {

                            _picStr = $("<picture>");

                            var _picChild;

                            _img.children().each(function() {

                                if ($(this).is("img")) {
                                    _picChild = $("<img>").attr({
                                        loading: "lazy",
                                        alt: "JU-IMG",
                                        width: "300",
                                        height: "100"
                                    });
                                } else {
                                    _picChild = $("<source>");
                                }
                                _picStr.append(_picChild.attr({
                                    src: getAttr(this, "src"),
                                    srcset: getAttr(this, "srcset"),
                                }));

                                preImgArr.push(getAttr(this, "srcset"));
                                preImgArr.push(getAttr(this, "src"));
                            });

                            if (preImgArr.indexOf(_picStr.prop("outerHTML")) == -1) {

                                preImgArr.push(_picStr.prop("outerHTML"));

                                newImgArr.push(_picStr);
                            } else {
                                _picStr = null;
                            }
                        }

                        var _backImg = _img.css("background-image").split(/[""'']/);

                        dataObj.push(getAttr(_img, "src"));

                        dataObj.push(getAttr(_img, "poster"));

                        dataObj.push(_backImg.length > 1 ? _backImg[1] : null);

                        if (DSImg != 0) {

                            var _attributes = [];

                            _attributes.push(_img[0].attributes);

                            if (_img.is("picture")) {

                                _img.children().each(function() {

                                    _attributes.push(this.attributes);
                                });
                            }

                            _attributes.forEach(function(attrs) {

                                $.each(attrs, function(index, item) {

                                    var itV = item.value;

                                    if (typeof itV == "object") {
                                        try {
                                            itV = JSON.stringify(itV);
                                        } catch (error) {
                                            return true;
                                        }
                                    } else if (typeof itV != "string") {
                                        return true;
                                    }

                                    var _isp;

                                    if (/[""'']|%22%2C/.test(itV)) {

                                        _isp = itV.split(/[""'']|%22/).filter(function(j) {

                                            return j.length > 9 && /^http/.test(getTrim(j));
                                        });
                                        _isp.length && (dataObj = dataObj.concat(_isp));

                                    } else if (/^(type|href)$|^(:|on)/.test(item.name)) {

                                        _isp = itV.match(/http[^""''\s]*?(\.|%2E)(xbm|tif|pjp|svgz|jpg|jpeg|ico|tiff|gif|svg|jfif|webp|png|bmp|pjpeg|avif)([?!/#&%.][/&%;._\-=0-9A-Za-z]*)?/gi);
                                        _isp && (dataObj = dataObj.concat(_isp));

                                    } else if (!/^(src|style|srcset|class|id)$/.test(item.name)) {

                                        dataObj.push(itV);
                                    }
                                });
                            });
                        }

                        dataObj = Array.from(new Set(dataObj));

                        dataObj.forEach(function(i) {

                            if (typeof i != "string") {
                                return
                            }

                            i = getTrim(i).replace(/\\\//g, "/").replace(/&amp;/g, "&").replace(/&quot;/g, "");

                            if (/^data:image/.test(i)) {
                                i = i.replace(/[^A-Za-z0-9+/=>;]{0,9}$/, "");
                            } else if (/%[0-9]/.test(i)) {
                                try {
                                    i = decodeURIComponent(i);
                                    i = decodeURI(i);
                                    i = unescape(i);
                                } catch (error) {
                                    console.log(error);
                                }
                            }

                            if (/^[a-z/]/.test(i) && /[?!/#&%]/.test(i) &&
                                !/(\.|%2E)(txt)([?!#]|$)/.test(i) &&
                                preImgArr.indexOf(i) == -1) {

                                preImgArr.push(i);

                                var _html = null;

                                if (/(\.|%2E)(shtml|html|htm)([?!#]|$)/.test(i) || _img.is("iframe")) {
                                    _html = "网页";
                                }
                                if (/(\.|%2E)(avi|mp4|mov|m4v|m3u8|wmv|flv|f4v|webm)([?!/#&%.]|$)/.test(i)) {
                                    _html = "视频";
                                }
                                if (_html) {
                                    _imgStr = $("<xmp>").attr({
                                        style: "display:" + (picZ == 1 && Dhide ? "none" : "inline-block") + " !important;"
                                    }).addClass("JqMA-css-smallPic").append($("<a>").html(_html).attr({
                                        href: i,
                                    }));
                                } else {

                                    _imgStr = $("<picture>").append($("<img>").attr({
                                        src: i,
                                        loading: "lazy",
                                        alt: "JU-IMG",
                                        width: "300",
                                        height: "100",
                                        srcset: getAttr(_img, "srcset")
                                    }));
                                }

                                newImgArr.push(_imgStr);
                            }
                        });
                    }

                    if (_imgStr || _picStr || _img.is("a")) {

                        var _newA = $("<a>").on("click", function() {

                            _img.trigger("click");

                            if (_img.is("a")) {

                                _img.children().length || _img.append($("<p>").attr({
                                    style: "display: none !important;"
                                }));
                                _img.children().first().trigger("click");
                            }
                        });
                        var _pStr = "";

                        if (!_imgStr && !_picStr) {

                            var _imgText,
                                _a_2 = _img;

                            for (var i = 0; i < 9; i++) {

                                if (_pStr != "" || _a_2.is("body")) {

                                    break
                                } else {

                                    _imgText = _a_2.clone().find("head,link,style,script,noscript").remove().end().text();

                                    _pStr = (returnLength(_a_2.attr("alt")) ? _a_2.attr("alt") :
                                        returnLength(_a_2.attr("title")) ? _a_2.attr("title") :
                                        returnLength(_imgText) ? _imgText :
                                        "");
                                    _a_2 = _a_2.parent();
                                }
                            }
                            _pStr = getTrim(_pStr).replace(/\s+/g, " ").substring(0, 99);
                        }
                        if (picZ != 2 || preImgArr.indexOf(_pStr) == -1) {

                            if (picZ == 2) {
                                preImgArr.push(_pStr);
                                newImgArr.push($("<xmp>").addClass("JqMA-css-xmpBlank"));
                            }
                            newImgArr.push($("<xmp>").attr({
                                style: "display:" + (picZ == 1 && Dhide ? "none" : "inline-block") + " !important;"
                            }).addClass("JqMA-css-smallPic").html(_pStr).append(_newA));
                        }
                    }
                });

                if (newImgArr.length > 0) {

                    nextDom += newImgArr.length - preLen;
                    preLen = newImgArr.length;

                    if (!dqSlt(".JqMA-inner-pic").length) {

                        addInner();

                        $(document.querySelector("body")).prepend($("<p>").attr({
                            class: "JqMA-inner-pic JqMA-inner-all"
                        }));
                    }
                    dqSlt(".JqMA-inner-pic").append(newImgArr);

                    dqSlt(".JqMA-inner-pic img:not(.JqMA-mark-imgLoaded)").off("error.imgError").on("error.imgError", function() {

                        if (getAttr(this, "src").indexOf("=http") > -1) {

                            $(this).attr("src", getAttr(this, "src").replace(/(?<==http.*?)&.*$/, "").replace(/^.*=(?=http)/, ""));
                        }

                        $(this).closest("picture").attr({
                            style: "display:" + (picZ == 1 && Dhide ? "none" : "inline-block") + " !important;"
                        }).addClass("JqMA-css-smallPic");
                    });

                    dqSlt(".JqMA-inner-pic img:not(.JqMA-mark-imgLoaded)").on("load", function() {

                        $(this).addClass("JqMA-mark-imgLoaded");

                        if (picSizeOut(this)) {

                            $(this).closest("picture").removeClass("JqMA-css-smallPic").nextAll("xmp").first().removeClass("JqMA-css-smallPic");

                        } else {

                            $(this).closest("picture").attr({
                                style: "display:" + (picZ == 1 && Dhide ? "none" : "inline-block") + " !important;"
                            }).addClass("JqMA-css-smallPic");
                        }
                    });
                }

                if (picZ == 2) {
                    dqSlt(".JqMA-css-smallPic").removeClass("JqMA-css-smallPic");
                }
                //alert(Date.now() - oldTime);
            }

            function getImgArr() {

                dqSlt(".JqMA-mark-picSlt").removeClass("JqMA-mark-picSlt");

                picZ += 1;

                dqSlt(".JqMA-inner-pic").remove();

                if (picZ < 3) {

                    preImgArr = [];

                    nextDom = 0;

                    imgInterFn();

                } else {

                    dqSlt(".JqMA-btn-pic").each(function() {
                        this.style.setProperty("color", "white", "important");
                    }).html("P");

                    picZ = 0;
                }
            }

            var pageX = [];

            dqSlt("html").on('click', '.JqMA-btn-down', function() {

                pageX.unshift([getScrollLeft(), getScrollTop()]);

                var toHs = [];

                $(document.querySelectorAll("body > *:not(link,style,script,noscript)")).each(function() {

                    var toH = -0.5 * (Drotate ? winWidth : winHeight);

                    if (Drotate) {

                        toH += $(this).offset().left - $(window).scrollLeft();

                    } else {
                        toH += $(this).offset().top - $(window).scrollTop();

                    }

                    toH += $(this).outerHeight();

                    toHs.push(toH);

                });

                if (!scrollDiv && toHs.length) {

                    toHs.sort(function(a, b) {
                        return b - a;
                    });
                    autoScrollBy(toHs[0]);

                } else {
                    autoScrollBy(1000 * winHeight);
                }

            }).slideScreen('.JqMA-btn-down,.JqMA-btn-up', function() {

                if (pageX.length) {

                    pageX = uniqueArr(pageX);

                    autoScrollTo(Drotate ? pageX[0][0] : pageX[0][1]);

                    pageX.splice(0, 1);
                }
            });

            dqSlt("html").on('click', '.JqMA-btn-up', function() {

                pageX.unshift([getScrollLeft(), getScrollTop()]);

                if (scrollDiv) {
                    autoScrollBy(-1000 * winHeight);
                    return;
                }

                if (Dtransform) {

                    autoScrollTo(0.9 * winHeight);
                } else {
                    autoScrollTo(0);
                }

            });

            function delHide() {

                dqSlt(".JqMA-btn-all").each(function() {
                    this.style.setProperty("display", "none", "important");
                });
                if (picZ == 1) {
                    dqSlt(".JqMA-inner-pic xmp,.JqMA-css-smallPic").each(function() {
                        this.style.setProperty("display", "none", "important");
                    });
                }

                dqSlt(".JqMA-btn-del").each(function() {
                    this.style.setProperty("opacity", "0.5", "important");
                    this.style.setProperty("display", "block", "important");
                });
            }

            dqSlt("html").on('click', '.JqMA-btn-del', function() {

                if (!Dhide) {

                    Dhide = 1;

                    delHide();
                } else {

                    Dhide = 0;

                    dqSlt(".JqMA-btn-all").each(function() {
                        this.style.setProperty("display", "block", "important");
                        this.style.setProperty("opacity", "1", 'important');
                    });
                    if (picZ == 1) {
                        dqSlt(".JqMA-inner-pic xmp,.JqMA-css-smallPic").each(function() {
                            this.style.setProperty("display", "inline-block", "important");
                        });
                    }
                }
                GM_setValue("Dhide", Dhide);
                GM_setValue("Dhide_locH", window.location.hostname);

            }).slideScreen('.JqMA-btn-del', function() {

                dqSlt(".JqMA-btn-all").each(function() {
                    this.style.setProperty("opacity", "0.1", 'important');
                });
                Dhide = 1;
            });

            dqSlt("html").on('click', '.JqMA-btn-jia', function() {

                scrollJu += 1;

                if (scrollJu * scrollNum > winHeight - 20) {
                    scrollJu = 0;
                }

                dqSlt(".JqMA-btn-Ju").html(scrollJu);

            }).slideScreen('.JqMA-btn-jia', function() {

                scrollJu += 5;

                if (scrollJu * scrollNum > winHeight - 20) {
                    scrollJu = 0;
                }

                dqSlt(".JqMA-btn-Ju").html(scrollJu);
            });

            dqSlt("html").on('click', '.JqMA-btn-jian', function() {

                scrollJu -= 1;

                if (-scrollJu * scrollNum > winHeight - 20) {
                    scrollJu = 0;
                }

                dqSlt(".JqMA-btn-Ju").html(scrollJu);

            }).slideScreen('.JqMA-btn-jian', function() {

                scrollJu -= 5;

                if (-scrollJu * scrollNum > winHeight - 20) {
                    scrollJu = 0;
                }

                dqSlt(".JqMA-btn-Ju").html(scrollJu);
            });

            var Dscroll = 0,
                timeDown;

            dqSlt("html").on('click', '.JqMA-btn-Ju', function() {

                Dscroll += 1;
                clearInterval(timeDown);

                if (Dscroll < 2) {

                    dqSlt(".JqMA-btn-Ju").each(function() {
                        this.style.setProperty("color", "green", "important");
                    });

                    autoScrollBy(scrollJu * scrollNum, Math.abs(scrollJu * scrollNum) > 0.5 * winHeight ? 0 : animateTime);

                    timeDown = setInterval(function() {

                        autoScrollBy(scrollJu * scrollNum, Math.abs(scrollJu * scrollNum) > 0.5 * winHeight ? 0 : animateTime);

                    }, animateTime + 5);

                } else {
                    Dscroll = 0;

                    dqSlt("html,body").stop();

                    visibleDiv().stop();

                    dqSlt(".JqMA-btn-Ju").each(function() {
                        this.style.setProperty("color", "white", "important");
                    });
                }
                GM_setValue("scrollJu", scrollJu);

            }).slideScreen('.JqMA-btn-Ju', function() {

                scrollJu = -scrollJu;

                dqSlt(".JqMA-btn-Ju").html(scrollJu);

                GM_setValue("scrollJu", scrollJu);
            });

        })(this.jQuery);
    },
    500);