I have a link that renders an rss feed, is there a way to have firefox display the source of this link as opposed to popping up the Add Live Bookmark dialog?
我有一个链接,呈现rss提要,有没有办法让firefox显示此链接的来源,而不是弹出添加实时书签对话框?
2 个解决方案
#1
For every URL you can open the view-source
version by prepending two magic words:
对于每个URL,您可以通过添加两个魔术字来打开视图源版本:
view-source:http://lebkowski.name/show/blog.atom
Works with any URL/Content-type. Gecko based only.
适用于任何URL /内容类型。 Gecko仅基于。
#2
You could lie about the Content-Type and claim that it is text/plain.
你可能会对Content-Type撒谎并声称它是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.
我可能稍微倾向于创建源代码的HTML版本(使用语法突出显示) - 但这取决于您想要非标准行为背后的原因。
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.
值得指出的是Firefox 3(至少)没有显示对话框,它显示了一个XSLTed-to-HTML版本的feed,其中包含许多用于订阅它的选项(在顶部)。 View→Source按预期工作,因此最终用户可以根据需要轻松访问源。
#1
For every URL you can open the view-source
version by prepending two magic words:
对于每个URL,您可以通过添加两个魔术字来打开视图源版本:
view-source:http://lebkowski.name/show/blog.atom
Works with any URL/Content-type. Gecko based only.
适用于任何URL /内容类型。 Gecko仅基于。
#2
You could lie about the Content-Type and claim that it is text/plain.
你可能会对Content-Type撒谎并声称它是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.
我可能稍微倾向于创建源代码的HTML版本(使用语法突出显示) - 但这取决于您想要非标准行为背后的原因。
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.
值得指出的是Firefox 3(至少)没有显示对话框,它显示了一个XSLTed-to-HTML版本的feed,其中包含许多用于订阅它的选项(在顶部)。 View→Source按预期工作,因此最终用户可以根据需要轻松访问源。