answered
2016-07-21 18:50:34 +0200
So, I now have a Jolla C and can answer some of the points in my earlier answer.
Yes, bookmarklets work in the Jolla Browser. This is what you have to do:
- Create a bookmark - anything. (But choose a page that generates a good icon because I don't think you can change it.)
- Edit it: long press > 'Edit Favourite'
- Set the title to something suitable and short.
- Set the web address to the javascript string - see below
The javascript string should be in the form:
javascript:xxxxxxxxxxxxxxxxxxx;
eg
javascript:alert("This is a bokmarklet");
For anything non-trivial it's good practice to use an anonymous function to avoid polluting the page scope, e.g.
javascript:(function(){xxxxxxxxxxxxxxxxxxx})();
To use it, tap the url of the current page (not the tab icon) at the bottom, then tap the bookmark. That javascript will then run in the current page.
There is however a big limitation. I often use bookmarklets to process text that's selected (highlighted) on the webpage, and AFAICS you can't do that in the Jolla browser.
Edit 1 24-7-16
A couple of useful bookmarklets for the Jolla Browser:
- Scroll to top of page: javascript:window.scrollTo(0,0);
- Scroll to bottom of page: javascript:window.scrollTo(0,1000000);
Isn't it enough to add bookmarks to the app-screen? What benefits do you see with having them in the browser? :)
attah ( 2015-02-15 23:01:57 +0200 )editI'm talking about bookmarklets : https://en.m.wikipedia.org/wiki/Bookmarklet
sandy_locke ( 2015-02-16 01:34:37 +0200 )editI assume it works with the Jolla Browser it shares the same Engine as the FF more about the Browser on github
Nokius ( 2015-02-17 23:50:39 +0200 )edit@Nokius: yes but is there a way to create bookmarklet that you can access from any web page ? It's nice if the engine is already here, but you've got to have a front end to launch bookmarklet from within the browser UI.
sandy_locke ( 2015-02-18 00:09:38 +0200 )edit@sandy_locke may be open a issue on github https://github.com/sailfishos/sailfish-browser
Nokius ( 2015-02-22 21:53:47 +0200 )edit