您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
「動画URL」欄に現在のページのURLを自動で入力
// ==UserScript== // @name さくら動画 URL自動挿入 // @namespace https://greasyfork.org/ja/users/1441620-crawler // @version 1.6 // @description 「動画URL」欄に現在のページのURLを自動で入力 // @author crawler // @license MIT // @match https://sakudo.in/* // @grant none // ==/UserScript== (function() { 'use strict'; function tryInsertURL(retry = 10) { const displayBox = document.querySelector('center input[type="text"][value^="https://sakudo.in/?id="]'); const inputBox = document.querySelector('input[type="url"][name="file"]'); if (displayBox && inputBox) { inputBox.value = displayBox.value; } else if (retry > 0) { setTimeout(() => tryInsertURL(retry - 1), 50); } } tryInsertURL(); })();