您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Extract and open PanoramaIframe src in a new tab when pressing Control + X + S together
当前为
// ==UserScript== // @name OpenGuessr Hack Location Finder // @namespace https://openguessr.com/ // @version 1.2 // @description Extract and open PanoramaIframe src in a new tab when pressing Control + X + S together // @author YourName // @license MIT // @match https://openguessr.com/* // @grant none // ==/UserScript== (function() { 'use strict'; // Track pressed keys const keysPressed = new Set(); // Event listener for keydown document.addEventListener('keydown', (event) => { // Add the pressed key to the set keysPressed.add(event.key.toLowerCase()); // Check if Control, X, and S keys are pressed if (keysPressed.has('control') && keysPressed.has('x') && keysPressed.has('s')) { // Find the iframe element by ID const iframe = document.querySelector('#PanoramaIframe'); if (iframe) { const src = iframe.getAttribute('src'); if (src) { // Open the extracted URL in a new tab window.open(src, '_blank'); } else { console.error('Iframe src attribute not found'); } } else { console.error('Iframe with ID "PanoramaIframe" not found'); } // Prevent default behavior (optional, depending on browser behavior) event.preventDefault(); } }); // Event listener for keyup to clear the pressed key document.addEventListener('keyup', (event) => { keysPressed.delete(event.key.toLowerCase()); }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址