您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Redirects the ChromeOS calculator app to Never Gonna Give You Up when pressing Alt+R.
当前为
- // ==UserScript==
- // @name (ChromeOS) Calculator Rickroll (Alt+R)
- // @namespace https://greasyfork.org/users/1201646
- // @version 1.0
- // @description Redirects the ChromeOS calculator app to Never Gonna Give You Up when pressing Alt+R.
- // @author lemocha
- // @match https://calculator.apps.chrome/
- // @icon https://lh3.googleusercontent.com/WxY4nHcChLXwanpdhY5AE2SE9fK7qp0kfJBNql2Pt0WyuJ24zFCQYUMV5_bGOGMpcm6Qs360yCEuvV9EZ1Jcz0_j=s60
- // @grant none
- // @run-at document-idle
- // @license MIT
- // ==/UserScript==
- (() => {
- "use strict";
- document.addEventListener("keyup", event =>
- {
- // if Alt+R key combo pressed
- if (event.altKey && event.key === "r")
- {
- // redirect to Never Gonna Give You Up
- window.location.replace("https://www.youtube.com/watch?v=dQw4w9WgXcQ");
- }
- });
- })();