Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Since javascript in bookmarklets of firefox 13 is no longer working, is there another method to implement a button that calls org-protocol and gives over the url and the title of the actual webpage.

share|improve this question
    
Huh? Bookmarklets still work in Firefox 13 if they are stored as bookmarks. Only running them from the address bar has been disabled some time ago to make it harder for worms spreading through social engineering. –  Gurken Papst Jul 13 '12 at 16:40
    
So can you tell me where and how do I have to store the "javascript:location.href='org-protocol..."-command exactly. –  testphys Jul 13 '12 at 16:56
    
Show all Bookmarks (Ctrl+Shift+B), select folder (e.g. Bookmarks Toolbar), click Organize->New bookmark... and enter your javascript URI in the address field. You can also test your code in the web/error console. –  Gurken Papst Jul 13 '12 at 21:07
    
javascript:location.href='org-protocol://store-link://'+encodeURIComponent(loca‌​tion.href) is working here as expected (exception is NS_ERROR_UNKNOWN_PROTOCOL) from console and bookmarks toolbar. See if it still happens for you if you create a new Firefox profile or run it in safe mode. –  Gurken Papst Jul 13 '12 at 22:18
    
Thank you very much for the help. I was totally wrong about javascript no longer working in FF13. So I tried a little bit for my self and now I think the problem is encodeURIComponent(location.href). javascript:location.href='org-protocol://capture://p/'+encodeURIComponent(locat‌​ion.href)+'/'+encodeURIComponent(document.title)+'/'+encodeURIComponent(window.ge‌​tSelection()) is running for example if I replace encodeURIComponent(location.href). –  testphys Jul 13 '12 at 23:47
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.