There is a task, you need to change the background of the element if the user has added a page to the bookmarks. The question is how to find out from JS that the page is bookmarked, well, or maybe there is some kind of pseudo-class in CSS?

  • It seems in any way. With bookmarks, everything is tight .. Maximum you can give the user a window, like using Ctrl+D and after clicking this combination, add to localStorage that "bookmarked site", but this method is nonsense. - CbIPoK2513 5:38 pm

0