IA Always focus (music playback in background tabs)

Some pages check the document.hidden property and won't render content unless the page is in focus. This script will trick them to think they are in focus so you can preload them in a tab and visit them when they have finished loading.

目前为 2020-07-26 提交的版本。查看 最新版本

// ==UserScript==
// @name          IA Always focus (music playback in background tabs)
// @version      0.1
// @match        https://internetarchive.org/*
// @include      https://internetarchive.org/*
// @description   Some pages check the document.hidden property and won't render content unless the page is in focus. This script will trick them to think they are in focus so you can preload them in a tab and visit them when they have finished loading.
// @namespace https://gf.qytechs.cn/users/288098
// ==/UserScript==

//https://userscripts-mirror.org/scripts/review/177284

Object.defineProperty(document, "hidden", { value : false});

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址