Skip to content

Instantly share code, notes, and snippets.

@goncalor
Last active November 29, 2016 16:11
Show Gist options
  • Save goncalor/28dabc2af01ec4ec5cd9d7907f15ba64 to your computer and use it in GitHub Desktop.
Save goncalor/28dabc2af01ec4ec5cd9d7907f15ba64 to your computer and use it in GitHub Desktop.
Delete all articles from Framabag.org
// execute when logged into your Framabag.org account (using Wallabag 1.9.1)
// https://stackoverflow.com/questions/247483/http-get-request-in-javascript#4033310
function httpGet(theUrl)
{
var xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", theUrl, false ); // false for synchronous request
xmlHttp.send( null );
return xmlHttp.responseText;
}
// change the number of articles and your username
for(id=0; id<10; id++)
httpGet("https://www.framabag.org/u/" + "username" +"/?action=delete&id=" + id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment