// ==UserScript== // @name printerest // @version 20250615 // @author You // @description goodlook // @include https://*.pinterest.com/* // @grant GM_setValue // @grant GM_deleteValue // @grant GM_getValue // @grant GM_download // @grant GM_xmlhttpRequest // @require https://ajax.aspnetcdn.com/ajax/jquery/jquery-3.5.1.min.js // @require https://update.greasyfork.org/scripts/522187/1532433/Kquery.js // ==/UserScript== $(function(){ List.Start() }) const List = (function(){ const ll = this; this.downloadBU = null; this.Start = function(){ ll.WaitImgLoaded() .then(()=>{ ll.downloadBU = ll.Add_DownloadBU(); ll.Add_DownloadBU_event(ll.downloadBU); }) }; this.WaitImgLoaded = function(){ const GetImg = ()=>$('img[elementtiming][src]:first') return WaitingElement(GetImg); } this.Add_DownloadBU = function(){ const bu = ` ` $('body').prepend(bu); return $('.myDownloadBu'); }; this.Add_DownloadBU_event = function(bu){ bu.click(function(){ const name = $('[data-test-id="username"]').text() + new Date().getTime() + '.jpg'; const src = $('img[elementtiming][src]:first')[0].src GM_download({url:src,name:name}); }); bu.hide(); $('body').on('touchstart','[data-test-id="save-button-mobile"]',function(event){ event.stopPropagation(); bu.click(); }) } return this; })();