Glance-Bookmarklet icon indicating copy to clipboard operation
Glance-Bookmarklet copied to clipboard

After closing once it won't re-open bookmarklet

Open jv2222 opened this issue 10 years ago • 3 comments

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.

jv2222 avatar Mar 06 '14 07:03 jv2222

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);})();

0xE282B0 avatar Mar 06 '14 11:03 0xE282B0

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.

enmaku avatar Mar 30 '14 22:03 enmaku

Yes, it was a workaround using jQuery. It's not working since jQuery was removed from the project.

0xE282B0 avatar Mar 31 '14 06:03 0xE282B0