cuamckuu / daily-better

Smart bookmarks manager with content recomendation
1 stars 0 forks source link

Создать bookmarklet #7

Open cuamckuu opened 2 years ago

cuamckuu commented 2 years ago

Проблема

Нужно как-то сохранять сайт в закладки из любого браузера на ПК

Решение

Создать букмарклет - закладку для быстрой панели с кодом на JS

Простой пример:

image

В реальном букмарклете логика должна быть сложнее:

  1. Получить данные о странице
  2. Открыть новое небольшое окно браузера
  3. Перейти в окне на страницу интерфейса сохранения (надо передать параметры из шага 1 через запрос или query params)
cuamckuu commented 2 years ago

Часть фич для шага один: const title = document.title и const url = windowl.location.href

cuamckuu commented 2 years ago

Для открытия окна можно посмотреть что-то такое

stepfe commented 2 years ago

Создание окна с адресом страницы внутри

javascript:(    function(){        
                    var func1 = function(){
                        var newWin = window.open("about:blank", "hello", "width=600, height=900");
                        newWin.document.write(window.location.href);
                    };
                    func1();
                })();
ghost commented 6 months ago

Hello,

We have an exciting opportunity for you! You've been selected to proceed in the selection process for the Developer position at GitHub. Congratulations on your achievement!

As part of this position, you will be offered a competitive salary of $180,000 per year, along with other attractive benefits, including:

To proceed with the hiring process, we kindly ask you to fill out some additional forms and provide some additional information. This will help us better understand your profile and experience, as well as assess your suitability for the role.

Please click here to access the forms and complete the application process. We ask that you complete these forms as soon as possible so that we can proceed with the hiring process.

Important: You have 24 hours to complete the application process.

If you have any questions or need further information, please don't hesitate to contact us.

Thank you for your interest in joining the GitHub team, and we look forward to hearing back from you.

Best regards,
GitHub Recruitment Team 0xM3R, @silvercondor, @0xYYY, @Channaholic, @vorarajesh5, @drok74, @huddy987, @cy6erninja, @hua899k, @zerocoolys, @tucq88, @ki39, @Mithrilwoodrat, @foursking1, @bitqiu, @GoSoul22, @stephenbyrne99, @0xbitboy, @0xhanh, @Nightlights524