您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Takes spaces to full screen on the Huggingface site
// ==UserScript== // @name Spaces Full Screener // @namespace http://tampermonkey.net/ // @version 2024-02-26 // @description Takes spaces to full screen on the Huggingface site // @author anonimbiri // @license MIT // @match *://huggingface.co/spaces/* // @icon https://www.google.com/s2/favicons?sz=64&domain=hf.space // @grant none // ==/UserScript== const url = new URL(location); if (url.href.includes('?fullscreen=true') || !url.href.includes('?fullscreen')) { url.searchParams.set("fullscreen", "false"); history.pushState({}, "", url.href); setTimeout(function () { var iframe = document.querySelector('iframe.space-iframe'); window.location.href = iframe.src; }, 100); }