New2a Userscript

do some work!

Verze ze dne 05. 03. 2022. Zobrazit nejnovější verzi.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         New2a Userscript
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  do some work!
// @license MIT
// @author       You
// @match        https://maoming.xueanquan.com/MainPage.html
// @match       https://maoming.xueanquan.com/MainPage.html#1
// @match       https://maoming.xueanquan.com/MainPage.html#
// @match
// @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(){
        let pont1;
        pont1=document.querySelector("#YSIndex > a:nth-child(1)");
        pont1.click();
        demo(2000,function(){
            let pont1a;
            pont1a=document.querySelector("#YSlide > p:nth-child(3) > a > img");
            pont1a.click();
            demo(5000,function(){
       
         document.querySelector("#div_userInfo > a:nth-child(7)").click();

         

         //   demo(2000,null);
 });
 });

        });

 //document.querySelector("#div_userInfo > a:nth-child(7)")
    // Your code here...

    // 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);










})();