您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
2021/9/5 下午7:37:26
当前为
// ==UserScript== // @name 晋江-自动随机填充新章章名和内容 // @namespace RX // @match https://www.my.jjwxc.net/* // @grant none // @version 1.0 // @author - // @description 2021/9/5 下午7:37:26 // ==/UserScript== (function() { function random_int (min, max) { min = Math.ceil(min); max = Math.floor(max); return Math.floor(Math.random() * (max - min)) + min; } var address = '输入文章的jsid'; //请自行输入文章的jsid(更新旧文的界面) if(window.location.href.includes(address)){ var title1=document.getElementById('input_text'); console.log(title1); var content1=document.getElementById('chapterbody'); var num=random_int (0, 99999999); title1.setAttribute('value',num); content1.innerText=num; console.log('自动填写'); } else{ console.log('非合适网址'); } })();