Skip to content

Instantly share code, notes, and snippets.

@scripting
Created February 22, 2026 20:06
Show Gist options
  • Select an option

  • Save scripting/b785913de3afc9dc45346c0693b3ab87 to your computer and use it in GitHub Desktop.

Select an option

Save scripting/b785913de3afc9dc45346c0693b3ab87 to your computer and use it in GitHub Desktop.
How I publish from Drummer to micro.blog
var urlOutline = opml.getHeaders ().urlPublic;
if (urlOutline === undefined) {
dialog.alert ("Can't publish your outline because it doesn't have an \"urlPublic\" head-level attribute.");
}
else { //ping the server
http.readUrl ("https://micro.blog/ping?url=" + urlOutline); //ping the server
http.readUrl ("http://micro.blog/ping?url=https://dave.micro.blog/feed.xml") //ask it to read the RSS feed
var options = { //try to make the update happen immediately
type: "POST",
url: "http://micro.blog/ping",
data: "url=https://dave.micro.blog/feed.xml"
};
http.client (options, true);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment