New3a Userscript

do some work

Stan na 05-03-2022. Zobacz najnowsza wersja.

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

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

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         New3a Userscript
// @namespace    http://tampermonkey.net/
// @license MIT
// @version      0.1
// @description  do some work
// @author       You
// @match        https://huodong.xueanquan.com/2022mmspaq/yitu.html
// @match        https://huodong.xueanquan.com/2022mmspaq/yitu.html?pageNum=2&tabNum=1
// @icon         https://www.google.com/s2/favicons?sz=64&domain=xueanquan.com
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    function demo (timeout,cb){
        setTimeout(function(){
            // console.log(character);
            cb?cb():null;
        },timeout);
    }//supop logint;
    var p;


    demo(1000,function(){

        demo(1000,function(){

            let stupar;
            stupar=document.querySelector("body > div.container-fluid > div:nth-child(1) > div > div:nth-child(3) > div > div > div > ul > li.active > a > p");
            //stupar.click();
            demo(1000,function(){
                let stuparfinish;

                stuparfinish=document.querySelector("body > div.container-fluid > div.small-screen.row > div.span3 > div:nth-child(1) > div > div > a");
               stuparfinish.click();
                demo(1000,function(){
                    var elment1=document.querySelector("body > div.container-fluid > div:nth-child(1)");
                    var para = document.createElement("a");
                    para.href="javascript:window.opener=null;window.open('','_self');window.close();";
                    para.innerText="s关闭s";
                    para.setAttribute("Id","closeself");
                    elment1.parentElement.insertBefore(para,elment1);
                    document.getElementById("closeself").click();
                    demo(1000,null);



                });
            });
        });
    });



//var elment1= document.querySelector("body > div.nav.layui-layout-admin > div > ul.layui-nav.layui-layout-left > li:nth-child(6) > a");
//  var para = document.createElement("a");
//  para.href="javascript:window.opener=null;window.open('','_self');window.close();";
//  para.innerText="关闭";
//  para.setAttribute("Id","closeself");
//  elment1.parentElement.insertBefore(para,elment1);
//  document.getElementById("closeself").click();
//  demo(5000,null);


// Your code here...
})();