2010年5月24日 星期一

Proxomitron:嵌入自定义的js或css

一、自己定义好的js或css文件放在Proxomitron的html目录下
二、然后以http://local.ptron/your.(js|css)的方式替换原有网页中的js或css,或者以方式插入网页代码底端。
例:需要将aaa.js插入网页,先放在Proxomitron的html目录下,然后制订规则。

Match = "<end>"
Replace = "<script type="text/javascript" src="http://local.ptron/aaa.js"></script>"

2010年5月7日 星期五

Prox默认规则bug:OnUnload unloader

此规则与live邮箱有冲突,无法点击打开邮件。
Name = "OnUnload unloader"
Active = TRUE
Limit = 20
Match = "onunload="
Replace = "UnLoadOff="

2010年5月1日 星期六

Universal Extractor 1.6 Final 绿色版

解包工具UniExtract v1.6绿色版
下载:点击下载

2010年4月17日 星期六

Opera右键定制:复制域名、复制标题和地址

[Document Popup Menu]
Item, "复制域名" = Go to page, "javascript:prompt('', location.hostname);void(0)",,,"no" & Delay, 80 & Cut & Cancel
Item, "复制标题和地址" = Go to page, "javascript:prompt('', document.title+'\r\n%u');void(0)" ,,,"no" & Delay, 80 & Cut & Cancel

2010年4月11日 星期日

Proxomitron规则:过滤弹窗广告JS

直接过滤一些第三方广告或者弹窗广告脚本:
[Patterns]
Name = "kill 3rd or pop JavaScript"
Active = TRUE
URL = "$TYPE(htm)"
Bounds = "<script\s*</script>"
Limit = 256
Match = "<script\s([^>]+&&*(src=$AV( http://((^\h|local.ptron)*&&([^/]+\w[./](asp(x|)|js(p|)|service|php|[a-z]++ad)\?[a-z_\-]++id\=*|\w/?.js))|\w[/?._\-](([0-9]+|)pop(?|up|)|[td]an(list|[0-9]+)|piao(fu|[0-9]+)).js))\0*)>*"
Replace = "<!----- adjs \0 ----->"

阻止一些第三方广告脚本的引用:
[Patterns]
Name = "kill adcontent_js"
Active = TRUE
URL = "$TYPE(js)"
Limit = 350
Match = "document.write(ln|) (\([^\)]++(src|href)\=$AV(*http:[\\]+{0,2}/[\\]+{0,2}/((^\h|local.ptron)*&&([a-z]+{1}.*|[^/]+\w[./](asp(x|)|js(p|)|service|php|[a-z]++ad)\?[a-z_\-]++id\=*|\w/?.js[^0-9a-z._-\=?]+)))[^\)]++\))\1"
Replace = "// \1"

Opera右键定制:论坛灌水

适用一些回帖不需验证码的论坛。
[Hotclick Popup Menu]
Item, "快速引用"="Go to page, "javascript:{ta = window.document.getElementsByTagName('textarea'); ta[ta.length-1].value += '[quote]'+document.getSelection()+'[/quote]\n'; ta[ta.length-1].focus();}", 1, "快速引用", "no""
--------------------1
Item, 引用>回帖 = Go to Page, "javascript:{ta=document.getElementsByTagName('textarea');ta[ta.length-1].value+=document.getSelection();ta[ta.length-1].focus();}",,,"no" & Delay, 100 & focus next widget & click button
Item, 引用>回帖后关闭页面 = Go to Page, "javascript:{ta=document.getElementsByTagName('textarea');ta[ta.length-1].value+=document.getSelection();ta[ta.length-1].focus();}",,,"no" & Delay, 100 & focus next widget & click button & Delay, 500 & Close Page
Item, 引用>回帖后到论坛首页 = Go to Page, "javascript:{ta=document.getElementsByTagName('textarea');ta[ta.length-1].value+=document.getSelection();ta[ta.length-1].focus();}",,,"no" & Delay, 100 & focus next widget & click button & Delay, 500 & Go to parent directory

[Edit Widget Popup Menu]
Item, 粘贴>回帖 = Paste & Delay, 100 & focus next widget & click button
Item, 粘贴>回帖后关闭 = Paste & Delay, 100 & focus next widget & click button & Delay, 500 & Close Page
Item, 粘贴>回帖后到论坛首页 = Paste & Delay, 100 & focus next widget & click button & Delay, 500 & Go to parent directory