Skip to content

Instantly share code, notes, and snippets.

View dotcomboom's full-sized avatar

dcb dotcomboom

View GitHub Profile
@dotcomboom
dotcomboom / tumblr2opml.js
Last active July 31, 2023 04:08 — forked from andrew8088/tumblr2opml.js
You can run this script on tumblr.com/following and you'll get an OPML file for tumblogs on that page print out to the console, ready for you to copy+paste into a file and import into Google Reader. -- Edited, revised to work on current tumblr. tested with quiterss
clear();
var feeds = Array.prototype.slice.call(document.querySelectorAll("div.yElCb a")),
i = 0, p, f, doc = "";
while (feeds[i]) {
f = feeds[i];
feeds[i++] = {
htmlUrl : f.href,
xmlUrl : f.href + 'rss',
title : f.innerText.replace('\n', ' ').split(' ')[0],