您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
2022-12-22, add keybindings a to not push, f to push, e to reload
// ==UserScript== // @name Keybindings for willyoupressthebutton // @namespace Violentmonkey Scripts // @match https://willyoupressthebutton.com/* // @grant none // @version 1.0 // @author Magnus Anderson // @description 2022-12-22, add keybindings a to not push, f to push, e to reload // @license MIT // // @require https://cdn.jsdelivr.net/npm/@violentmonkey/shortcut@1 // ==/UserScript== const newbutton = 'https://willyoupressthebutton.com' const yesaction = () => { let button = document.getElementById('yesbtn') if (button) button = button.href else button = newbutton window.open(button, '_self') } const noaction = () => { let button = document.getElementById('nobtn') if (button) button = button.href else button = newbutton window.open(button, '_self') } const reloadaction = () => { window.open(newbutton, '_self') } VM.shortcut.register('u', yesaction); VM.shortcut.register('f', yesaction); VM.shortcut.register('a', noaction); VM.shortcut.register('e', reloadaction); VM.shortcut.register('d', reloadaction); VM.shortcut.register(' ', reloadaction);