利用插件对某些网页执行javascript代码

说明

  javascript在浏览器地址栏中可以运行,也可以按F12在控制台中运行,还可以写一个插件让javascript针对某些网页执行,可以使用chrome浏览器的Content scripts,Content scripts是在Web页面内运行的javascript脚本。

  参考地址:http://open.chrome.360.cn/extension_dev/content_scripts.html

       http://jingyan.baidu.com/season/39867

       http://open.chrome.360.cn/extension_dev/packaging.html(打包代码用,屏蔽源码)

实例

  核心代码:document.body.contentEditable='true'; document.designMode='on'; void 0(修改网页)

  插件代码链接:http://pan.baidu.com/share/home?uk=369664793&view=share#category/type=0

posted on 2014-12-19 15:28  tractorman  阅读(255)  评论(0编辑  收藏  举报

导航