您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add a link that can submit the upload form from anywhere on the page
当前为
// ==UserScript== // @name PTH Fixed submit link // @version 0.1 // @description Add a link that can submit the upload form from anywhere on the page // @author Chameleon // @include http*://passtheheadphones.me/upload.php* // @grant none // @namespace https://greasyfork.org/users/87476 // ==/UserScript== (function() { 'use strict'; var a=document.createElement('a'); document.body.appendChild(a); a.href='javascript:void(0);'; a.setAttribute('style', 'display: block; padding: 10px; border-radius: 10px; background: rgba(0,0,0,0.7); color: white; position: fixed; bottom: 10px; margin: auto; left: 0; right: 0; text-align: center; width: 100px; border: rgba(255,255,255,0.3) solid 2px;'); a.innerHTML = 'Upload torrents'; a.addEventListener('click', uploadTorrents, false); })(); function uploadTorrents() { document.getElementById('post').click(); }