ad研究所

aido优化+破解

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         ad研究所
// @namespace    http://tampermonkey.net/
// @version      10.4
// @description  aido优化+破解
// @author       kk1223
// @match        https://*.aidou.pro/*
// @match        https://*.aidou.art/*
// @match        https://*.aido2.cc/*
// @match        https://*.aidoo.info/*
// @icon         https://www6.aidou.pro/static/img/logo.png
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
'use strict';

//点击优化,每次点击在新的窗口打开
setTimeout(function(){
    const herfs = document.querySelectorAll(".videoListStyle"); console.log("herfs",herfs)
    const herfArr = Array.from(herfs);console.log("herfArr",herfArr)
    herfArr && herfArr.some(h=>{
        h.target = '_blank';
    })
},500)

//操作优化 箭头左右翻页
setTimeout(function(){
    document.addEventListener('keydown', function(event) {
        if (event.keyCode === 37) {
            console.log('左箭头键被按下');
            const paging = document.getElementById("paging");
            const last = paging.querySelector('a');
            console.log("last",last);
            last.click();
        }

        if(event.keyCode == 39){
            console.log('右箭头键被按下');
            const paging = document.getElementById("paging");
            const next = paging.querySelectorAll('a')[paging.querySelectorAll('a').length - 1];
            console.log("next",next);
            next.click();
        }
    });
},0)


setTimeout(function(){
    var url = location.href
    var id = url.split('/').pop().split('.')[0];
    var giturl = "https://knciik123.gitlab.io/-/test_aido/-/jobs/7443374469/artifacts/public/index.html?id="+id
    //window.open(giturl, '_blank')

    const div =document.getElementById("formatVideo");
    if(div){
        div.innerHTML = "<iframe src='"+giturl+"' style='width:100%;height:100%' />"
    }
},1000)

})();