您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Flip the entire page visually by wrapping content, with a toggle button fixed center-left
// ==UserScript== // @name Internet Roadtrip - April Fools! // @namespace http://tampermonkey.net/ // @version 5.0 // @description Flip the entire page visually by wrapping content, with a toggle button fixed center-left // @match https://neal.fun/internet-roadtrip/* // @grant none // @license MIT // ==/UserScript== (function () { 'use strict'; document.title = 'Internet Roadtrip - April Fools!'; // Create a wrapper div and move all body children inside it const wrapper = document.createElement('div'); wrapper.id = 'flip-wrapper'; // Make wrapper fill viewport and use GPU compositing wrapper.style.width = '100vw'; wrapper.style.height = '100vh'; wrapper.style.willChange = 'transform'; wrapper.style.transition = 'transform 0.3s ease'; while (document.body.firstChild) { wrapper.appendChild(document.body.firstChild); } document.body.appendChild(wrapper); // Create the flip toggle button const btn = document.createElement('button'); btn.id = 'flip-button'; btn.textContent = '🔄 Flip Page'; Object.assign(btn.style, { position: 'fixed', top: '50%', left: '10px', transform: 'translateY(-50%)', zIndex: 10000, padding: '10px 14px', fontSize: '14px', backgroundColor: '#fff', border: '1px solid #000', borderRadius: '8px', cursor: 'pointer', boxShadow: '2px 2px 6px rgba(0,0,0,0.3)', userSelect: 'none', }); document.body.appendChild(btn); let flipped = false; btn.addEventListener('click', () => { flipped = !flipped; wrapper.style.transform = flipped ? 'scaleY(-1)' : 'none'; }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址