Revision: 69372
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 8, 2015 04:49 by miha
Initial Code
// dotjs: // https://github.com/defunkt/dotjs // "EXPORT YOUR WALLABAG DATA" JSON here var exported = []; $(function(){ // http://stackoverflow.com/a/4762297 function goTo(url) { var a = document.createElement("a"); if(!a.click) { //for IE window.location = url; return; } a.setAttribute("href", url); a.style.display = "none"; document.body.appendChild(a); a.click(); }; var id = parseInt(localStorage.getItem('id')); if(!id) { id = 0; } function reload_article(id) { if(id < 925) { // last article id (checked manually) if($.grep(exported,function(e){return parseInt(e.id) === parseInt(id);}).length) { localStorage.setItem('id',parseInt(id)+1); setTimeout(function(){ goTo('https://framabag.org/u/username/?action=reload_article&id='+id); },1000); } else { id++; reload_article(id); } } }; reload_article(id); });
Initial URL
Initial Description
Reload contents of all Wallabag 1.9.0 articles imported from Pocket (default importing tool didn't load content)
Initial Title
Reload all Wallabag articles content
Initial Tags
Initial Language
JavaScript