jav视频预览

在网页嵌入一个预览视频页面,无需翻墙

Versión del día 05/03/2023. Echa un vistazo a la versión más reciente.

// ==UserScript==
// @name         jav视频预览
// @description  在网页嵌入一个预览视频页面,无需翻墙
// @namespace    http://tampermonkey.net/
// @version      2.0
// @author       You
// @include      /^https?:\/\/(?:[A-Za-z0-9]+\.)*(?:javbus|busjav|busfan|fanbus|buscdn|cdnbus|dmmsee|seedmm|busdmm|dmmbus|javsee|seejav){1}/
// @match        https://www.javbus.com/*
// @match        https://avmoo.click/*
// @match        https://avsox.click/*
// @match        https://*/thread-*
// @match        https://*/forum.php?mod=viewthread&tid=*
// @grant        GM_addStyle
// @icon         data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABFElEQVQ4ja2TMU4CQRSGvzfuKkQ2bqORRpKNV6CjIaGgovQK1LRs7R24AoECbrAHWE7glhQkJO4SEgt1GQsCBhmG1fjKee//8v/zZiSGJ+AZeOR3lQChxPDyB/EeIjFo28SuKSf6jk0sjoPXaHDh+6yjiDzLjmaUDaDKZe77fR4GAy5rNaNVK2DnQlwXEXOIs4Bz9f8AU85TG4CfW1AKv93mul7ndTjkfT4HETSgN5sCAK256XS47XZRlQrrKOIqCMjTlDxNjU7UoV6TTSZ8Lpfc9XoEoxFutUo6HvOxWBgdHL1EcRy8ZhOv1UKVSrzNZmTTKflqVQwA2wOBbX6trZeo2P6qQ+p3JqsYSBQQmiAFKgHCL3I+UIXeDJynAAAAAElFTkSuQmCC
// @grant        none
// ==/UserScript==
(function () {
    'use strict';
    var host = 'https://www.javspyl.tk/'
    //98堂
    if (document.title.indexOf('高清中文字幕') != -1) {
        if (document.querySelector("#switchwidth").innerHTML == '切换到宽版') {
            widthauto(this);
        }
        let id = document.title.split(' ')[0];
        if (escape(id).indexOf("%u3010") > 0) {
            id = document.title.split('【')[0];
        }
        if (!/[^a-zA-Z0-9-_]/.test(id)) {
            document.querySelector("#postlist > table:nth-child(1) > tbody > tr > td.plc.ptm.pbn.vwthd > span ").innerHTML = '<br><iframe src = ' + host + '/' + id.replace('-4K', "") + ' style="width:1140px;height:642px;border:none;" allowfullscreen></iframe>'
        }
    }
    //javbus
    if (document.querySelector("body > nav > div > div.navbar-header.mh50 > a > img.hidden-xs")) {
        GM_addStyle(`
        #waterfall > div > a > div.photo-frame{
            position: relative;
            cursor: default;
        }
        #yulan{
            width: 34%;
            height: 34%;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            margin: auto;
            background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAeFJREFUaEPt2b9Lw0AUB/D34uBf4eDqfyD+KW1H67+hYw4c1KIm6SDcXRAqCA4WF0Gw6uAiCA6CiAqCUERw6WCexDZtB2tSm+TyoJkP7vvJj8vdewjML2SeH6YA008w9gmUSisLiIELgEsA1EKEmpTevung0fyxgEqlekEEi8OBEcEnQqGUc2MaEgsol6s0IuQnAIh2e1Y0m1sdU5BJAFHmayK0tXYOTCDSAPzkJgJpWZaQcvc2T0hqgB7iAxFEp/NuNxqNrzwgqQIGgfGKKBBae4dZIzICdGMT0Z5lkZCyfpcVJFNANzS2EUOEK7JA5ACIYlMrXHaV8o7ShOQI6MeuBwEK33fu04CYAIS534hAaO2uT4owBYhynyGikNI5/i/ENCDK7QTBjPD9nYdxIUUBhLlfAdBWytkYB1EkQC83niIGQkrvJAmkgID+sruNiLaU7tNfkAIDABDhOVytlHJroxCFBgyFXlXKXfsNwQXwopQ7xxZABI9au/NsAQDA8xVi/hET12WU74+M9VaC7WaO7Xaa9YGG65GS7aGecVmFcWGLaWmRCPgWdzmX19k2OLi0mJbPux3KwcWqyRe2WS2L6mGnEhEuAWiTVZs1SXHJ5JjYqoTJcEnmngKS3KUsx3wDbBY6QCIM+XwAAAAASUVORK5CYII=') no-repeat center;
            display: none;
            cursor: pointer;
        }
        #javspyl_iframe{
            position: fixed;
            width: 100%;
            height: 100%;
            background-color: #000000ab;
            top: 0;
            z-index: 900;
            display: none;
        }
        #javspyl_iframe iframe{
            width: 70%;
            aspect-ratio: 16 / 9;
            position: fixed;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            margin: auto;
            border:none;
            box-shadow: 0px 0px 7px 13px rgb(0 0 0 / 47%);
        }
        `);
        function fpb() {
            document.querySelector("#navbar > ul:nth-child(2)").innerHTML = document.querySelector("#navbar > ul:nth-child(2)").innerHTML + '<li class="hidden-sm"><a href=' + host + ' target="_blank"><font style="vertical-align: inherit;">防屏蔽地址</font></a></li>'
        }
        let id = window.location.href.split('/').pop()
        let hreflength = window.location.href.split('/').length
        if(hreflength===4 && id && id!='uncensored'){
            fpb()
            $('.screencap').append('<div id="yulan" style="display: block;background-color: #0000008c;width: 50px;height: 50px;"></div>');
            $('body').append('<div id="javspyl_iframe"><iframe allowfullscreen></iframe></div>');

            $("#yulan").click(function (e) {
                $('#javspyl_iframe').fadeIn(200)
                $('#javspyl_iframe iframe').attr('src',host+'/'+id)
            });
            $("#javspyl_iframe").click(function (e) {
                $('#javspyl_iframe iframe').attr('src','about:blank')
                $('#javspyl_iframe').fadeOut(200)
            });
        }else{
            fpb()
            $('.photo-frame').append('<div class="Out" id="yulan"></div>');//yulan poto
            $('body').append('<div id="javspyl_iframe"><iframe allowfullscreen></iframe></div>');//yulan iframe
            $('#waterfall > div > a > div.photo-frame').mouseenter(function (e) {
                e.currentTarget.lastElementChild.className = 'in'
                $('.in').fadeIn(200)
            })
            $('#waterfall > div > a > div.photo-frame').mouseleave(function (e) {
                e.currentTarget.lastElementChild.className = 'Out'
                $('.Out').fadeOut(200)
                // console.log(e)
            })

            $(".Out").click(function (e) {
                e.preventDefault();
                $('#javspyl_iframe').fadeIn(200)
                id=e.currentTarget.parentElement.parentElement.href.split('/').pop()
                $('#javspyl_iframe iframe').attr('src',host+'/'+id)
            });
            $("#javspyl_iframe").click(function (e) {
                $('#javspyl_iframe iframe').attr('src','about:blank')
                $('#javspyl_iframe').fadeOut(200)
            });
        }
    }
})();