您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Supports multiple accounts!
// ==UserScript== // @name Neopets - Auto PIN filler // @namespace np // @version 0.1 // @description Supports multiple accounts! // @author none // @match http://www.neopets.com/* // @grant none // ==/UserScript== var accounts = [ //------------------------------------------- // Fill in your username and PIN number here! // USERNAME PIN ["username1", "1111"], ["username2", "2222"], ["username3", "3333"], ["username4", "4444"], ["username5", "5555"] ]; //-------------------------------------------- var d = document; if (d.getElementById("pin_field")) { var username = d.getElementById("header").querySelector("a[href*='/userlookup']").innerHTML; for (var i = 0; i < accounts.length; i++) { if (accounts[i][0] === username) { d.getElementById("pin_field").value = accounts[i][1]; break; } } }