mirror of
https://github.com/wassname/mad.git
synced 2026-06-27 16:10:31 +08:00
16 lines
391 B
JavaScript
16 lines
391 B
JavaScript
|
|
var currTabs = []; //TODO add additional information to these objects, e.g. time
|
|
var prevSite = "";
|
|
|
|
chrome.webRequest.onBeforeRequest.addListener(
|
|
function(details) {
|
|
// console.log("Is this evenf ucking working details.url: " + details.url);
|
|
prevSite = blockChecker.getUrl();
|
|
return blockChecker.redirectOnMatch(details);
|
|
},
|
|
{
|
|
urls: ["<all_urls>"]
|
|
},
|
|
["blocking"]
|
|
);
|