您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
このスクリプトは anti-flicker snippet を無効化させ、ページのロード速度を正常なものに直すものです。 (anti-flicker snippet: https://support.google.com/optimize/answer/7100284?hl=ja )
当前为
// ==UserScript==
// @name メルカリのロード直後の真っ白な数秒間をなくします
// @name:en Fuck anti-flicker snippet
// @namespace jasaj.me
// @match *://*.mercari.com/*
// @match *://*.lupicia.com/*
// @match *://*.tonya.co.jp/*
// @match *://*.monotaro.com/*
// @version 0.1.7
// @description このスクリプトは anti-flicker snippet を無効化させ、ページのロード速度を正常なものに直すものです。 (anti-flicker snippet: https://support.google.com/optimize/answer/7100284?hl=ja )
// @description:en This script is used to disable the anti-flicker snippet to bring the page load speed back to normal. (anti-flicker snippet: https://support.google.com/optimize/answer/7100284?hl=en )
// @description:zh 这个脚本用于禁用 anti-flicker snippet 来使页面载入速度恢复正常。 (anti-flicker snippet: https://support.google.com/optimize/answer/7100284?hl=zh-Hans )
// @author Jasaj
// ==/UserScript==
/* jshint esversion: 6 */
const observer_to_anti_anti_flicker = new MutationObserver((mutations) => {
mutations.forEach((mutation) => {
if (mutation.target.classList.contains("async-hide")) {
mutation.target.classList.remove("async-hide");
}
});
});
observer_to_anti_anti_flicker.observe(document.documentElement, {
childList: true,
subtree: true,
attributes: true
});
for (let ele of document.getElementsByClassName("async-hide")){ele.classList.remove("async-hide");}