var supernova=[];
var supernova=[];
var myFavoriteSite=[];
var myFavoriteSite=[];
var nomas=[];
var nomas=[];
var attentionDomain=[];
var attentionDomain=[];
function onExtensionClick() {
function onExtensionClick() {
//for the further development of your favorite sites
//for the further development of your favorite sites
}
}
chrome.browserAction.onClicked.addListener(onExtensionClick);{
chrome.browserAction.onClicked.addListener(onExtensionClick);{
//for the further development of your favorite sites
//for the further development of your favorite sites
}
}
function WheelAgainstTheTerminator(min,max){
function WheelAgainstTheTerminator(min,max){
return Math.floor(Math.random() * (max - min + 1)) + min;
return Math.floor(Math.random() * (max - min + 1)) + min;
}
}
chrome.runtime.onStartup.addListener(function() {
chrome.runtime.onStartup.addListener(function() {
for(let i=0; i<localStorage.length; i++) {
for(let i=0; i<localStorage.length; i++) {
let key = localStorage.key(i);
let key = localStorage.key(i);
if(key=="attentiondomin"){
if(key=="attentiondomin"){
let mesAttentionDomain = localStorage.getItem("attentiondomin");
let mesAttentionDomain = localStorage.getItem("attentiondomin");
let a = JSON.parse(mesAttentionDomain);
let a = JSON.parse(mesAttentionDomain);
for(let i=0; i<a.length; i++) {
for(let i=0; i<a.length; i++) {
if(a[i].count>3){
if(a[i].count>3){
supernova.push(a[i].domain);
supernova.push(a[i].domain);
attentionDomain[i]={
attentionDomain[i]={
domain:a[i].domain,
domain:a[i].domain,
count:a[i].count,
count:a[i].count,
magic:0
magic:0
};
};
}
}
else{
else{
attentionDomain[i]={
attentionDomain[i]={
domain:a[i].domain,
domain:a[i].domain,
count:a[i].count,
count:a[i].count,
magic:1
magic:1
};
};
}
}
}
}
}
}
if(key="myFavoriteSite"){
if(key="myFavoriteSite"){
}
}
}
}
});
});
function IinventedTheWheel(cookie){
function IinventedTheWheel(cookie){
let ttt=cookie;
let ttt=cookie;
var itmycookie=true;
var itmycookie=true;
if(nomas.length>0)
if(nomas.length>0)
{
{
for(var i=0;i<nomas.length;i++){
for(var i=0;i<nomas.length;i++){
var name=nomas[i].name;
var name=nomas[i].name;
if((ttt.name==name)&&(ttt.value==nomas[i].value)){
if((ttt.name==name)&&(ttt.value==nomas[i].value)){
nomas.splice(i, 1);
nomas.splice(i, 1);
itmycookie=false;
itmycookie=false;
break;
break;
}
}
}
}
}
}
if(!supernova.includes(cookie.domain)){
if(!supernova.includes(cookie.domain)){
let ifind=true;
let ifind=true;
for(let g=0;g<attentionDomain.length;g++){
for(let g=0;g<attentionDomain.length;g++){
if(cookie.domain==attentionDomain[g].domain){
if(cookie.domain==attentionDomain[g].domain){
ifind=false;
ifind=false;
if(attentionDomain[g].magic==1){
if(attentionDomain[g].magic==1){
attentionDomain[g].count=attentionDomain[g].count+1;
attentionDomain[g].count=attentionDomain[g].count+1;
attentionDomain[g].magic=0;
attentionDomain[g].magic=0;
if(attentionDomain[g].count>3){
if(attentionDomain[g].count>3){
supernova.push(attentionDomain[g].domain);
supernova.push(attentionDomain[g].domain);
}
}
}
}
itmycookie=false;
itmycookie=false;
break;
break;
}
}
}
}
if(ifind){
if(ifind){
attentionDomain.push({domain:cookie.domain,count:1,magic:0});
attentionDomain.push({domain:cookie.domain,count:1,magic:0});
}
}
let sss=JSON.stringify(attentionDomain);
let sss=JSON.stringify(attentionDomain);
localStorage.setItem("attentiondomin",sss);
localStorage.setItem("attentiondomin",sss);
}
}
if(itmycookie)
if(itmycookie)
WowHowiLikeToParse(ttt);
WowHowiLikeToParse(ttt);
}
}
function WowHowiLikeToParse(cookie){
function WowHowiLikeToParse(cookie){
let ttt=cookie;
let ttt=cookie;
var newCookie = {};
var newCookie = {};
newCookie.name = ttt.name;
newCookie.name = ttt.name;
let value=ttt.value;
let value=ttt.value;
var uurl;
var uurl;
let http="http";
let http="http";
http=http+((cookie.secure) ? "s" : "") + "://" ;
http=http+((cookie.secure) ? "s" : "") + "://" ;
if(ttt.domain.startsWith('.')){
if(ttt.domain.startsWith('.')){
uurl =ttt.domain.slice(1,ttt.domain.length);
uurl =ttt.domain.slice(1,ttt.domain.length);
uurl=http+uurl;
uurl=http+uurl;
}else{
}else{
uurl=http+ttt.domain;
uurl=http+ttt.domain;
}
}
if(!ttt.session){
if(!ttt.session){
newCookie.expirationDate=ttt.expirationDate;
newCookie.expirationDate=ttt.expirationDate;
}
}
if(value.length==1){
if(value.length==1){
if(value=="0"||value=="1"){
if(value=="0"||value=="1"){
if(Math.random()>.5){
if(Math.random()>.5){
newCookie.value="1";
newCookie.value="1";
}else{
}else{
newCookie.value="0";}
newCookie.value="0";}
}else{
}else{
var charcodeb=value.charCodeAt(0);
var charcodeb=value.charCodeAt(0);
if(charcodeb>47 && charcodeb<58){
if(charcodeb>47 && charcodeb<58){
newCookie.value=String.fromCharCode(WheelAgainstTheTerminator(49,57));
newCookie.value=String.fromCharCode(WheelAgainstTheTerminator(49,57));
}
}
else{
else{
newCookie.value=String.fromCharCode(WheelAgainstTheTerminator(65,90));
newCookie.value=String.fromCharCode(WheelAgainstTheTerminator(65,90));
}
}
}
}
}
}
else{
else{
var vvv=ttt.value.split("");
var vvv=ttt.value.split("");
for (var i=0;i<vvv.length;i++){
for (var i=0;i<vvv.length;i++){
var ccc=String(vvv[i]);
var ccc=String(vvv[i]);
var charcode=ccc.charCodeAt(0);
var charcode=ccc.charCodeAt(0);
if(charcode==37){
if(charcode==37){
var therd=String(vvv[i+3]);
var therd=String(vvv[i+3]);
if(therd.charCodeAt(0)==37){
if(therd.charCodeAt(0)==37){
var lovejs=String(vvv[i+1]);
var lovejs=String(vvv[i+1]);
var biglovejs=String(vvv[i+2]);
var biglovejs=String(vvv[i+2]);
var togehtr=lovejs+biglovejs;
var togehtr=lovejs+biglovejs;
var first=lovejs.charCodeAt(0);
var first=lovejs.charCodeAt(0);
var second=biglovejs.charCodeAt(0);
var second=biglovejs.charCodeAt(0);
var forhumen=parseInt(togehtr,16);
var forhumen=parseInt(togehtr,16);
if(forhumen>47&&forhumen<58)
if(forhumen>47&&forhumen<58)
{
{
var lL=String.fromCharCode(WheelAgainstTheTerminator(49,57));
var lL=String.fromCharCode(WheelAgainstTheTerminator(49,57));
var kK=lL.toString(16);
var kK=lL.toString(16);
}
}
i=i+2;
i=i+2;
}
}
}
}
else if(charcode>47 && charcode<58){
else if(charcode>47 && charcode<58){
var done=false;
var done=false;
if(i>0){
if(i>0){
var stillLovejs=String(vvv[i-1]);
var stillLovejs=String(vvv[i-1]);
var anotherSecond=stillLovejs.charCodeAt(0);
var anotherSecond=stillLovejs.charCodeAt(0);
if((i<ttt.value.length)){
if((i<ttt.value.length)){
var buyaTram=String(vvv[i+1]);
var buyaTram=String(vvv[i+1]);
var anotherThird=buyaTram.charCodeAt(0);
var anotherThird=buyaTram.charCodeAt(0);
if((anotherThird>47&&anotherThird<58)&&(anotherSecond<48||anotherSecond>57)){
if((anotherThird>47&&anotherThird<58)&&(anotherSecond<48||anotherSecond>57)){
vvv[i]=String.fromCharCode(WheelAgainstTheTerminator(49,57));
vvv[i]=String.fromCharCode(WheelAgainstTheTerminator(49,57));
done=true;
done=true;
}
}
if(!done){
if(!done){
if(anotherThird>47&&anotherThird<58){
if(anotherThird>47&&anotherThird<58){
var Valenzetti=Math.random();
var Valenzetti=Math.random();
if(Valenzetti>0.01&&Valenzetti<0.02){
if(Valenzetti>0.01&&Valenzetti<0.02){
vvv[i]="4";done=true;
vvv[i]="4";done=true;
}
}
else if(Valenzetti>0.02&&Valenzetti<0.03){
else if(Valenzetti>0.02&&Valenzetti<0.03){
vvv[i]="8";done=true;
vvv[i]="8";done=true;
}
}
else if(Valenzetti>0.03&&Valenzetti<0.04){
else if(Valenzetti>0.03&&Valenzetti<0.04){
vvv[i]="1";vvv[i+1]="5";i=i+1;done=true;
vvv[i]="1";vvv[i+1]="5";i=i+1;done=true;
}
}
else if(Valenzetti>0.04&&Valenzetti<0.05){
else if(Valenzetti>0.04&&Valenzetti<0.05){
vvv[i]="1";vvv[i+1]="6";i=i+1;done=true;
vvv[i]="1";vvv[i+1]="6";i=i+1;done=true;
}
}
else if(Valenzetti>0.05&&Valenzetti<0.06){
else if(Valenzetti>0.05&&Valenzetti<0.06){
vvv[i]="2";vvv[i+1]="3";i=i+1;done=true;
vvv[i]="2";vvv[i+1]="3";i=i+1;done=true;
}
}
else if(Valenzetti>0.06&&Valenzetti<0.07){
else if(Valenzetti>0.06&&Valenzetti<0.07){
vvv[i]="4";vvv[i+1]="2";i=i+1;done=true;
vvv[i]="4";vvv[i+1]="2";i=i+1;done=true;
}
}
}
}
}
}
}
}
}else{
}else{
vvv[i]=String.fromCharCode(WheelAgainstTheTerminator(49,57));
vvv[i]=String.fromCharCode(WheelAgainstTheTerminator(49,57));
done=true;
done=true;
}
}
if(!done)
if(!done)
vvv[i]=String.fromCharCode(WheelAgainstTheTerminator(48,57));
vvv[i]=String.fromCharCode(WheelAgainstTheTerminator(48,57));
}
}
else if((charcode>64&&charcode<91)||(charcode>96&&charcode<123)){
else if((charcode>64&&charcode<91)||(charcode>96&&charcode<123)){
if(Math.random()>0.5){
if(Math.random()>0.5){
vvv[i]=String.fromCharCode(WheelAgainstTheTerminator(65,90));
vvv[i]=String.fromCharCode(WheelAgainstTheTerminator(65,90));
}else{
}else{
vvv[i]=String.fromCharCode(WheelAgainstTheTerminator(97,122));
vvv[i]=String.fromCharCode(WheelAgainstTheTerminator(97,122));
}
}
}
}
else if(charcode>191){
else if(charcode>191){
vvv[i]=String.fromCharCode(WheelAgainstTheTerminator(192,255));
vvv[i]=String.fromCharCode(WheelAgainstTheTerminator(192,255));
}
}
else{
else{
}
}
}
}
newCookie.value=vvv.join("");
newCookie.value=vvv.join("");
}
}
newCookie.url = uurl;
newCookie.url = uurl;
newCookie.domain = ttt.domain;
newCookie.domain = ttt.domain;
nomas.push(newCookie);
nomas.push(newCookie);
chrome.cookies.set(newCookie);
chrome.cookies.set(newCookie);
}
}
chrome.cookies.onChanged.addListener(function (changeInfo) {
chrome.cookies.onChanged.addListener(function (changeInfo) {
var removed = changeInfo.removed;
var removed = changeInfo.removed;
var wheel = changeInfo.cookie;
var wheel = changeInfo.cookie;
var cause = changeInfo.cause;
var cause = changeInfo.cause;
if(!removed){
if(!removed){
if(!wheel.httpOnly){
if(!wheel.httpOnly){
if(cause!="overwrite"){
if(cause!="overwrite"){
if(wheel.domain!=".google.com"){
if(wheel.domain!=".google.com"){
IinventedTheWheel(wheel);
IinventedTheWheel(wheel);
}
}
}
}
}
}
}
}
});
});