Last active
November 29, 2016 16:11
-
-
Save goncalor/28dabc2af01ec4ec5cd9d7907f15ba64 to your computer and use it in GitHub Desktop.
Delete all articles from Framabag.org
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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