Bookmarklet for mobile browser including login info

你说的曾经没有我的故事 提交于 2019-12-06 15:20:17

问题


Our website FavSync is a bookmarks manager and we're trying to achieve the following:

On the mobile version of our website (there's no mobile app, just a mobile version) we would like to allow users to add bookmarks to their FavSync page on the go (adding the website they currently have open).

On the PC browsers we achieved that by creating extensions/add-ons for each browser. However, not all mobile browsers support extensions and it would be too much work to create one for each mobile browser, therefore we are thinking of a boomkarklet.

Two questions:

  1. We are looking into the direction of a bookmarklet: Every user will have a different URL, including their login info and store it as a bookmark in their mobile browser. Does someone have experience with this in mobile devices? Can this work?

  2. Any other solution/idea you can suggest?


回答1:


The bookmarklet will work, but it will have to be run in a separate window in order to be persistent. Here are some examples:

  • Creating Window remotes using the window.opener property
  • Window Spawning and Remotes
  • Creating a remote control bookmarklet
  • Cross-Document Messaging and RPC


来源:https://stackoverflow.com/questions/15975176/bookmarklet-for-mobile-browser-including-login-info

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!