您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
A mod menu to use at school ! Shortcuts / Apps / chatgpt include !
当前为
- // ==UserScript==
- // @name SchoolModMenu
- // @namespace http://tampermonkey.net/
- // @version 3.0
- // @description A mod menu to use at school ! Shortcuts / Apps / chatgpt include !
- // @author dltrost
- // @include *
- // @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
- // @grant none
- // ==/UserScript==
- const box = document.createElement('div')
- box.innerHTML = `
- <div id="box">
- <img class="fond" src="https://images.unsplash.com/photo-1448375240586-882707db888b?q=80&w=1000&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxleHBsb3JlLWZlZWR8MXx8fGVufDB8fHx8fA%3D%3D">
- <div class="background"></div>
- <button id="home" onclick="home()" class="start">Home</button>
- <img src="https://cdn-icons-png.flaticon.com/512/45/45180.png" id="maison">
- <button id="apps" onclick="apps()" >Apps</button>
- <img src="https://www.svgrepo.com/show/334647/extension.svg" id="extention">
- <button id="keyboard" onclick="keys()" >Keys</button>
- <img src="https://cdn-icons-png.flaticon.com/512/68/68760.png" id="clavier">
- <button id="settings" onclick="settings()" >Settings</button>
- <img src="https://cdn-icons-png.flaticon.com/512/15/15185.png" id="option">
- <a href="https://update.greasyfork.org/scripts/487298/SchoolModMenu.user.js">
- <div id="v">v2.7</div>
- </a>
- <div>
- <div id="titlehome">What to do ?</div>
- <div id="texthome"> This mode allows you to <a class="color">navigate</a> and use <a class="color">applications with complete discretion</a> ! You can change <a class="color">application themes</a>, create <a class="color">keyboard shortcuts</a> in case of panic if a teacher arrives ! I let you discover ;)</div>
- </div>
- </div>
- <style>
- #box {
- position: fixed;
- top: 20px;
- left: 50%;
- width: 80px;
- height: 12px;
- background: linear-gradient(139deg, rgb(255, 255, 255), rgb(255, 255, 255));
- border-radius: 5px;
- outline-color: rgb(255, 255, 255);
- filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.308));
- transform: translateX(-50%);
- transition: height 0.4s, width 0.8s, opacity 0.6s, border-radius 0.9s, background-image 0.9s, filter 0.9s;
- overflow: hidden;
- opacity: 0.7;
- }
- #box:hover {
- width: 600px;
- height: 200px;
- opacity: 1;
- border-radius: 8px;
- }
- #home {
- position: absolute;
- top: 40px;
- left: 20px;
- width: 130px;
- height: 30px;
- outline: none;
- border: none;
- background-color: rgba(255, 255, 255, 0.658);
- font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
- font-size: 15px;
- font-weight: 800;
- color: rgb(46, 46, 46);
- transition-duration: 0.3s;
- border-top-left-radius: 3px;
- border-top-right-radius: 3px;
- }
- #home:hover, #apps:hover, #keyboard:hover, #settings:hover {
- background-color: rgba(255, 255, 255, 0.568);
- }
- #maison, #option, #extention, #clavier {
- pointer-events: none;
- }
- #maison {
- position: absolute;
- width: 15px;
- height: auto;
- left: 32px;
- top: 48px;
- }
- #apps {
- position: absolute;
- top: 70px;
- left: 20px;
- width: 130px;
- height: 30px;
- outline: none;
- border: none;
- background-color: rgba(255, 255, 255, 0.658);
- font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
- font-size: 15px;
- font-weight: 800;
- color: rgb(46, 46, 46);
- transition-duration: 0.3s;
- }
- #extention {
- position: absolute;
- width: 15px;
- height: auto;
- left: 32px;
- top: 78px;
- }
- #keyboard {
- position: absolute;
- top: 100px;
- left: 20px;
- width: 130px;
- height: 30px;
- outline: none;
- border: none;
- background-color: rgba(255, 255, 255, 0.658);
- font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
- font-size: 15px;
- font-weight: 800;
- color: rgb(46, 46, 46);
- transition-duration: 0.3s;
- }
- #clavier {
- position: absolute;
- width: 15px;
- height: auto;
- left: 32px;
- top: 108px;
- }
- #settings {
- position: absolute;
- top: 130px;
- left: 20px;
- width: 130px;
- height: 30px;
- border: none;
- background-color: rgba(255, 255, 255, 0.658);
- font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
- font-size: 12px;
- font-weight: 800;
- color: rgb(46, 46, 46);
- transition-duration: 0.3s;
- border-bottom-right-radius: 3px;
- border-bottom-left-radius: 3px;
- }
- #option {
- position: absolute;
- width: 15px;
- height: auto;
- left: 32px;
- top: 138px;
- transition-duration: 0.3s;
- }
- #box button.active {
- background-color: rgba(255, 255, 255, 0.459);
- }
- #v {
- position: absolute;
- left: 565px;
- top: 10px;
- font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
- font-weight: 800;
- font-size: 11px;
- text-decoration: none;
- color: rgb(70, 203, 255);
- }
- #titlehome, #texthome {
- font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
- font-weight: 800;
- color: rgb(216, 216, 216);
- }
- #titlehome {
- position: absolute;
- left: 330px;
- top: 48px;
- color: rgb(255, 255, 255) !important;
- }
- #texthome {
- position: absolute;
- left: 170px;
- top: 75px;
- text-align: justify;
- font-size: 10px;
- max-width: 400px;
- }
- .color {
- color: rgb(150, 168, 255) !important;
- }
- .fond {
- position: absolute;
- width: 100%;
- height: auto;
- pointer-events: none;
- filter: blur(2px);
- }
- .background {
- position: absolute;
- top: 40px;
- left: 160px;
- width: 424px;
- height: 119px;
- background-color: rgba(0, 0, 0, 0.253);
- border-radius: 3px;
- }
- </style>
- `
- document.body.appendChild(box);
- const homepage = document.getElementById('home')
- const appspage = document.getElementById('apps')
- const keyboardpage = document.getElementById('keyboard')
- const settingspage = document.getElementById('settings')
- homepage.classList.add('active')
- const buttons = document.querySelectorAll('#box button');
- buttons.forEach(button => {
- button.addEventListener('click', function() {
- buttons.forEach(btn => btn.classList.remove('active'));
- buttons.forEach(btn => btn.classList.remove('start'));
- this.classList.add('active');
- });
- });
- function test() {
- }
- const version = GM_info.script.version;
- var vUpdate = document.getElementById('v');
- vUpdate.textContent = 'v' + version;