Code: Select all
[Patterns]
Name = "Kill pop-up windows"
Active = FALSE
URL = "$TYPE(htm)"
Limit = 4096
Match = " (<!DOCTYPE*> |)\1"
Replace = "$STOP()\1\r\n"
"<!--//--><script src="http://local.ptron/WindowOpen.js"></script>\r\n"
Moderator: cre
Code: Select all
[Patterns]
Name = "Kill pop-up windows"
Active = FALSE
URL = "$TYPE(htm)"
Limit = 4096
Match = " (<!DOCTYPE*> |)\1"
Replace = "$STOP()\1\r\n"
"<!--//--><script src="http://local.ptron/WindowOpen.js"></script>\r\n"
Code: Select all
javascript:(function(){var%20i,D=document,W=window,F=frames,q=''+(W.getSelection?W.getSelection():D.getSelection?D.getSelection():D.selection.createRange().text);if(!q)for(i=0;i<F.length;i++){q=(W.getSelection?F[i].window.getSelection():D.getSelection?F[i].document.getSelection():F[i].document.selection.createRange().text);if(q!='')break;}if(q==''||q==null)void(q=prompt('Google%20Search',''));if(q)void(open('http://www.google.com/search?hl=en&q='+encodeURIComponent(q)));})();