Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function newest() {
- window.document.querySelectorAll('.dropdown-item')[5].click(); //A. BUTTON NEWEST
- }
- setInterval(newest, 5000);
- var inspect = document.querySelector('.item-inspect').href; //A.SITE ПОЛУЧИТЬ ИНСПЕКТ ЛИНК
- document.querySelector(".inspectLinkInput").value = inspect; //B. ОТПРАВИТЬ ССЫЛКУ
- window.document.querySelector(".requestInspectLinkButton").click();
- var urlimg = document.querySelector('.openImageButton').getAttribute('data-img'); //B. ПОЛУЧИТЬ ЛИНК НА КАРТИНКУ
- if (urlimg.length){ //ВЫВЕСТИ КАРТИНКУ В ОПОВЕЩЕНИИ. НЕ РАБОТАЛ С ЭТОЙ ЧАСТЬЮ ЕЩЁ
- var notification = new Notification('Notification title', {
- icon: urlimg,
- body: 'look!!!'
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement