您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Print the code of this user script
当前为
// ==UserScript== // @name Print Own Code // @namespace your-namespace // @version 1.0 // @description Print the code of this user script // @match *://*/* // @grant none // ==/UserScript== (function() { 'use strict'; // Function to print the script code function printScriptCode() { const scriptElements = document.querySelectorAll('script'); for (const script of scriptElements) { if (script.src === '' && script.textContent.includes('// ==UserScript==')) { console.log(script.textContent); } } } // Call the function to print the script code printScriptCode(); })();