We need your help!
Operating the Pale Moon servers, sites, domains, and getting certificates, code signing and more isn't free (or cheap).
Unfortunately there has been a pretty sharp downward trend in what DuckDuckGo's search partnership provides to the project, so now more than ever, we rely heavily on your generous contributions and donations.

If you find Pale Moon in any way useful, please consider one or more of the following options to help out:
  1. Donating to the project directly through PayPal or Ko-fi.
  2. Purchasing challenge coins.
  3. Setting your search engine to the included DuckDuckGo and disabling your ad blocker on the DuckDuckGo domain (so they can show sponsored results).

Doing so will go a long way to make sure we can stay afloat and independent! In addition, Moonchild would still like to pay rent and eat ;)

Значок - есть ли страница в закладках

Обсуждения на русском языке
Alek_Juzhnyj
Moonbather
Moonbather
Posts: 54
Joined: 2018-03-24, 16:10

Значок - есть ли страница в закладках

Unread post by Alek_Juzhnyj » 2023-11-11, 15:34

Впрос такой.
Вот есть в адресной строке такой Значок - есть ли страница в закладках.
Но это когда свои локальные закладки, родные.
А если это некие онлайн закладки?
Можно ли сделать похожий значок?
Причем необязательно всем доступные закладки, можно и свои, селфхостед и т.д.
Но значок нужен.

User avatar
Nuck-TH
Project Contributor
Project Contributor
Posts: 182
Joined: 2020-03-02, 16:04

Re: Значок - есть ли страница в закладках

Unread post by Nuck-TH » 2023-11-11, 15:50

Можно сделать расширение, которое будет запрашивать у "некого" сервиса есть ли страница в закладках и показывать это новым(или тем же) значком.
Но это делать нужно, ибо универсальных решений я не разу не видел - только(давно уже мёртвые) расширения от конкретных сервисов.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 34903
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Значок - есть ли страница в закладках

Unread post by Moonchild » 2023-11-11, 16:20

Проверка не будет быстрой и надежной. При каждом посещении страницы необходимо будет сделать онлайн-запрос в службу, чтобы узнать, добавлена ли она в закладки.
Единственный способ сделать это надежно (и достаточно быстро для значка) — это использовать локальную базу данных.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Alek_Juzhnyj
Moonbather
Moonbather
Posts: 54
Joined: 2018-03-24, 16:10

Re: Значок - есть ли страница в закладках

Unread post by Alek_Juzhnyj » 2023-11-11, 17:39

Ну, учитывая количество моих закладок...
У меня и так все немного не быстро

> Statistics
Database size is 337920 KiB
user_version is 35
page_size is 32768
cache_size is -2048
journal_mode is wal
synchronous is 1
History can store a maximum of 115410 unique pages
Table moz_places has 534100 records
Table moz_historyvisits has 0 records
Table moz_inputhistory has 3 records
Table moz_hosts has 16045 records
Table moz_bookmarks has 696429 records
Table moz_keywords has 2 records
Table sqlite_sequence has 1 records
Table moz_favicons has 5508 records
Table moz_anno_attributes has 9 records
Table moz_annos has 393458 records
Table moz_items_annos has 259593 records
...

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 34903
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Значок - есть ли страница в закладках

Unread post by Moonchild » 2023-11-11, 19:16

ух ты, почти 700 000 закладок? Самый большой, который я точно видел. :)
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
jars_
Lunatic
Lunatic
Posts: 397
Joined: 2016-12-27, 00:12

Re: Значок - есть ли страница в закладках

Unread post by jars_ » 2023-11-11, 21:14

Согласен с вышевысказавшимися ↑ - то что ты хочешь, должно делаться через расширение с локальной базой закладок. Примерно так сделал JustOff в своём уникальном расширении Classic Add-ons Archive, за которое мы ему благодарны безмерно :thumbup:
Установив расширение, ты скачиваешь "базу" с которой работает расширение, где живут все данные о... один только текст с иконками, но сами расширения живут в облаке, откуда и качаются\устанавливаются. (в твоём случае, эта будет база твоих закладок, что будут в фоновом режиме сравниваться и изменяться, сохраняясь сначала в базу и затем отсылая на сервер. или наоборот.. неважно).

По сути, ты хочешь синхронизацию: соответствие того что у тебя на устройстве, с тем что у тебя в облаке(ну или наоборот, это одно-и-тоже), - а это не оч. простая задача, скриптом на десяток строк такое не сделать.

И уж совершенно точно, это не есть задача для разрабов бравзера.

Post Reply