セパレータは有効にしたいけど、もう少しシンプルにしたかったので。
1 2 3 4 5 6 7 8 |
{ "manifest_version": 3, "name": "BackgroundCSS", "version": "1", "background": {"service_worker": "style.js"}, "permissions": ["tabs","scripting"], "host_permissions": ["<all_urls>"] } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
chrome.tabs.onUpdated.addListener(function(tabId, info, tab) { if (tab.url.startsWith("chrome") || tab.url.startsWith("edge")) return; if (info.status === 'complete') { chrome.scripting.executeScript({ target: {tabId: tab.id}, func: () => { if (document.head) { var e = document.createElement('style'); e.textContent = [ ".autopagerize_page_info_inner{display:none;}", ".autopagerize_page_info{border-color:#ccc !important;}" ].join("\n"); document.head.insertAdjacentElement('afterbegin', e); } } }); } }); |