Glance-Bookmarklet
Glance-Bookmarklet copied to clipboard
After closing once it won't re-open bookmarklet
Using the widget in gmail. After reading one message I click x to close the bookmarklet, then open a new gmail message, then try to open the bookmarklet again... doesn't work. Needs a page refresh.
Hi jv, That's true the script needs a page reload. A workaround is to modify your bookmarklet like this:
javascript:(function(){ if(typeof cb == 'undefined') { cb = function(){ create_spritz(); }; }else{$('#spritz_spacer').slideDown();$('#spritz_container').slideDown();$('#spritz_holder').slideDown();$('#spritz_selector').val(-1);return true;} var script=document.createElement('SCRIPT');script.src='https://miserlou.github.io/OpenSpritz/spritz.js?callback=cb';script.onload=cb; document.body.appendChild(script);})();
This fix did not work for me at all, clicking the bookmarklet, even with this modification, will never open the speed reading pane again without a refresh.
Yes, it was a workaround using jQuery. It's not working since jQuery was removed from the project.