forked from Tanish1508/RR-Adblocker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenable.js
More file actions
17 lines (17 loc) · 724 Bytes
/
Copy pathenable.js
File metadata and controls
17 lines (17 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
window.addEventListener("load",function() {
chrome.tabs.query({ active: true, currentWindow: true }, function (tabs) {
var table = document.getElementById("blockedDomains");
currtab = tabs[0];
currtabID = tabs[0].id;
chrome.storage.local.get(['tabIDStr'], function (result) {
var impUrlArray = result.tabIDStr;
if(impUrlArray!=undefined){
for (let i = 0; i < impUrlArray.length; i++) {
var row = table.insertRow(table.rows.length);
var cellData = row.insertCell(0);
cellData.innerText = impUrlArray[i];
}
}
});
});
});