web123lai
千年狐狸
千年狐狸
  • UID8036
  • 注册日期2005-08-17
  • 最后登录2019-05-01
  • 发帖数4225
  • 经验13枚
  • 威望1点
  • 贡献值20点
  • 好评度10点
  • 社区居民
阅读:3007回复:5

[推荐]JSView,可以显示当前页面调用的JS文件的内容(还有CSS文件)

楼主#
更多 发布于:2006-05-21 09:37
  是用Adblock过滤广告的同仁们肯定知道,先在网页上的广告很多是通过JS脚本加到网页上的,过滤很多图片还不如过滤一个脚本有成效。可有些脚本是有用的,用来调整网页的布局,所以我们不能把所有的脚本都过滤掉,这就需要我们通过查看脚本内容的办法来确定哪些脚本是有用的,那些脚本是广告。令人遗憾的是Adblock并没有提供这项功能,只能自己找出链接的js文件来看,所以我一直很羡慕abc为Maxthon写的插件“广告猎手助手”里的检视网页元素功能。今天在Mozilla Addon里偶然发现了这个插件JSView,可以显示当前页面调用的JS文件的内容(还有CSS文件),终于解决了这个问题,推荐给大家,希望有所帮助。
  下面是链接地址:
https://addons.mozilla.org/firefox/2076/
使用介绍:
All browsers include a "View Source" option, but none of them offer the ability to view the source code of external files. Most websites store their javascripts and style sheets in external files and then link to them within a web page's source code. Previously if you wanted to view the source code of an external javascript/css you would have to manually look through the source code to find the url and then type that into your browser.

Well now there's a much easier way. You can use the JSView extension to solve the problem. You can access it from the context menu, from the toolbar, from the view menu, or from the status bar. If the website you are viewing contains any external js/css files, an icon will appear that says "CSS", "JS", or both. Each individual file can then be viewed by clicking on the filename. The file will be opened in a new window. You can also choose to open all external files by clicking on "View All".

With the latest version you can now view the embedded css and js as well. Just open the "Page Info" window from the context menu or tools menu. There will be 3 new tabs in that window. One for scripts, one for stylesheets, and one for frames. You can open them by double clicking or by using the context menu.

The 'view page source' menu item now opens files based on the behavior you choose in the jsview options. This allows you to open the source code of any web page in a new tab or in an external editor.
hnstxx
千年狐狸
千年狐狸
  • UID1952
  • 注册日期2005-01-09
  • 最后登录2013-05-14
  • 发帖数4977
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
1楼#
发布于:2006-05-21 09:37
好啊,好啊!
MM:你是个外表冷酷,内心却很甜蜜的男人。
CrossBud
黄金狐狸
黄金狐狸
  • UID7038
  • 注册日期2005-06-29
  • 最后登录2016-08-31
  • 发帖数5948
  • 经验12枚
  • 威望2点
  • 贡献值40点
  • 好评度20点
  • 社区居民
2楼#
发布于:2006-05-21 09:37
扩展真是安不完~~~~~
CrossBud
黄金狐狸
黄金狐狸
  • UID7038
  • 注册日期2005-06-29
  • 最后登录2016-08-31
  • 发帖数5948
  • 经验12枚
  • 威望2点
  • 贡献值40点
  • 好评度20点
  • 社区居民
3楼#
发布于:2006-05-21 09:37
好久没去Wiki活动身手了
今天把这个加入Wiki好了
hcqenjoy
小狐狸
小狐狸
  • UID9895
  • 注册日期2005-11-17
  • 最后登录2011-05-11
  • 发帖数21
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
4楼#
发布于:2006-05-21 09:37
感觉不如viewpage好用
CrossBud
黄金狐狸
黄金狐狸
  • UID7038
  • 注册日期2005-06-29
  • 最后登录2016-08-31
  • 发帖数5948
  • 经验12枚
  • 威望2点
  • 贡献值40点
  • 好评度20点
  • 社区居民
5楼#
发布于:2006-05-21 09:37
viewpage相当于Firefox的View Page Info功能
只不过稍微丰富些

JSView和这个完全不是一回事儿

Firefox上还很多有意思的页面查看扩展,比如Navibar可以显示网站的所有页面树状表到sidebar,Hypertext DOM Browser可以将所有页面的DOM信息转化为一份超文本文件显示出来。
游客

返回顶部