AV助手 - 支持私人功能定制,通用草榴社区 | 91porn | ……

功能介绍:1、草榴社区移除因广告拦截等待10s,无需手动点击<同意加载>提示 2、移除91porn广告,静音自动循环播放,新标签页打开视频

// ==UserScript==
// @name         AV助手 - 支持私人功能定制,通用草榴社区 | 91porn | ……
// @namespace    https://www.1024net.tech/
// @namespace    https://www.lovemake.love/
// @version      2024.08.08.080000
// @description  功能介绍:1、草榴社区移除因广告拦截等待10s,无需手动点击<同意加载>提示 2、移除91porn广告,静音自动循环播放,新标签页打开视频
// @author       Kay
// @match        *://*/*
// @require      https://mirrors.sustech.edu.cn/cdnjs/ajax/libs/jquery/4.0.0-beta.2/jquery.min.js
// @grant        none
// @icon         https://aimg8.dlssyht.cn/u/1533835/ueditor/image/767/1533835/1633159205592221.png
// ==/UserScript==

(function () {
    'use strict';

    // Your code here...
    const url = location.href;
    let style = `<style id="stylex"></style>`;
    $("body").append(style);
    if (url.indexOf("https://t66y.com") > -1) {
        if (url == "https://t66y.com/") {
            location.href = "https://t66y.com/index.php";
        }
        let a = setTimeout(() => { }, 0);
        for (let i = 0; i < a; i++) { clearTimeout(i); }
        $("a:contains(同意加載)").click();
        let b = `
        .tips {
            display: none !important;
        }
        `;
        $("#stylex").html(b);
    }
    else if (url.indexOf("https://91porn.com") > -1) {
        if (url == "https://91porn.com/") {
            location.href = "https://91porn.com/index.php";
        }
        $("#wrapper").prev("div").remove();
        $("#row iframe").remove();
        let a = $("#player_one source").attr("src");
        $(".video-container").prepend("<video style='width:100%; max-height:calc(100vh - 300px);' controls autoplay loop muted><source src=" + a + "></video>");
        $("#player_one").remove();
        $(".video-title").parent().attr("target", "_blank");
        let b = `
        body,
        .video-container {
            background-color: black !important;
        }

        div:has(+ #wrapper):not(.navbar),
        *:has(~ .video-container):not(h4),
        #row iframe,
        .ad_img,
        #player_one {
            display: none !important;
        }
        `;
        if (url != "https://91porn.com/") {
            $("#stylex").html(b);
        }
    }
})();
/*2024.08.08.080000 - Line : 64*/