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

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

// ==UserScript==
// @name         AV助手 - 支持私人功能定制,通用草榴社区 | 91porn | ……
// @namespace    https://www.1024net.tech/
// @namespace    https://www.lovemake.love/
// @version      2024.03.16.080000
// @description  功能介绍:1、草榴社区移除因广告拦截等待10s,无需手动点击<同意加载>提示 2、移除91porn视频前置广告,静音自动循环播放,新标签页打开视频
// @author       Kay
// @match        *://*/*
// @require      https://cdnjs.cloudflare.com/ajax/libs/jquery/4.0.0-beta/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;
    if (url.indexOf("https://t66y.com") > -1) {
        $("a:contains(同意加載)").click();
        let a = setTimeout(() => { }, 0);
        for (let i = 0; i < a; i++) { clearTimeout(i); }
    }
    else if (url.indexOf("https://91porn.com") > -1) {
        $("#player_one").css("display", "none");
        $(".video-container").css("background-color", "black");
        $(".video-container").prevAll("div,br").css("display", "none");
        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");
    }
})();
/*2024.03.16.080000 - Line : 34*/