您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds a hidden audio file from 13MB that plays silence to the pages you visit. This will not work on mobile
// ==UserScript== // @name No more inactive tabs // @namespace http://tampermonkey.net/ // @version 0.1 // @description Adds a hidden audio file from 13MB that plays silence to the pages you visit. This will not work on mobile // @author Don // @match *://*/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // Create the audio element var audioElement = document.createElement('audio'); audioElement.src = 'https://raw.githubusercontent.com/KoboldAI/KoboldAI-Client/main/colab/silence.m4a'; audioElement.controls = false; audioElement.autoplay = true; // Autoplay the audio // Listen for the "canplay" event before playing audioElement.addEventListener('canplay', function() { audioElement.play(); // Attempt to play the audio }); // Append the audio element to the body of the page document.body.appendChild(audioElement); })();