ブラウザにてx閲覧時に出てくるアプリへの誘導等全てのポップをブロックするスクリプト
// ==UserScript==
// @name Xポップ消し
// @namespace https://viayoo.com/
// @version 0.1
// @description Xのポップアップを削除
// @author You
// @run-at document-end
// @match https://x.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
function removeBanner() {
document.querySelectorAll('[role="dialog"]').forEach(el => el.remove());
document.querySelectorAll('[aria-modal="true"]').forEach(el => el.remove());
document.querySelectorAll('div').forEach(el => {
const s = getComputedStyle(el);
if (
s.position === 'fixed' &&
s.backgroundColor.startsWith('rgba(')
) {
el.remove();
}
});
document.body.style.overflow = 'auto';
document.documentElement.style.overflow = 'auto';
}
setInterval(removeBanner, 500);
})();
【広告除去】AdGuard Part101
■ このスレッドは過去ログ倉庫に格納されています
8名無しさん@お腹いっぱい。
2026/06/18(木) 09:06:16.27ID:ZtwBNJe/■ このスレッドは過去ログ倉庫に格納されています