i am creating an chorme extension in which extension will change the color of facebook. i have added a button and i only want it to make facebook black whenever it is clicked. i have already created the button with on click property. how can i disable my app by clicking on it? here is my code
popup.html
</head>
<body>
<button onclick="myFunction()">Click Me</button>
</body>
</html>
code.js
function myFunction() {
//what should i write here?//
}
menifest.json
{
"browser_action": {
"default_icon": "icon.png",
"default_popup": "popup.html",
"default_title": "Black Facebook"
},
"content_scripts": [ {
"css": [ "facebook-bw.css" ],
"matches": [ "https://www.facebook.com/*" ]
} ],
"description": "Black Theme has been activated",
"manifest_version": 2,
"name": "Black Facebook",
"version": "0.1.0"
}