您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
press 0 to change him
// ==UserScript== // @name smlwiki.com - change lil logan gif // @namespace http://tampermonkey.net/ // @version 1.1 // @description press 0 to change him // @author smlwiki fan // @match https://smlwiki.com/index // @match https://smlwiki.com/index.html // @match https://smlwiki.com/ // @match https://smlwiki.com // @grant none // ==/UserScript== (function () { 'use strict'; // Add an event listener for keypress document.addEventListener('keydown', function (event) { // Check if the key pressed is "0" if (event.key === '0') { // Create a popup menu const gifLink = prompt('Enter the GIF/PNG link:'); if (gifLink) { // Find the target span and update the image source const targetSpan = document.querySelector('#lillogan a img'); if (targetSpan) { targetSpan.src = gifLink; alert('GIF updated successfully!'); } else { alert('Target image not found.'); } } } }); })();