Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Side by Side Diff: chrome/test/data/extensions/samples/subscribe/feed_finder.js

Issue 99172: Part 1 of sample sprucing. (Closed)
Patch Set: Added buildbot.crx, since that seems like something people might want to install. Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 find();
2 window.addEventListener("focus", find);
3
4 function find() {
5 if (window == top) {
6 // Find all the RSS link elements.
7 var result = document.evaluate(
8 '//link[@rel="alternate"][contains(@type, "rss") or ' +
9 'contains(@type, "atom") or contains(@type, "rdf")]',
10 document, null, 0, null);
11
12 var feeds = [];
13 var item;
14 while (item = result.iterateNext())
15 feeds.push(item.href);
16
17 chromium.extension.connect().postMessage(feeds);
18 }
19 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698