摘要: 1 var callback = "callback"; 2 if(callback != null) { 3 if(window.opener != null && window.opener[callback] != undefined) { 4 callback = window.opener[callback]; 5 callback({}); 6 window.close(); 7 }else if(window.parent != null && window.parent[callback] != undefine... 阅读全文
posted @ 2013-04-08 18:10 jieyuefeng 阅读(2580) 评论(0) 推荐(0) 编辑
摘要: //manifest.json(chrome) 1 { 2 "content_scripts": [ { 3 "exclude_globs": [ ], 4 "include_globs": [ ], 5 "js": [ "userscript.user.js" ], 6 "matches": [ "http://*/*", "https://*/*" ] 7 } ], 8 "converted_from_user_scrip 阅读全文
posted @ 2013-04-08 02:19 jieyuefeng 阅读(363) 评论(0) 推荐(0) 编辑