📜 ⬆️ ⬇️

Habr in Speed ​​/ Fast Dial

Inspired by the topic, isoft upgraded its Speed ​​Dial.
Opera Speed ​​Dial

And all Opera / Firefox users can , but for now only for Habr . On operasd.ru you can get a link for your user habr.
In addition to the essentially useless information about karma, the plans also show the number of new topics, but it is not quite clear how to implement this technically without entering a password.

Experimentally, I managed to find out that the virtual tab into which Opera loads the site to create a preview of exactly 1024 pixels wide, while at such a monitor resolution the size will be slightly smaller (1024 - border by the window). Based on this feature, I redirect the user to the desired site or issue a page to create a preview.
Now that you know the secret, you can do the same on your websites. Eh ... if the opera would add a header to the http request stating that the request is for speed dial ...

If someone finds and prompts a more correct way to determine that the page is loaded for Speed ​​Dial - I will be very happy.
')
Tested at 9.62 and 10.00 Internal
UPD: as it turned out in Fast Dial for Firefox also works!
UPD2: It is recommended to configure auto-update for 3-5 minutes:
reload

UPD3: Added support for bash.org.ru and ibash.org.ru

Source: https://habr.com/ru/post/57009/


All Articles