testBycxl

用于在yu3.shop代理打开的Illution 网站下载对应的png资源

目前為 2024-01-02 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         testBycxl
// @namespace    hello,cxl
// @version      0.01
// @description  用于在yu3.shop代理打开的Illution 网站下载对应的png资源
// @author       chenxinliang
// @include      *
// @grant        none
// @license      AGPL-3.0-or-later
// ==/UserScript==
 
(function() {
    'use strict';
    // Your code here...
    console.log("你好呀,欢迎参考我的第一个脚本!!")
//    alert("你好呀,欢迎参考我的第一个脚本!")
   // 获取包含所有元素的父容器
   const container = document.getElementsByTagName("body")

   // 添加点击事件监听器(事件委托)
   container.addEventListener("click", function(event) {
     // 使用事件对象的 target 属性获取点击的元素
     const clickedElement = event.target;

     // 打印点击的元素
     console.log("Clicked Element:", clickedElement);
   });
})();