您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
実験的
// ==UserScript== // @name Amazonの検索ワード自動補正を自動で遠慮 // @description 実験的 // @match https://www.amazon.co.jp/* // @version 0.1 // @run-at document-end // @grant none // @grant GM_setValue // @grant GM_getValue // @noframes // @namespace https://greasyfork.org/users/181558 // ==/UserScript== (function() { fix(); let lasthref = location.href; new MutationObserver(mut => lasthref != location.href ? ((lasthref = location.href), fix()) : 0).observe(document, { childList: true, subtree: true }); function fix() { if (Date.now() - (GM_getValue("latest") || 0) < 10000) { setTimeout(fix, 100); } else { if ((lh(/https:\/\/www\.amazon\.co\.jp\/s\?k\=/) && !lh('\&dc')) && /の結果を表示しています/.test(document?.body?.textContent) && /のすべての結果を表示します/.test(document?.body?.textContent)) { GM_setValue("latest", Date.now()) document.body.insertAdjacentHTML(`afterbegin`, `<div id="antendiv" style='position:fixed;top:0;left:0;width:100%;height:100%;background:#0000;z-index:2147483647;transition:background 1s'></div>`); requestAnimationFrame(() => { document.querySelector('#antendiv').style.background = '#0008' }); location.href = location.href + '&dc'; } } } function lh(re) { let tmp = location.href.match(re); if (!tmp) { return null } else if (tmp.length > 1) { return tmp[1] } else return tmp[0] } // gフラグ不可 })();