我有一个呈现rss提要的链接,有没有办法让Firefox显示此链接的来源,而不是弹出“添加实时书签”对话框?
For every URL you can open the view-source
version by prepending two magic words:
view-source:http://lebkowski.name/show/blog.atom
Works with any URL/Content-type. Gecko based only.
You could lie about the Content-Type and claim that it is text/plain.
I might be slightly more inclined to create an HTML version of the source (with syntax highlighting) — but that would depend on the reasons behind you wanting non–standard behaviour.
It might be worth pointing out that Firefox 3 (at least) doesn't display a dialog, it displays an XSLTed–to–HTML version of the feed which includes a number of options (at the top) for subscribing to it. View → Source works as you would expect, so end users can easily access the source if they should so wish.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.