YouTubeでdiv IDを非表示にする簡単なGoogle Chromeアドオンを作成しようとしています。しかし、何も起こっておらず、エラーもありません。また、アドオンを検査することもできないようです。
助言がありますか?これは私が今持っているものです。
{
"manifest_version": 2,
"name": "One-click AntiDistraction Button",
"description": "This extension removes youtube sidebar.",
"version": "1.0",
"content_scripts": [
{
"matches": ["http://www.google.com/*"],
"js": ["remove.js"]
}
],
"browser_action": {
"default_icon": "icon.png"
}
}
remove.js ファイル
window.onload = function(){
document.getElementById("watch7-sidebar").style.display="none";
};