您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
switches into Gravity mode on Quizlet
// ==UserScript== // @name ActivateGravity // @namespace http://tampermonkey.net/ // @version 0.1 // @description switches into Gravity mode on Quizlet // @author You // @match https://quizlet.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=quizlet.com // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; function onAltX() { const match = window.location.href.match(/(https:\/\/quizlet\.com)[\D]+(\d+)\/.+/); if (!!match) { const [, siteUrl, cardId] = match; const gravityUrl = `${siteUrl}/${cardId}/gravity`; window.location.href = gravityUrl; } } function onKeydown(evt) { // Use https://keycode.info/ to get keys if (evt.altKey && evt.keyCode === 88) { onAltX(); } } window.addEventListener('keydown', onKeydown, true); })();