您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Просто отмечаю на лекции. Разве это не законно?
// ==UserScript== // @name Webinar I am here! // @namespace http://tampermonkey.net/ // @version 1 // @description Просто отмечаю на лекции. Разве это не законно? // @match https://events.webinar.ru/* // @icon https://img2.freepng.ru/20180404/vfw/kisspng-computer-icons-check-mark-symbol-checkbox-best-5ac56af594c163.5973256715228874136093.jpg // @grant none // ==/UserScript== (function () { 'use strict'; function getElementByXpath(path) { return document.evaluate(path, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; } function press() { let btn = getElementByXpath("/html/body/div[2]/div/div/div[3]/button/span/span"); let btnClose = getElementByXpath("/html/body/div[2]/div/div/div[2]/button/span"); if (btn != null) { btn.click(); console.log("I am here!-> 😎 I am pressed on button!"); if (btnClose != null) { setTimeout(() => { btnClose.click(); console.log("I am here!-> 😎 I am pressed to close button!"); }, 1000); } } setTimeout(() => { press(); }, 2000); } press() })();