您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Replaces the default war declaration reasons in P&W with quotes from The Stormlight Archives
当前为
// ==UserScript== // @name TKR Politics and War Default Declaration Replacer // @namespace http://www.knightsradiant.pw/ // @version 0.21 // @description Replaces the default war declaration reasons in P&W with quotes from The Stormlight Archives // @author Talus // @match https://politicsandwar.com/nation/war/declare/* // @license GPL-3.0-or-later // ==/UserScript== // ******************** // * ADD QUOTES BELOW * // ******************** // RULES: // 1. Keep quotes in alphabetical order to avoid duplicates. // 2. Maximum declaration reason length is 61 characters. ie. don't be longer than the below line // "012345678901234567890123456789012345678901234567890123456789" var QUOTES = [ "Authority comes from the men who give it to you.", "Authority doesn't come from a rank.", "How you live is more important than what you accomplish.", "If I should die, I would do so having lived my life right.", "If we accept who we are when we fall, the journey ends.", "In the end, all men die.", "It is not the destination that matters, but how one arrives.", "Many strive to defend the sanctity of ignorance.", "Somebody has to step forward and do what is right.", "Strength does not make one capable of rule.", "The hallmark of insecurity is bravado.", "This world, it is a tempest sometimes." ]; // ****************************************************************** // * DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING * // ****************************************************************** var REASON_SELECTOR = "#rightcolumn > form > table > tbody > tr:nth-child(16) > td:nth-child(2) > input[type=text]"; (function() { 'use strict'; var randomQuoteIndex = Math.floor(Math.random() * QUOTES.length); var randomQuote = QUOTES[randomQuoteIndex]; document.querySelector(REASON_SELECTOR).value = randomQuote; })();