I need your help.
Now I'm making a google extension which prevent user to browsing specific SNS when a switch is turning on.
I already implement an extension without a switch.(so that my access to twitter is always redirected to Pubmed)
I want to implement a switch to enable user to choose on/off of this extension, but have no idea how to implement it.
It seemed that redirecting by background.js
and control it by hrome.browserAction.onClicked.addListener(function(Tab tab) {...});
doesen't work well.