From c529672e2e8441644376595d33c410b13e215ee3 Mon Sep 17 00:00:00 2001 From: SportConnects Date: Fri, 12 Aug 2022 13:34:02 +0200 Subject: [PATCH] v12.0.0 :fire: Rebirth of Instantgram [instangram] Rewrite of instantgram to support last backend of insta. Profile page bulk downloader dropped because insta deleted all api around them. Maybe there is a possibility in the future but unfortunately not now. --- dist/main.js | 2 +- index.html | 2 +- lang/de-de/index.html | 2 +- lang/en-us/index.html | 2 +- lang/es-ar/index.html | 2 +- lang/pt-br/index.html | 2 +- src/_langs/partials/button.html | 2 +- src/index.ts | 4 +++- 8 files changed, 10 insertions(+), 8 deletions(-) diff --git a/dist/main.js b/dist/main.js index dde1f12..a881392 100644 --- a/dist/main.js +++ b/dist/main.js @@ -1 +1 @@ -(()=>{"use strict";var e;function t(e){let t;t=null!==window&&void 0!==window?{top:window.pageYOffset,bottom:window.pageYOffset+window.innerHeight}:document.documentElement;const a=e.getBoundingClientRect(),o=a.y+window.pageYOffset,n=a.y+a.height+window.pageYOffset;if(t.top>n||t.bottomn)return 100;if(ot.bottom)return 100;const i=a.height;let l=i;ot.bottom&&(l-=n-t.bottom);const r=l/window.innerHeight*100;return Math.round(r)}!function(e){e.Image="IMAGE",e.Video="VIDEO",e.UNDEFINED="UNDEFINED"}(e||(e={}));class a{getName(){return"FeedScanner"}async execute(a,o){try{let n,i,l,r,d=null,s=e.UNDEFINED,c=!1,m=document.querySelector("main"),g="._aagv",p="._aahh",u="._aahi";if(null==d){m=document.querySelector("main section > div:first-child > div:last-child > div:first-child > div:first-child"),r=document.getElementsByTagName("article");let e=[];for(let a=0;a :nth-child(2) > :first-child ul > li:nth-child(2) img[crossorigin='anonymous']")||r[a].querySelector(":first-child > :nth-child(2) > :first-child ul > li:nth-child(2) video[crossorigin='anonymous']"):r[a].querySelector(":first-child > :nth-child(2) > [role=button] img[crossorigin='anonymous']")||r[a].querySelector(":first-child > :nth-child(2) video[crossorigin='anonymous']"),null!=o&&null!=typeof o.getBoundingClientRect()){let i=t(o);e.push({i1:a,mediaEl:o,elemVisiblePercentage:i,isCarousel:n})}else e.push({i1:a,mediaEl:o,elemVisiblePercentage:0,isCarousel:n})}let a=e.reduce(((e,t)=>e.elemVisiblePercentage>t.elemVisiblePercentage?e:t));l=r[a.i1],n=e[a.i1]}if(n.isCarousel){let t=Array.from(l.querySelectorAll("div > :first-child > :first-child > :first-child > ul li")).filter((e=>null!=e.firstChild&&e.classList.length>0));if(null!=t&&t.length>0){let a=l.querySelectorAll(":first-child > div:nth-child(2) > div > div:nth-child(2) > div");for(let e=0;e=2&&(i=e),i==a.length-1){c=!0;break}i++;let o=t,n=i;for(let t=0;t img[src]`)||null!==l.querySelector(`${g} > img[srcset]`);t?(s=e.Video,d=l.querySelector("video")):a&&(s=e.Image,d=null!==l.querySelector(`${g} > img[srcset]`)?l.querySelector(`${g} > img[srcset]`):l.querySelector(`${g} > img[src]`))}o(false,d,s,a)}catch(e){console.error(this.getName()+"()",`[instantgram] ${a.VERSION}`,e),o(!1,null,a)}}}class o{getName(){return"PostScanner"}async execute(t,a,o){try{let n,i,l=a,r=!1,d=null,s=e.UNDEFINED,c=null,m=!1,g=document.querySelector("main"),p="._aagv",u="._aahh",h="._aahi";if(l?(i=document.querySelectorAll('[role="dialog"]')[1],r=0!==i.querySelectorAll(u).length||0!==i.querySelectorAll(h).length):(g=document.querySelector("section main > div > :first-child"),i=g.querySelector("article"),r=0!==i.querySelectorAll(u).length||0!==i.querySelectorAll(h).length),console.log(["$article",i]),r){let t=Array.from(i.querySelectorAll("div > :first-child > :first-child > :first-child > ul li")).filter((e=>null!=e.firstChild&&e.classList.length>0));if(null!=t&&t.length>0){d=null,c=null;let a=i.querySelectorAll("article > :first-child > :first-child > :first-child > div:nth-child(2) > div");for(let e=0;e=2&&(n=e),n==a.length-1){m=!0;break}n++;for(let o=0;o img[src]`)||null!==i.querySelector(`${p} > img[srcset]`);t?(s=e.Video,d=i.querySelector("video")):a&&(s=e.Image,d=null!==i.querySelector(`${p} > img[srcset]`)?i.querySelector(`${p} > img[srcset]`):i.querySelector(`${p} > img[src]`))}o(false,d,s,t)}catch(e){console.error(this.getName()+"()",`[instantgram] ${t.VERSION}`,e),o(!1,null,t)}}}class n{getName(){return"StoryScanner"}async execute(t,a){try{let o=null,n=e.UNDEFINED,i=document.querySelector("main");i=document.querySelector("body > div");let l=i.querySelectorAll("section > div > div > div");for(let t=0;t=1&&l[t].classList.length>1){let a=null!==l[t].querySelector("video"),i=null!==l[t].querySelector("div > div img[src]")||null!==l[t].querySelector("div > div img[srcset]");0,a&&i?(n=e.Video,o=l[t].querySelector("video")):i&&(n=e.Image,null!==l[t].querySelectorAll("img")[0]&&(o=l[t].querySelectorAll("img")[0]));break}}a(false,o,n,t)}catch(e){console.error(this.getName()+"()",`[instantgram] ${t.VERSION}`,e),a(!1,null,t)}}}class i{constructor(e){if(this.modal=null,this.imageURL=e?.imageURL||"",this.heading=e?.heading||[""],this.headingStyle=e?.headingStyle||"",this.content=e?.content||[""],this.contentStyle=e?.contentStyle||"",this.buttonList=e?.buttonList||[],null==document.getElementById("instantgram-modal")){var t=document.createElement("style");t.id="instantgram-modal",t.innerHTML='.instantgram-modal-overlay{display:none!important;opacity:0!important;transition:all ease .1s!important;position:fixed!important;top:0!important;left:0!important;right:0!important;bottom:0!important;z-index:1000!important;background:rgba(0,0,0,.65)!important;justify-content:center!important;align-items:center!important}.instantgram-modal{transition:width ease-in-out .1s!important;display:inline-block!important;width:400px!important;padding:1.6px!important;z-index:1001!important}.instantgram-modal select{margin-left:.8px!important;border:solid 1px #dbdbdb!important;border-radius:3px!important;color:#262626!important;outline:0!important;padding:3px!important;text-align:center!important}@media (min-width:736px){.instantgram-modal{width:500px!important}}.instantgram-modal-content{position:relative;display:flex;flex-direction:column;width:100%!important;pointer-events:auto!important;background-clip:padding-box!important;outline:0!important}.instantgram-modal-header{color:#fff!important;background-color:#fd1d1d!important;background-image:linear-gradient(45deg,#405de6,#5851db,#833ab4,#c13584,#e1306c,#fd1d1d)!important;border-top-left-radius:12px!important;border-top-right-radius:12px!important;padding:0 16px 0 16px!important}.instantgram-modal-header h5{color:#fff!important;font-family:"Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif!important;font-size:16px!important;margin:revert!important}.instantgram-modal-header h5:nth-child(2){margin-top:-15px!important;margin-bottom:20px!important}.instantgram-modal-body{background:#fff!important;position:relative!important;-webkit-box-flex:1!important;-ms-flex:1 1 auto!important;flex:1 1 auto!important;padding:16px!important}.instantgram-modal-body p{display:block!important;margin:revert!important;margin-block-start:1em!important;font-family:"Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif!important;font-size:16px!important}.instantgram-modal-footer{background-color:#fff!important;border-top:1px solid #dbdbdb!important;border-left:0!important;border-right:0!important;border-bottom-left-radius:12px!important;border-bottom-right-radius:12px!important;line-height:1.5!important;min-height:48px!important;padding:4px 8px!important;user-select:none!important;display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-align:center!important;-ms-flex-align:center!important;align-items:center!important;-webkit-box-pack:end!important;-ms-flex-pack:end!important;justify-content:center!important}.instantgram-modal-footer button{width:100%!important;min-height:39px!important;background-color:transparent!important;border:0!important;outline:0!important;cursor:pointer!important;font-family:"Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif!important;font-size:16px!important}.instantgram-modal-footer button.active{color:#0095e2!important}.instantgram-modal-show{opacity:1!important}.instantgram-modal-visible{display:flex!important}#instantgram-bulk-download-indicator{text-align:center!important}',document.head.appendChild(t)}}get element(){return this.modal}createModal(){const e=document.createElement("div");e.classList.add("instantgram-modal-overlay");const t=document.createElement("div");t.classList.add("instantgram-modal"),e.appendChild(t);const a=document.createElement("div");a.classList.add("instantgram-modal-content"),t.appendChild(a);const o=document.createElement("div");o.classList.add("instantgram-modal-header"),this.headingStyle.length>0&&o.setAttribute("style",this.headingStyle),a.appendChild(o),this.heading.forEach((e=>{if("string"!=typeof e||/<\/?[a-z][\s\S]*>/i.test(e))if(/<\/?[a-z][\s\S]*>/i.test(e)){let t,a=document.createElement("div"),n=document.createDocumentFragment();for(a.innerHTML=e;t=a.firstChild;)n.appendChild(t);o.appendChild(n)}else o.appendChild(e);else{const t=document.createElement("h5");t.innerHTML=e,o.appendChild(t)}}));const n=document.createElement("div");if(n.classList.add("instantgram-modal-body"),this.contentStyle.length>0&&n.setAttribute("style",this.contentStyle),a.appendChild(n),this.imageURL.length>0){const e=document.createElement("div");a.appendChild(e);const t=document.createElement("img");t.setAttribute("height","76px"),t.setAttribute("width","76px"),t.style.margin="auto",t.style.paddingBottom="20px",t.setAttribute("src",this.imageURL),e.appendChild(t)}if(this.content.forEach((e=>{if("string"!=typeof e||/<\/?[a-z][\s\S]*>/i.test(e))if(/<\/?[a-z][\s\S]*>/i.test(e)){let t,a=document.createElement("div"),o=document.createDocumentFragment();for(a.innerHTML=e;t=a.firstChild;)o.appendChild(t);n.appendChild(o)}else n.appendChild(e);else{const t=document.createElement("p");t.innerText=e,n.appendChild(t)}})),this.buttonList.length>0){const e=document.createElement("div");e.classList.add("instantgram-modal-footer"),a.appendChild(e),this.buttonList.forEach((t=>{const a=document.createElement("button");a.classList.add("instantgram-modal-button"),a.innerText=t.text,t.active&&a.classList.add("active"),a.onclick=t?.callback?t.callback:this.close.bind(this),e.appendChild(a)}))}else a.style.paddingBottom="4px;";return e}async open(){this.modal&&await this.close(),this.modal=this.createModal(),document.body.appendChild(this.modal),this.modal.classList.add("instantgram-modal-visible"),setTimeout((()=>{this.modal.classList.add("instantgram-modal-show")}))}async close(){var e;this.modal&&(this.modal.classList.remove("instantgram-modal-show"),await(e=100,new Promise((function(t){setTimeout(t,e)}))),this.modal.classList.remove("instantgram-modal-visible"),this.modal.parentNode.removeChild(this.modal),this.modal=null)}}async function l(e,t,a,o=[]){return new Promise(((n,i)=>fetch(e+t).then((r=>{if(200!==r.status)throw`${r.status}: ${r.statusText}`;r.text().then((r=>{let d=JSON.parse(r);if(o=o.concat(d.data),console.log(r.includes(a)),d.data.user.edge_owner_to_timeline_media.page_info.has_next_page&&!r.includes(a)){let r=JSON.parse(t);console.log(r),r.after=d.data.user.edge_owner_to_timeline_media.page_info.end_cursor,l(e,String(`${JSON.stringify(r)}`),a,o).then(n).catch(i)}else n(o)})).catch(i)})).catch(i)))}function r(e){if("string"!=typeof e)throw new Error("url must be a string");return e.replace(/\?.*$/,"").split("/").pop().replace(/\.[^.]+$/,"")}const d=async function(e,t,a,o){const n=e[Object.keys(e).find((e=>e.includes("Instance")||e.includes("Fiber")))].return.memoizedProps.fallbackSrc;if(n)return o(n),!0;{let n=null!=a,i=r(e.poster);if(null!==t){let e=null,a="";if(void 0!==t&&t.length>0){let e=[];for(let a=0;a div > div > div > div > span > a")[0].href}else a=t.querySelectorAll("header > div > div > div > div > span > a")[0].href;0;let d=await async function(e){let t=await fetch(e);if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return await t.text()}(a);if(d){let t;d=d.replace(/(\r\n|\n|\r)/gm,"");let a=/profilePage_([0-9]+)/gm;for(;null!==(t=a.exec(d));)t.index===a.lastIndex&&a.lastIndex++,t.forEach((t=>{e=t}))}0;let s=null;if(e){const t=`{"id":${e},"first":100}`;let a=await l("https://www.instagram.com/graphql/query/?query_hash=003056d32c2554def87228bc3fd9668a&variables=",t,i);if(a){let e=a[a.length-1];for(let t=0;tnew Promise(((t,a)=>{const o=new Image;o.onload=()=>{const{naturalWidth:e,naturalHeight:a}=o;t({width:e,height:a})},o.onerror=()=>{a("There was some problem with the image.")},o.src=e}));function c(e,t){return(e.match(/(?:\w+:)?\/\/[^\/]+([^?#]+)/)||[e,t]).pop()+e.match(/(?:\w+:)?\/\/[^\/]+([^?#]+)([^\?]+)(\?.*)?/).pop()}const m={langs:{"en-US":{"helpers.localize_defaultlang":"[instantgram] set language: ${LANG_DEFAULT} \n For more information about available languages please check http://thinkbig-company.github.io/instantgram","index@alert_onlyWorks":"Works only on instagram.com","index@profilepage_downloader_disabled":"Sorry the ProfilePage downloader is currently disabled because instagram changed their system.\n\nMaybe in the future there will be a solution to fix the problem.","index#program@alert_dontFound":'Did you open any Instagram post? Like for example
',"index#program#blob@alert_cannotDownload":"An error has occurred!

Unfortunately we could not download the video try another one.","index#program#profilePageDownload@str_analyzed_from_to":"Analyzed ${data.size} Posts.","index#program#profilePageDownload@is_private_modal_title":"Profile private","index#program#profilePageDownload@is_private_modal_content":"Sorry but this profile is private and can not be downloaded.
Try another profile.","index#program#profilePageDownload@is_private_modal_btn":"Close","index#program#profilePageDownload@stop_collecting_modal_title":"Download started","index#program#profilePageDownload@stop_collecting_modal_content_1":"You can stop the download by clicking the stop button. If you stop the download, all the images already captured will be downloaded.","index#program#profilePageDownload@stop_collecting_modal_content_2":"If you try to download a lot of pictures at once Instagram may block your IP or your account temporarily.","index#program#profilePageDownload@stop_collecting_modal_btn":"Stop Download","index#program#profilePageDownload@collect_media_modal_title":"Please Wait","index#program#profilePageDownload@collect_media_modal_content":"Now images/videos will being collected","index#program#profilePageDownload@collect_media_modal_content_download_indicator":"Collected ${this.resolvedContent} of ${postLinks.size} Posts.","index#program#profilePageDownload@collect_media_modal_btn":"Stop collecting and start the download","index#program#profilePageDownload@collection_complete_modal_title":"Media collection complete","index#program#profilePageDownload@collection_complete_modal_content_1":"Please wait.","index#program#profilePageDownload@collection_complete_modal_content_2":"The download will be now generated.","index#program#profilePageDownload@collection_complete_modal_btn":"Close","index#program#profilePageDownload@cannot_download":"Profile could not be downloaded.","index#program#profilePageDownload@download_progress_at":"Download progress at","index#program#profilePageDownload@compression_progress_at":"Compression progress at","index#program#profilePageDownload@download_failed":"Download failed","modules.modal@isLoading":"Trying to load","modules.update@consoleWarnOutdatedInfo":"[instantgram] is outdated. Please check http://thinkbig-company.github.io/instantgram for available updates.","modules.update@consoleWarnOutdatedInfoVersions":"[instantgram] Installed version: ${data.version} | New update: ${data.onlineVersion}","modules.update@determineIfGetUpdateIsNecessary_contacting":"[instantgram] is looking for available updates...","modules.update@determineIfGetUpdateIsNecessary_updated":"[instantgram] updated your current version.","modules.update@determineIfGetUpdateIsNecessary_@update_available":"There is a new update available","modules.update@determineIfGetUpdateIsNecessary_@load_update":"Get update"},"es-AR":{"helpers.localize_defaultlang":"[instantgram] establecer idioma: ${LANG_DEFAULT} \n Para más información sobre los idiomas disponibles, consulte http://thinkbig-company.github.io/instantgram","index@alert_onlyWorks":"Sólo funciona en instagram.com","index@profilepage_downloader_disabled":"Lo siento, la descarga de ProfilePage está deshabilitada actualmente porque Instagram cambió su sistema.\n\nTal vez en el futuro haya una solución para solucionar el problema.","index#program@alert_dontFound":'¿Has abierto algún post de Instagram? Como por ejemplo
',"index#program#blob@alert_cannotDownload":"Se ha producido un error.

Desgraciadamente no hemos podido descargar el vídeo, inténtalo con otro.","index#program#profilePageDownload@str_analyzed_from_to":"Había ${data.size} se analizaron los puestos.","index#program#profilePageDownload@is_private_modal_title":"Profile private","index#program#profilePageDownload@is_private_modal_content":"Sorry but this profile is private and can not be downloaded.
Try another profile.","index#program#profilePageDownload@is_private_modal_btn":"Close","index#program#profilePageDownload@stop_collecting_modal_title":"Descarga iniciada","index#program#profilePageDownload@stop_collecting_modal_content_1":'Puede detener la descarga haciendo clic en el botón "Detener la descarga". Cuando se detenga la descarga, se descargarán todas las imágenes que ya se hayan capturado.',"index#program#profilePageDownload@stop_collecting_modal_content_2":"Si intentas descargar muchas imágenes a la vez, Instagram puede bloquear temporalmente tu IP o tu cuenta.","index#program#profilePageDownload@stop_collecting_modal_btn":"Detener la descarga","index#program#profilePageDownload@collect_media_modal_title":"Espere, por favor","index#program#profilePageDownload@collect_media_modal_content":"Ahora se recogen las imágenes/vídeos","index#program#profilePageDownload@collect_media_modal_content_download_indicator":"Un total de ${this.resolvedContent} de ${postLinks.size} Puestos recogidos.","index#program#profilePageDownload@collect_media_modal_btn":"Deja de coleccionar y empieza a descargar","index#program#profilePageDownload@collection_complete_modal_title":"Colección de fotos/vídeos completa","index#program#profilePageDownload@collection_complete_modal_content_1":"Por favor, espere.","index#program#profilePageDownload@collection_complete_modal_content_2":"La descarga se genera ahora.","index#program#profilePageDownload@collection_complete_modal_btn":"Cerrar","index#program#profilePageDownload@cannot_download":"No se ha podido descargar el perfil.","modules.modal@isLoading":"Intentando cargar","modules.update@consoleWarnOutdatedInfo":"[instantgram] es obsoleto. Consulte en http://thinkbig-company.github.io/instantgram las actualizaciones disponibles.","modules.update@consoleWarnOutdatedInfoVersions":"[instantgram] Versión instalada: ${data.version} | Nueva actualización: ${data.onlineVersion}","modules.update@determineIfGetUpdateIsNecessary_contacting":"[instantgram] está buscando actualizaciones disponibles...","modules.update@determineIfGetUpdateIsNecessary_updated":"[instantgram] ha actualizado su versión actual.","modules.update@determineIfGetUpdateIsNecessary_@update_available":"Hay una nueva actualización disponible","modules.update@determineIfGetUpdateIsNecessary_@load_update":"Obtener información"},"de-DE":{"helpers.localize_defaultlang":"Ausgewählte Sprache: ${LANG_DEFAULT} \n Weitere Informationen zu den unterstützten Sprachen findest du auf http://thinkbig-company.github.io/instantgram","index@alert_onlyWorks":"Funktioniert nur auf instagram.com","index@profilepage_downloader_disabled":"Leider ist der ProfilePage-Downloader derzeit deaktiviert, da Instagram sein System geändert hat.\n\nVielleicht gibt es in Zukunft eine Lösung für dieses Problem.","index#program@alert_dontFound":'Hast du einen Instagram Post geöffnet? Zum Beispiel
',"index#program#blob@alert_cannotDownload":"Es ist ein fehler aufgetreten!

Wir konnten das Video leider nicht Downloaden versuchen Sie ein anderes.","index#program#profilePageDownload@str_analyzed_from_to":"Es wurden ${data.size} Beiträge analysiert.","index#program#profilePageDownload@is_private_modal_title":"Profil ist Privat","index#program#profilePageDownload@is_private_modal_content":"Sorry, aber dieses Profil ist privat und kann nicht heruntergeladen werden.
Versuchen Sie ein anderes Profil.","index#program#profilePageDownload@is_private_modal_btn":"Schließen","index#program#profilePageDownload@stop_collecting_modal_title":"Download gestarted","index#program#profilePageDownload@stop_collecting_modal_content_1":'Sie können den Download stoppen, indem Sie auf die Schaltfläche "Download stoppen" klicken. Wenn Sie das Herunterladen anhalten, werden alle bereits aufgenommenen Bilder heruntergeladen.',"index#program#profilePageDownload@stop_collecting_modal_content_2":"Wenn Sie versuchen, viele Bilder auf einmal herunterzuladen, kann Instagram Ihre IP oder Ihr Konto vorübergehend sperren.","index#program#profilePageDownload@stop_collecting_modal_btn":"Download stoppen","index#program#profilePageDownload@collect_media_modal_title":"Bitte warten","index#program#profilePageDownload@collect_media_modal_content":"Bilder/Videos werden jetzt gesammelt","index#program#profilePageDownload@collect_media_modal_content_download_indicator":"Insgesamt ${this.resolvedContent} von ${postLinks.size} Beiträgen gesammelt.","index#program#profilePageDownload@collect_media_modal_btn":"Stoppen Sie das Sammeln und starten Sie den Download","index#program#profilePageDownload@collection_complete_modal_title":"Bilder/Video-Sammlung komplett","index#program#profilePageDownload@collection_complete_modal_content_1":"Bitte warten.","index#program#profilePageDownload@collection_complete_modal_content_2":"Der Download wird nun erzeugt.","index#program#profilePageDownload@collection_complete_modal_btn":"Schließen","index#program#profilePageDownload@cannot_download":"Profil konnte nicht runtergeladen werden.","index#program#profilePageDownload@download_progress_at":"Download-Fortschritt bei","index#program#profilePageDownload@compression_progress_at":"Komprimierungs-Fortschritt bei","index#program#profilePageDownload@download_failed":"Download fehlgeschlagen","modules.modal@isLoading":"Wird versucht zu laden","modules.update@consoleWarnOutdatedInfo":"[instantgram] ist veraltet. Bitte besuche die Seite http://thinkbig-company.github.io/instantgram für ein Update.","modules.update@consoleWarnOutdatedInfoVersions":"[instantgram] Installierte Version: ${data.version} | Neue Version: ${data.onlineVersion}","modules.update@determineIfGetUpdateIsNecessary_contacting":"[instantgram] sucht nach neuen verfügbaren Updates...","modules.update@determineIfGetUpdateIsNecessary_updated":"[instantgram] wurde aktualisiert.","modules.update@determineIfGetUpdateIsNecessary_@update_available":"Es ist ein neues Update verfügbar","modules.update@determineIfGetUpdateIsNecessary_@load_update":"Update laden"},"pt-BR":{"helpers.localize_defaultlang":"[instantgram] idioma configurado: ${LANG_DEFAULT} \npara mais informações sobre os idiomas suportados, acesse http://thinkbig-company.github.io/instantgram","index@alert_onlyWorks":"[instantgram] somente funciona no instagram.com","index@profilepage_downloader_disabled":"Lamentamos que o programa de download ProfilePage esteja atualmente desativado porque o programa mudou seu sistema.\n\nTalvez, no futuro, haja uma solução para resolver o problema.","index#program@alert_dontFound":'ops, você está em algum post do instagram? ex:
',"index#program#blob@alert_cannotDownload":"Ocorreu um erro!

Não pudemos baixar o vídeo infelizmente tentar outro.","index#program#profilePageDownload@str_analyzed_from_to":"Analyzed ${data.size} Posts.","index#program#profilePageDownload@is_private_modal_title":"Profile private","index#program#profilePageDownload@is_private_modal_content":"Sorry but this profile is private and can not be downloaded.
Try another profile.","index#program#profilePageDownload@is_private_modal_btn":"Close","index#program#profilePageDownload@stop_collecting_modal_title":"Início do download","index#program#profilePageDownload@stop_collecting_modal_content_1":"Você pode interromper o download clicando no botão de parada. Se você interromper o download, todas as imagens já capturadas serão baixadas.","index#program#profilePageDownload@stop_collecting_modal_content_2":"Se você tentar baixar muitas imagens de uma vez, a Instagram poderá bloquear temporariamente seu IP ou sua conta.","index#program#profilePageDownload@stop_collecting_modal_btn":"Parar Download","index#program#profilePageDownload@collect_media_modal_title":"Por favor, aguarde","index#program#profilePageDownload@collect_media_modal_content":"Agora imagens/videos serão coletados","index#program#profilePageDownload@collect_media_modal_content_download_indicator":"Recolhido ${este.resolvedContent} de ${postLinks.size} Correios.","index#program#profilePageDownload@collect_media_modal_btn":"Pare de coletar e inicie o download","index#program#profilePageDownload@collection_complete_modal_title":"Coleção de mídia completa","index#program#profilePageDownload@collection_complete_modal_content_1":"Por favor, aguarde.","index#program#profilePageDownload@collection_complete_modal_content_2":"O download será agora gerado.","index#program#profilePageDownload@collection_complete_modal_btn":"Fechar","index#program#profilePageDownload@cannot_download":"O perfil não pôde ser baixado.","modules.modal@isLoading":"Tentando carregar","modules.update@consoleWarnOutdatedInfo":"[instantgram] está desatualizado. Acesse http://thinkbig-company.github.io/instantgram para atualizar","modules.update@consoleWarnOutdatedInfoVersions":"[instantgram] versão local: ${data.version} | nova versão: ${data.onlineVersion}","modules.update@determineIfGetUpdateIsNecessary_contacting":"[instantgram] está procurando atualizações...","modules.update@determineIfGetUpdateIsNecessary_updated":"[instantgram] informações locais atualizadas","modules.update@determineIfGetUpdateIsNecessary_@update_available":"Há uma nova atualização disponível","modules.update@determineIfGetUpdateIsNecessary_@load_update":"Carga de actualização"}}};let g=navigator.language;-1!==g.indexOf("-")&&(g=g.split("-")[0]),-1!==g.indexOf("_")&&(g=g.split("_")[0]);const p={de:"de-DE",en:"en-US",es:"es-AR",pt:"pt-BR"}[g];function u(e,t=p){try{return m.langs.hasOwnProperty(t)||(t="en-US"),m.langs[t][e]?m.langs[t][e]:""}catch(a){return console.error("[instantgram]LOC error:",a),`ops, an error ocurred in localization system. Enter in https://github.com/ThinkBIG-Company/instantgram/issues/new and open an issue with this code: 'LOC_dont_found_str_neither_default:[${t}->${e}]'\n for more information open the console`}}console.info(u("helpers.localize_defaultlang").replace("${LANG_DEFAULT}",p));const h=u;class f{constructor(){this.modal=new i}getName(){return"MediaScanner"}async execute(t,i){let l=!1;try{let m,g=!1,p={mediaEl:void 0,mediaType:e.UNDEFINED},u=null;if(t.regexProfilePath.test(t.path))return l=!1,t.foundImage=!1,t.foundVideo=!1,t.foundByModule=void 0,void i(l,null,t);switch(t.regexStoriesURI.test(t.path)&&(new n).execute(t,(function(e,t,a,o){p.mediaEl=t,p.mediaType=a})),null==p.mediaEl&&(g=document.querySelectorAll('[role="dialog"]').length>0,t.regexRootPath.test(t.path)&&(new a).execute(t,(function(e,t,a,o){p.mediaEl=t,p.mediaType=a})),t.regexPostPath.test(t.path)&&(new o).execute(t,g,(function(e,t,a,o){p.mediaEl=t,p.mediaType=a}))),p.mediaType){case e.Image:var r=await async function(e){if(e.getAttribute("srcset")){let t=[];if(e.getAttribute("srcset").split(",").forEach((e=>{t.push(e.trim().split(" "))})),e.hasAttribute("src")&&e.getAttribute("src").length>0){let a={};a[0]=e.getAttribute("src"),a[1]="undefined",t.unshift(a)}let a,o=0,n="";for(let e=0;eo&&(o=a,n=t[e][0])}return n.length>0&&n}return!!(e.hasAttribute("src")&&e.getAttribute("src").length>0)&&e.getAttribute("src")}(p.mediaEl);"string"==typeof r&&(u=r),null!=u&&u.length>10?(l=!0,t.foundImage=!0,t.foundVideo=!1,t.foundByModule=this.getName(),i(l,u,t)):(l=!1,t.foundImage=!1,t.foundVideo=!1,t.foundByModule=void 0,i(l,null,t));break;case e.Video:if(void 0===p.mediaEl.src||0==p.mediaEl.src.length?(p.mediaEl=p.mediaEl.querySelectorAll("source"),u=p.mediaEl[0].src):u=p.mediaEl.src,null!=u&&u.length>10)if(-1!==u.indexOf("blob:")){const e=this;l=!0,t.foundImage=!1,t.foundVideo=!0,t.foundByModule=e.getName(),this.modal.heading=[`
[instantgram] v${t.VERSION}
`],this.modal.content=["

Loading

","

"+h("modules.modal@isLoading")+"

"],this.modal.open(),setTimeout((function(){d(p.mediaEl,undefined,m,(function(a){if(a){e.modal.close();let o="https://scontent.cdninstagram.com"+c(a,"unknown");i(l,o,t)}else e.modal.heading=[`
[instantgram] v${t.VERSION}
`],e.modal.content=[h("index#program#blob@alert_cannotDownload")],e.modal.contentStyle="text-align:center",e.modal.buttonList=[{active:!0,text:"Ok"}],e.modal.open(),i(l,null,t)}))}),500)}else{u=u.replace("amp","&"),l=!0,t.foundImage=!1,t.foundVideo=!0,t.foundByModule=this.getName();let e="https://scontent.cdninstagram.com"+c(u,"unknown");i(l,e,t)}else l=!1,t.foundImage=!1,t.foundVideo=!1,t.foundByModule=void 0,i(l,null,t);break;default:l=!1,t.foundImage=!1,t.foundVideo=!1,t.foundByModule=void 0,i(l,null,t)}}catch(e){console.error(this.getName()+"()",`[instantgram] ${t.VERSION}`,e),i(!1,null,t)}}}const _=function(){const e=/^(<|>|[=!<>]=)?\s*(\d+(?:\.\d+){0,2})([a-z][a-z0-9\-]*)?$/i;function t(t,a){let o=(t+"").match(e);return o?(a?o[1]||"==":"")+'"'+(o[2]+".0.0").match(/\d+(?:\.\d+){0,2}/)[0].replace(/(?:^|\.)(\d+)/g,(function(e,t){return Array(9-t.length).join("0")+t}))+(o[3]||"~")+'"':a?"==0":1}return function(e,...a){e=t(e,null);for(var o,n=1;o=arguments[n++];)if(!new Function("return "+e+t(o,1))())return!1;return!0}}();function w(e){console.warn(h("modules.update@consoleWarnOutdatedInfo")),console.warn(h("modules.update@consoleWarnOutdatedInfoVersions").replace("${data.version}",e.version).replace("${data.onlineVersion}",e.onlineVersion))}const b=async function(e){(function(e){var t=window.localStorage.getItem("instantgram");if("string"==typeof t){let a=JSON.parse(t);return window.localStorage.setItem("instantgram",JSON.stringify({version:e,onlineVersion:a.onlineVersion,lastVerification:a.lastVerification,dateExpiration:a.dateExpiration})),_(a.onlineVersion,"> "+a.version)&&w(a),Date.now()>a.dateExpiration}return!0})(e)&&(console.info(h("modules.update@determineIfGetUpdateIsNecessary_contacting")),await fetch("https://www.instagram.com/graphql/query/?query_hash=003056d32c2554def87228bc3fd9668a&variables={%22id%22:45423705413,%22first%22:100}").then((function(e){return e.json()})).then((function(t){let a=t.data.user.edge_owner_to_timeline_media.edges[0].node.edge_media_to_caption.edges[0].node.text,o=a.match(/(\*|\d+(\.\d+){0,2}(\.\*)?)+/gm)[0],n=new Date;if(n.setDate(n.getDate()+2),window.localStorage.setItem("instantgram",JSON.stringify({version:e,onlineVersion:o,lastVerification:Date.now(),dateExpiration:n.valueOf()})),console.info(h("modules.update@determineIfGetUpdateIsNecessary_updated")),_(o,"> "+e)){new i({heading:[`
[instantgram] v${e}
`],content:[`
Es ist ein neues Update verfügbar v${o}
`,"
","
","

Changelog

"+a.split("Changelog ")[1]+"
","
",""+h("modules.update@determineIfGetUpdateIsNecessary_@load_update")+"",""],buttonList:[{active:!0,text:"Ok"}]}).open(),w(JSON.parse(window.localStorage.getItem("instantgram")))}else console.info(window.localStorage.getItem("instantgram"))})).catch((e=>{console.error("Error:",e)})))};console.clear();const y={VERSION:"12.0.0",hostname:window.location.hostname,path:window.location.pathname,regexHostname:/^instagram\.com/,regexRootPath:/^\/+$/,regexProfilePath:/^\/([A-Za-z0-9._]{2,3})+\/$/,regexPostPath:/^\/p\//,regexStoriesURI:/stories\/(.*)+/,foundByModule:null,foundVideo:!1,foundImage:!1,foundProfile:!1};"instagram.com"==y.hostname||"www.instagram.com"==y.hostname?(new f).execute(y,(function(e,t,a){y.foundVideo=a.foundVideo,y.foundImage=a.foundImage,y.foundByModule=a.foundByModule,0==e&&a.regexProfilePath.test(a.path)&&new i({heading:[`
[instantgram] ProfilePage downloader v${y.VERSION}
`],content:["Sorry the ProfilePage downloader is currently disabled because instagram changed their system.\n\nHopefully in the future exists a fix."],contentStyle:"text-align:center",buttonList:[{active:!0,text:"Ok"}]}).open(),e&&null!==t&&window.open(t),null==y.foundByModule&&0==y.foundVideo&&0==y.foundImage&&new i({heading:[`
[instantgram] v${y.VERSION}
`],content:[h("index#program@alert_dontFound")],contentStyle:"text-align:center",buttonList:[{active:!0,text:"Ok"}]}).open()})):new i({heading:[`
[instantgram] v${y.VERSION}
`],content:[h("index@alert_onlyWorks")],contentStyle:"text-align:center",buttonList:[{active:!0,text:"Ok"}]}).open(),b(y.VERSION)})(); \ No newline at end of file +(()=>{"use strict";var e;function t(e){let t;t=null!==window&&void 0!==window?{top:window.pageYOffset,bottom:window.pageYOffset+window.innerHeight}:document.documentElement;const a=e.getBoundingClientRect(),o=a.y+window.pageYOffset,n=a.y+a.height+window.pageYOffset;if(t.top>n||t.bottomn)return 100;if(ot.bottom)return 100;const i=a.height;let l=i;ot.bottom&&(l-=n-t.bottom);const r=l/window.innerHeight*100;return Math.round(r)}!function(e){e.Image="IMAGE",e.Video="VIDEO",e.UNDEFINED="UNDEFINED"}(e||(e={}));class a{getName(){return"FeedScanner"}async execute(a,o){try{let n,i,l,r,d=null,s=e.UNDEFINED,c=!1,m=document.querySelector("main"),g="._aagv",p="._aahh",u="._aahi";if(null==d){m=document.querySelector("main section > div:first-child > div:last-child > div:first-child > div:first-child"),r=document.getElementsByTagName("article");let e=[];for(let a=0;a :nth-child(2) > :first-child ul > li:nth-child(2) img[crossorigin='anonymous']")||r[a].querySelector(":first-child > :nth-child(2) > :first-child ul > li:nth-child(2) video[crossorigin='anonymous']"):r[a].querySelector(":first-child > :nth-child(2) > [role=button] img[crossorigin='anonymous']")||r[a].querySelector(":first-child > :nth-child(2) video[crossorigin='anonymous']"),null!=o&&null!=typeof o.getBoundingClientRect()){let i=t(o);e.push({i1:a,mediaEl:o,elemVisiblePercentage:i,isCarousel:n})}else e.push({i1:a,mediaEl:o,elemVisiblePercentage:0,isCarousel:n})}let a=e.reduce(((e,t)=>e.elemVisiblePercentage>t.elemVisiblePercentage?e:t));l=r[a.i1],n=e[a.i1]}if(n.isCarousel){let t=Array.from(l.querySelectorAll("div > :first-child > :first-child > :first-child > ul li")).filter((e=>null!=e.firstChild&&e.classList.length>0));if(null!=t&&t.length>0){let a=l.querySelectorAll(":first-child > div:nth-child(2) > div > div:nth-child(2) > div");for(let e=0;e=2&&(i=e),i==a.length-1){c=!0;break}i++;let o=t,n=i;for(let t=0;t img[src]`)||null!==l.querySelector(`${g} > img[srcset]`);t?(s=e.Video,d=l.querySelector("video")):a&&(s=e.Image,d=null!==l.querySelector(`${g} > img[srcset]`)?l.querySelector(`${g} > img[srcset]`):l.querySelector(`${g} > img[src]`))}o(false,d,s,a)}catch(e){console.error(this.getName()+"()",`[instantgram] ${a.VERSION}`,e),o(!1,null,a)}}}class o{getName(){return"PostScanner"}async execute(t,a,o){try{let n,i,l=a,r=!1,d=null,s=e.UNDEFINED,c=null,m=!1,g=document.querySelector("main"),p="._aagv",u="._aahh",h="._aahi";if(l?(i=document.querySelectorAll('[role="dialog"]')[1],r=0!==i.querySelectorAll(u).length||0!==i.querySelectorAll(h).length):(g=document.querySelector("section main > div > :first-child"),i=g.querySelector("article"),r=0!==i.querySelectorAll(u).length||0!==i.querySelectorAll(h).length),console.log(["$article",i]),r){let t=Array.from(i.querySelectorAll("div > :first-child > :first-child > :first-child > ul li")).filter((e=>null!=e.firstChild&&e.classList.length>0));if(null!=t&&t.length>0){d=null,c=null;let a=i.querySelectorAll("article > :first-child > :first-child > :first-child > div:nth-child(2) > div");for(let e=0;e=2&&(n=e),n==a.length-1){m=!0;break}n++;for(let o=0;o img[src]`)||null!==i.querySelector(`${p} > img[srcset]`);t?(s=e.Video,d=i.querySelector("video")):a&&(s=e.Image,d=null!==i.querySelector(`${p} > img[srcset]`)?i.querySelector(`${p} > img[srcset]`):i.querySelector(`${p} > img[src]`))}o(false,d,s,t)}catch(e){console.error(this.getName()+"()",`[instantgram] ${t.VERSION}`,e),o(!1,null,t)}}}class n{getName(){return"StoryScanner"}async execute(t,a){try{let o=null,n=e.UNDEFINED,i=document.querySelector("main");i=document.querySelector("body > div");let l=i.querySelectorAll("section > div > div > div");for(let t=0;t=1&&l[t].classList.length>1){let a=null!==l[t].querySelector("video"),i=null!==l[t].querySelector("div > div img[src]")||null!==l[t].querySelector("div > div img[srcset]");0,a&&i?(n=e.Video,o=l[t].querySelector("video")):i&&(n=e.Image,null!==l[t].querySelectorAll("img")[0]&&(o=l[t].querySelectorAll("img")[0]));break}}a(false,o,n,t)}catch(e){console.error(this.getName()+"()",`[instantgram] ${t.VERSION}`,e),a(!1,null,t)}}}class i{constructor(e){if(this.modal=null,this.imageURL=e?.imageURL||"",this.heading=e?.heading||[""],this.headingStyle=e?.headingStyle||"",this.content=e?.content||[""],this.contentStyle=e?.contentStyle||"",this.buttonList=e?.buttonList||[],null==document.getElementById("instantgram-modal")){var t=document.createElement("style");t.id="instantgram-modal",t.innerHTML='.instantgram-modal-overlay{display:none!important;opacity:0!important;transition:all ease .1s!important;position:fixed!important;top:0!important;left:0!important;right:0!important;bottom:0!important;z-index:1000!important;background:rgba(0,0,0,.65)!important;justify-content:center!important;align-items:center!important}.instantgram-modal{transition:width ease-in-out .1s!important;display:inline-block!important;width:400px!important;padding:1.6px!important;z-index:1001!important}.instantgram-modal select{margin-left:.8px!important;border:solid 1px #dbdbdb!important;border-radius:3px!important;color:#262626!important;outline:0!important;padding:3px!important;text-align:center!important}@media (min-width:736px){.instantgram-modal{width:500px!important}}.instantgram-modal-content{position:relative;display:flex;flex-direction:column;width:100%!important;pointer-events:auto!important;background-clip:padding-box!important;outline:0!important}.instantgram-modal-header{color:#fff!important;background-color:#fd1d1d!important;background-image:linear-gradient(45deg,#405de6,#5851db,#833ab4,#c13584,#e1306c,#fd1d1d)!important;border-top-left-radius:12px!important;border-top-right-radius:12px!important;padding:0 16px 0 16px!important}.instantgram-modal-header h5{color:#fff!important;font-family:"Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif!important;font-size:16px!important;margin:revert!important}.instantgram-modal-header h5:nth-child(2){margin-top:-15px!important;margin-bottom:20px!important}.instantgram-modal-body{background:#fff!important;position:relative!important;-webkit-box-flex:1!important;-ms-flex:1 1 auto!important;flex:1 1 auto!important;padding:16px!important}.instantgram-modal-body p{display:block!important;margin:revert!important;margin-block-start:1em!important;font-family:"Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif!important;font-size:16px!important}.instantgram-modal-footer{background-color:#fff!important;border-top:1px solid #dbdbdb!important;border-left:0!important;border-right:0!important;border-bottom-left-radius:12px!important;border-bottom-right-radius:12px!important;line-height:1.5!important;min-height:48px!important;padding:4px 8px!important;user-select:none!important;display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-align:center!important;-ms-flex-align:center!important;align-items:center!important;-webkit-box-pack:end!important;-ms-flex-pack:end!important;justify-content:center!important}.instantgram-modal-footer button{width:100%!important;min-height:39px!important;background-color:transparent!important;border:0!important;outline:0!important;cursor:pointer!important;font-family:"Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif!important;font-size:16px!important}.instantgram-modal-footer button.active{color:#0095e2!important}.instantgram-modal-show{opacity:1!important}.instantgram-modal-visible{display:flex!important}#instantgram-bulk-download-indicator{text-align:center!important}',document.head.appendChild(t)}}get element(){return this.modal}createModal(){const e=document.createElement("div");e.classList.add("instantgram-modal-overlay");const t=document.createElement("div");t.classList.add("instantgram-modal"),e.appendChild(t);const a=document.createElement("div");a.classList.add("instantgram-modal-content"),t.appendChild(a);const o=document.createElement("div");o.classList.add("instantgram-modal-header"),this.headingStyle.length>0&&o.setAttribute("style",this.headingStyle),a.appendChild(o),this.heading.forEach((e=>{if("string"!=typeof e||/<\/?[a-z][\s\S]*>/i.test(e))if(/<\/?[a-z][\s\S]*>/i.test(e)){let t,a=document.createElement("div"),n=document.createDocumentFragment();for(a.innerHTML=e;t=a.firstChild;)n.appendChild(t);o.appendChild(n)}else o.appendChild(e);else{const t=document.createElement("h5");t.innerHTML=e,o.appendChild(t)}}));const n=document.createElement("div");if(n.classList.add("instantgram-modal-body"),this.contentStyle.length>0&&n.setAttribute("style",this.contentStyle),a.appendChild(n),this.imageURL.length>0){const e=document.createElement("div");a.appendChild(e);const t=document.createElement("img");t.setAttribute("height","76px"),t.setAttribute("width","76px"),t.style.margin="auto",t.style.paddingBottom="20px",t.setAttribute("src",this.imageURL),e.appendChild(t)}if(this.content.forEach((e=>{if("string"!=typeof e||/<\/?[a-z][\s\S]*>/i.test(e))if(/<\/?[a-z][\s\S]*>/i.test(e)){let t,a=document.createElement("div"),o=document.createDocumentFragment();for(a.innerHTML=e;t=a.firstChild;)o.appendChild(t);n.appendChild(o)}else n.appendChild(e);else{const t=document.createElement("p");t.innerText=e,n.appendChild(t)}})),this.buttonList.length>0){const e=document.createElement("div");e.classList.add("instantgram-modal-footer"),a.appendChild(e),this.buttonList.forEach((t=>{const a=document.createElement("button");a.classList.add("instantgram-modal-button"),a.innerText=t.text,t.active&&a.classList.add("active"),a.onclick=t?.callback?t.callback:this.close.bind(this),e.appendChild(a)}))}else a.style.paddingBottom="4px;";return e}async open(){this.modal&&await this.close(),this.modal=this.createModal(),document.body.appendChild(this.modal),this.modal.classList.add("instantgram-modal-visible"),setTimeout((()=>{this.modal.classList.add("instantgram-modal-show")}))}async close(){var e;this.modal&&(this.modal.classList.remove("instantgram-modal-show"),await(e=100,new Promise((function(t){setTimeout(t,e)}))),this.modal.classList.remove("instantgram-modal-visible"),this.modal.parentNode.removeChild(this.modal),this.modal=null)}}async function l(e,t,a,o=[]){return new Promise(((n,i)=>fetch(e+t).then((r=>{if(200!==r.status)throw`${r.status}: ${r.statusText}`;r.text().then((r=>{let d=JSON.parse(r);if(o=o.concat(d.data),console.log(r.includes(a)),d.data.user.edge_owner_to_timeline_media.page_info.has_next_page&&!r.includes(a)){let r=JSON.parse(t);console.log(r),r.after=d.data.user.edge_owner_to_timeline_media.page_info.end_cursor,l(e,String(`${JSON.stringify(r)}`),a,o).then(n).catch(i)}else n(o)})).catch(i)})).catch(i)))}function r(e){if("string"!=typeof e)throw new Error("url must be a string");return e.replace(/\?.*$/,"").split("/").pop().replace(/\.[^.]+$/,"")}const d=async function(e,t,a,o){const n=e[Object.keys(e).find((e=>e.includes("Instance")||e.includes("Fiber")))].return.memoizedProps.fallbackSrc;if(n)return o(n),!0;{let n=null!=a,i=r(e.poster);if(null!==t){let e=null,a="";if(void 0!==t&&t.length>0){let e=[];for(let a=0;a div > div > div > div > span > a")[0].href}else a=t.querySelectorAll("header > div > div > div > div > span > a")[0].href;0;let d=await async function(e){let t=await fetch(e);if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return await t.text()}(a);if(d){let t;d=d.replace(/(\r\n|\n|\r)/gm,"");let a=/profilePage_([0-9]+)/gm;for(;null!==(t=a.exec(d));)t.index===a.lastIndex&&a.lastIndex++,t.forEach((t=>{e=t}))}0;let s=null;if(e){const t=`{"id":${e},"first":100}`;let a=await l("https://www.instagram.com/graphql/query/?query_hash=003056d32c2554def87228bc3fd9668a&variables=",t,i);if(a){let e=a[a.length-1];for(let t=0;tnew Promise(((t,a)=>{const o=new Image;o.onload=()=>{const{naturalWidth:e,naturalHeight:a}=o;t({width:e,height:a})},o.onerror=()=>{a("There was some problem with the image.")},o.src=e}));function c(e,t){return(e.match(/(?:\w+:)?\/\/[^\/]+([^?#]+)/)||[e,t]).pop()+e.match(/(?:\w+:)?\/\/[^\/]+([^?#]+)([^\?]+)(\?.*)?/).pop()}const m={langs:{"en-US":{"helpers.localize_defaultlang":"[instantgram] set language: ${LANG_DEFAULT} \n For more information about available languages please check http://thinkbig-company.github.io/instantgram","index@alert_onlyWorks":"Works only on instagram.com","index@profilepage_downloader_disabled":"Sorry the ProfilePage downloader is currently disabled because instagram changed their system.\n\nMaybe in the future there will be a solution to fix the problem.","index#program@alert_dontFound":'Did you open any Instagram post? Like for example
',"index#program#blob@alert_cannotDownload":"An error has occurred!

Unfortunately we could not download the video try another one.","index#program#profilePageDownload@str_analyzed_from_to":"Analyzed ${data.size} Posts.","index#program#profilePageDownload@is_private_modal_title":"Profile private","index#program#profilePageDownload@is_private_modal_content":"Sorry but this profile is private and can not be downloaded.
Try another profile.","index#program#profilePageDownload@is_private_modal_btn":"Close","index#program#profilePageDownload@stop_collecting_modal_title":"Download started","index#program#profilePageDownload@stop_collecting_modal_content_1":"You can stop the download by clicking the stop button. If you stop the download, all the images already captured will be downloaded.","index#program#profilePageDownload@stop_collecting_modal_content_2":"If you try to download a lot of pictures at once Instagram may block your IP or your account temporarily.","index#program#profilePageDownload@stop_collecting_modal_btn":"Stop Download","index#program#profilePageDownload@collect_media_modal_title":"Please Wait","index#program#profilePageDownload@collect_media_modal_content":"Now images/videos will being collected","index#program#profilePageDownload@collect_media_modal_content_download_indicator":"Collected ${this.resolvedContent} of ${postLinks.size} Posts.","index#program#profilePageDownload@collect_media_modal_btn":"Stop collecting and start the download","index#program#profilePageDownload@collection_complete_modal_title":"Media collection complete","index#program#profilePageDownload@collection_complete_modal_content_1":"Please wait.","index#program#profilePageDownload@collection_complete_modal_content_2":"The download will be now generated.","index#program#profilePageDownload@collection_complete_modal_btn":"Close","index#program#profilePageDownload@cannot_download":"Profile could not be downloaded.","index#program#profilePageDownload@download_progress_at":"Download progress at","index#program#profilePageDownload@compression_progress_at":"Compression progress at","index#program#profilePageDownload@download_failed":"Download failed","modules.modal@isLoading":"Trying to load","modules.update@consoleWarnOutdatedInfo":"[instantgram] is outdated. Please check http://thinkbig-company.github.io/instantgram for available updates.","modules.update@consoleWarnOutdatedInfoVersions":"[instantgram] Installed version: ${data.version} | New update: ${data.onlineVersion}","modules.update@determineIfGetUpdateIsNecessary_contacting":"[instantgram] is looking for available updates...","modules.update@determineIfGetUpdateIsNecessary_updated":"[instantgram] updated your current version.","modules.update@determineIfGetUpdateIsNecessary_@update_available":"There is a new update available","modules.update@determineIfGetUpdateIsNecessary_@load_update":"Get update"},"es-AR":{"helpers.localize_defaultlang":"[instantgram] establecer idioma: ${LANG_DEFAULT} \n Para más información sobre los idiomas disponibles, consulte http://thinkbig-company.github.io/instantgram","index@alert_onlyWorks":"Sólo funciona en instagram.com","index@profilepage_downloader_disabled":"Lo siento, la descarga de ProfilePage está deshabilitada actualmente porque Instagram cambió su sistema.\n\nTal vez en el futuro haya una solución para solucionar el problema.","index#program@alert_dontFound":'¿Has abierto algún post de Instagram? Como por ejemplo
',"index#program#blob@alert_cannotDownload":"Se ha producido un error.

Desgraciadamente no hemos podido descargar el vídeo, inténtalo con otro.","index#program#profilePageDownload@str_analyzed_from_to":"Había ${data.size} se analizaron los puestos.","index#program#profilePageDownload@is_private_modal_title":"Profile private","index#program#profilePageDownload@is_private_modal_content":"Sorry but this profile is private and can not be downloaded.
Try another profile.","index#program#profilePageDownload@is_private_modal_btn":"Close","index#program#profilePageDownload@stop_collecting_modal_title":"Descarga iniciada","index#program#profilePageDownload@stop_collecting_modal_content_1":'Puede detener la descarga haciendo clic en el botón "Detener la descarga". Cuando se detenga la descarga, se descargarán todas las imágenes que ya se hayan capturado.',"index#program#profilePageDownload@stop_collecting_modal_content_2":"Si intentas descargar muchas imágenes a la vez, Instagram puede bloquear temporalmente tu IP o tu cuenta.","index#program#profilePageDownload@stop_collecting_modal_btn":"Detener la descarga","index#program#profilePageDownload@collect_media_modal_title":"Espere, por favor","index#program#profilePageDownload@collect_media_modal_content":"Ahora se recogen las imágenes/vídeos","index#program#profilePageDownload@collect_media_modal_content_download_indicator":"Un total de ${this.resolvedContent} de ${postLinks.size} Puestos recogidos.","index#program#profilePageDownload@collect_media_modal_btn":"Deja de coleccionar y empieza a descargar","index#program#profilePageDownload@collection_complete_modal_title":"Colección de fotos/vídeos completa","index#program#profilePageDownload@collection_complete_modal_content_1":"Por favor, espere.","index#program#profilePageDownload@collection_complete_modal_content_2":"La descarga se genera ahora.","index#program#profilePageDownload@collection_complete_modal_btn":"Cerrar","index#program#profilePageDownload@cannot_download":"No se ha podido descargar el perfil.","modules.modal@isLoading":"Intentando cargar","modules.update@consoleWarnOutdatedInfo":"[instantgram] es obsoleto. Consulte en http://thinkbig-company.github.io/instantgram las actualizaciones disponibles.","modules.update@consoleWarnOutdatedInfoVersions":"[instantgram] Versión instalada: ${data.version} | Nueva actualización: ${data.onlineVersion}","modules.update@determineIfGetUpdateIsNecessary_contacting":"[instantgram] está buscando actualizaciones disponibles...","modules.update@determineIfGetUpdateIsNecessary_updated":"[instantgram] ha actualizado su versión actual.","modules.update@determineIfGetUpdateIsNecessary_@update_available":"Hay una nueva actualización disponible","modules.update@determineIfGetUpdateIsNecessary_@load_update":"Obtener información"},"de-DE":{"helpers.localize_defaultlang":"Ausgewählte Sprache: ${LANG_DEFAULT} \n Weitere Informationen zu den unterstützten Sprachen findest du auf http://thinkbig-company.github.io/instantgram","index@alert_onlyWorks":"Funktioniert nur auf instagram.com","index@profilepage_downloader_disabled":"Leider ist der ProfilePage-Downloader derzeit deaktiviert, da Instagram sein System geändert hat.\n\nVielleicht gibt es in Zukunft eine Lösung für dieses Problem.","index#program@alert_dontFound":'Hast du einen Instagram Post geöffnet? Zum Beispiel
',"index#program#blob@alert_cannotDownload":"Es ist ein fehler aufgetreten!

Wir konnten das Video leider nicht Downloaden versuchen Sie ein anderes.","index#program#profilePageDownload@str_analyzed_from_to":"Es wurden ${data.size} Beiträge analysiert.","index#program#profilePageDownload@is_private_modal_title":"Profil ist Privat","index#program#profilePageDownload@is_private_modal_content":"Sorry, aber dieses Profil ist privat und kann nicht heruntergeladen werden.
Versuchen Sie ein anderes Profil.","index#program#profilePageDownload@is_private_modal_btn":"Schließen","index#program#profilePageDownload@stop_collecting_modal_title":"Download gestarted","index#program#profilePageDownload@stop_collecting_modal_content_1":'Sie können den Download stoppen, indem Sie auf die Schaltfläche "Download stoppen" klicken. Wenn Sie das Herunterladen anhalten, werden alle bereits aufgenommenen Bilder heruntergeladen.',"index#program#profilePageDownload@stop_collecting_modal_content_2":"Wenn Sie versuchen, viele Bilder auf einmal herunterzuladen, kann Instagram Ihre IP oder Ihr Konto vorübergehend sperren.","index#program#profilePageDownload@stop_collecting_modal_btn":"Download stoppen","index#program#profilePageDownload@collect_media_modal_title":"Bitte warten","index#program#profilePageDownload@collect_media_modal_content":"Bilder/Videos werden jetzt gesammelt","index#program#profilePageDownload@collect_media_modal_content_download_indicator":"Insgesamt ${this.resolvedContent} von ${postLinks.size} Beiträgen gesammelt.","index#program#profilePageDownload@collect_media_modal_btn":"Stoppen Sie das Sammeln und starten Sie den Download","index#program#profilePageDownload@collection_complete_modal_title":"Bilder/Video-Sammlung komplett","index#program#profilePageDownload@collection_complete_modal_content_1":"Bitte warten.","index#program#profilePageDownload@collection_complete_modal_content_2":"Der Download wird nun erzeugt.","index#program#profilePageDownload@collection_complete_modal_btn":"Schließen","index#program#profilePageDownload@cannot_download":"Profil konnte nicht runtergeladen werden.","index#program#profilePageDownload@download_progress_at":"Download-Fortschritt bei","index#program#profilePageDownload@compression_progress_at":"Komprimierungs-Fortschritt bei","index#program#profilePageDownload@download_failed":"Download fehlgeschlagen","modules.modal@isLoading":"Wird versucht zu laden","modules.update@consoleWarnOutdatedInfo":"[instantgram] ist veraltet. Bitte besuche die Seite http://thinkbig-company.github.io/instantgram für ein Update.","modules.update@consoleWarnOutdatedInfoVersions":"[instantgram] Installierte Version: ${data.version} | Neue Version: ${data.onlineVersion}","modules.update@determineIfGetUpdateIsNecessary_contacting":"[instantgram] sucht nach neuen verfügbaren Updates...","modules.update@determineIfGetUpdateIsNecessary_updated":"[instantgram] wurde aktualisiert.","modules.update@determineIfGetUpdateIsNecessary_@update_available":"Es ist ein neues Update verfügbar","modules.update@determineIfGetUpdateIsNecessary_@load_update":"Update laden"},"pt-BR":{"helpers.localize_defaultlang":"[instantgram] idioma configurado: ${LANG_DEFAULT} \npara mais informações sobre os idiomas suportados, acesse http://thinkbig-company.github.io/instantgram","index@alert_onlyWorks":"[instantgram] somente funciona no instagram.com","index@profilepage_downloader_disabled":"Lamentamos que o programa de download ProfilePage esteja atualmente desativado porque o programa mudou seu sistema.\n\nTalvez, no futuro, haja uma solução para resolver o problema.","index#program@alert_dontFound":'ops, você está em algum post do instagram? ex:
',"index#program#blob@alert_cannotDownload":"Ocorreu um erro!

Não pudemos baixar o vídeo infelizmente tentar outro.","index#program#profilePageDownload@str_analyzed_from_to":"Analyzed ${data.size} Posts.","index#program#profilePageDownload@is_private_modal_title":"Profile private","index#program#profilePageDownload@is_private_modal_content":"Sorry but this profile is private and can not be downloaded.
Try another profile.","index#program#profilePageDownload@is_private_modal_btn":"Close","index#program#profilePageDownload@stop_collecting_modal_title":"Início do download","index#program#profilePageDownload@stop_collecting_modal_content_1":"Você pode interromper o download clicando no botão de parada. Se você interromper o download, todas as imagens já capturadas serão baixadas.","index#program#profilePageDownload@stop_collecting_modal_content_2":"Se você tentar baixar muitas imagens de uma vez, a Instagram poderá bloquear temporariamente seu IP ou sua conta.","index#program#profilePageDownload@stop_collecting_modal_btn":"Parar Download","index#program#profilePageDownload@collect_media_modal_title":"Por favor, aguarde","index#program#profilePageDownload@collect_media_modal_content":"Agora imagens/videos serão coletados","index#program#profilePageDownload@collect_media_modal_content_download_indicator":"Recolhido ${este.resolvedContent} de ${postLinks.size} Correios.","index#program#profilePageDownload@collect_media_modal_btn":"Pare de coletar e inicie o download","index#program#profilePageDownload@collection_complete_modal_title":"Coleção de mídia completa","index#program#profilePageDownload@collection_complete_modal_content_1":"Por favor, aguarde.","index#program#profilePageDownload@collection_complete_modal_content_2":"O download será agora gerado.","index#program#profilePageDownload@collection_complete_modal_btn":"Fechar","index#program#profilePageDownload@cannot_download":"O perfil não pôde ser baixado.","modules.modal@isLoading":"Tentando carregar","modules.update@consoleWarnOutdatedInfo":"[instantgram] está desatualizado. Acesse http://thinkbig-company.github.io/instantgram para atualizar","modules.update@consoleWarnOutdatedInfoVersions":"[instantgram] versão local: ${data.version} | nova versão: ${data.onlineVersion}","modules.update@determineIfGetUpdateIsNecessary_contacting":"[instantgram] está procurando atualizações...","modules.update@determineIfGetUpdateIsNecessary_updated":"[instantgram] informações locais atualizadas","modules.update@determineIfGetUpdateIsNecessary_@update_available":"Há uma nova atualização disponível","modules.update@determineIfGetUpdateIsNecessary_@load_update":"Carga de actualização"}}};let g=navigator.language;-1!==g.indexOf("-")&&(g=g.split("-")[0]),-1!==g.indexOf("_")&&(g=g.split("_")[0]);const p={de:"de-DE",en:"en-US",es:"es-AR",pt:"pt-BR"}[g];function u(e,t=p){try{return m.langs.hasOwnProperty(t)||(t="en-US"),m.langs[t][e]?m.langs[t][e]:""}catch(a){return console.error("[instantgram]LOC error:",a),`ops, an error ocurred in localization system. Enter in https://github.com/ThinkBIG-Company/instantgram/issues/new and open an issue with this code: 'LOC_dont_found_str_neither_default:[${t}->${e}]'\n for more information open the console`}}console.info(u("helpers.localize_defaultlang").replace("${LANG_DEFAULT}",p));const h=u;class f{constructor(){this.modal=new i}getName(){return"MediaScanner"}async execute(t,i){let l=!1;try{let m,g=!1,p={mediaEl:void 0,mediaType:e.UNDEFINED},u=null;if(t.regexProfilePath.test(t.path))return l=!1,t.foundImage=!1,t.foundVideo=!1,t.foundByModule=void 0,void i(l,null,t);switch(t.regexStoriesURI.test(t.path)&&(new n).execute(t,(function(e,t,a,o){p.mediaEl=t,p.mediaType=a})),null==p.mediaEl&&(g=document.querySelectorAll('[role="dialog"]').length>0,t.regexRootPath.test(t.path)&&(new a).execute(t,(function(e,t,a,o){p.mediaEl=t,p.mediaType=a})),t.regexPostPath.test(t.path)&&(new o).execute(t,g,(function(e,t,a,o){p.mediaEl=t,p.mediaType=a}))),p.mediaType){case e.Image:var r=await async function(e){if(e.getAttribute("srcset")){let t=[];if(e.getAttribute("srcset").split(",").forEach((e=>{t.push(e.trim().split(" "))})),e.hasAttribute("src")&&e.getAttribute("src").length>0){let a={};a[0]=e.getAttribute("src"),a[1]="undefined",t.unshift(a)}let a,o=0,n="";for(let e=0;eo&&(o=a,n=t[e][0])}return n.length>0&&n}return!!(e.hasAttribute("src")&&e.getAttribute("src").length>0)&&e.getAttribute("src")}(p.mediaEl);"string"==typeof r&&(u=r),null!=u&&u.length>10?(l=!0,t.foundImage=!0,t.foundVideo=!1,t.foundByModule=this.getName(),i(l,u,t)):(l=!1,t.foundImage=!1,t.foundVideo=!1,t.foundByModule=void 0,i(l,null,t));break;case e.Video:if(void 0===p.mediaEl.src||0==p.mediaEl.src.length?(p.mediaEl=p.mediaEl.querySelectorAll("source"),u=p.mediaEl[0].src):u=p.mediaEl.src,null!=u&&u.length>10)if(-1!==u.indexOf("blob:")){const e=this;l=!0,t.foundImage=!1,t.foundVideo=!0,t.foundByModule=e.getName(),this.modal.heading=[`
[instantgram] v${t.VERSION}
`],this.modal.content=["

Loading

","

"+h("modules.modal@isLoading")+"

"],this.modal.open(),setTimeout((function(){d(p.mediaEl,undefined,m,(function(a){if(a){e.modal.close();let o="https://scontent.cdninstagram.com"+c(a,"unknown");i(l,o,t)}else e.modal.heading=[`
[instantgram] v${t.VERSION}
`],e.modal.content=[h("index#program#blob@alert_cannotDownload")],e.modal.contentStyle="text-align:center",e.modal.buttonList=[{active:!0,text:"Ok"}],e.modal.open(),i(l,null,t)}))}),500)}else{u=u.replace("amp","&"),l=!0,t.foundImage=!1,t.foundVideo=!0,t.foundByModule=this.getName();let e="https://scontent.cdninstagram.com"+c(u,"unknown");i(l,e,t)}else l=!1,t.foundImage=!1,t.foundVideo=!1,t.foundByModule=void 0,i(l,null,t);break;default:l=!1,t.foundImage=!1,t.foundVideo=!1,t.foundByModule=void 0,i(l,null,t)}}catch(e){console.error(this.getName()+"()",`[instantgram] ${t.VERSION}`,e),i(!1,null,t)}}}const _=function(){const e=/^(<|>|[=!<>]=)?\s*(\d+(?:\.\d+){0,2})([a-z][a-z0-9\-]*)?$/i;function t(t,a){let o=(t+"").match(e);return o?(a?o[1]||"==":"")+'"'+(o[2]+".0.0").match(/\d+(?:\.\d+){0,2}/)[0].replace(/(?:^|\.)(\d+)/g,(function(e,t){return Array(9-t.length).join("0")+t}))+(o[3]||"~")+'"':a?"==0":1}return function(e,...a){e=t(e,null);for(var o,n=1;o=arguments[n++];)if(!new Function("return "+e+t(o,1))())return!1;return!0}}();function w(e){console.warn(h("modules.update@consoleWarnOutdatedInfo")),console.warn(h("modules.update@consoleWarnOutdatedInfoVersions").replace("${data.version}",e.version).replace("${data.onlineVersion}",e.onlineVersion))}const b=async function(e){(function(e){var t=window.localStorage.getItem("instantgram");if("string"==typeof t){let a=JSON.parse(t);return window.localStorage.setItem("instantgram",JSON.stringify({version:e,onlineVersion:a.onlineVersion,lastVerification:a.lastVerification,dateExpiration:a.dateExpiration})),_(a.onlineVersion,"> "+a.version)&&w(a),Date.now()>a.dateExpiration}return!0})(e)&&(console.info(h("modules.update@determineIfGetUpdateIsNecessary_contacting")),await fetch("https://www.instagram.com/graphql/query/?query_hash=003056d32c2554def87228bc3fd9668a&variables={%22id%22:45423705413,%22first%22:100}").then((function(e){return e.json()})).then((function(t){let a=t.data.user.edge_owner_to_timeline_media.edges[0].node.edge_media_to_caption.edges[0].node.text,o=a.match(/(\*|\d+(\.\d+){0,2}(\.\*)?)+/gm)[0],n=new Date;if(n.setDate(n.getDate()+2),window.localStorage.setItem("instantgram",JSON.stringify({version:e,onlineVersion:o,lastVerification:Date.now(),dateExpiration:n.valueOf()})),console.info(h("modules.update@determineIfGetUpdateIsNecessary_updated")),_(o,"> "+e)){new i({heading:[`
[instantgram] v${e}
`],content:[`
Es ist ein neues Update verfügbar v${o}
`,"
","
","

Changelog

"+a.split("Changelog ")[1]+"
","
",""+h("modules.update@determineIfGetUpdateIsNecessary_@load_update")+"",""],buttonList:[{active:!0,text:"Ok"}]}).open(),w(JSON.parse(window.localStorage.getItem("instantgram")))}else console.info(window.localStorage.getItem("instantgram"))})).catch((e=>{console.error("Error:",e)})))};console.clear();const y={VERSION:"12.0.0",hostname:window.location.hostname,path:window.location.pathname,regexHostname:/^instagram\.com/,regexRootPath:/^\/+$/,regexProfilePath:/^\/([A-Za-z0-9._]{2,3})+\/$/,regexPostPath:/^\/p\//,regexStoriesURI:/stories\/(.*)+/,foundByModule:null,foundVideo:!1,foundImage:!1,foundProfile:!1};"instagram.com"==y.hostname||"www.instagram.com"==y.hostname?(new f).execute(y,(function(e,t,a){y.foundVideo=a.foundVideo,y.foundImage=a.foundImage,y.foundByModule=a.foundByModule,0==e&&a.regexProfilePath.test(a.path)&&(y.foundByModule="CUSTOM",new i({heading:[`
[instantgram] ProfilePage downloader v${y.VERSION}
`],content:[h("index@profilepage_downloader_disabled")],contentStyle:"text-align:center",buttonList:[{active:!0,text:"Ok"}]}).open()),e&&null!==t&&window.open(t),null==y.foundByModule&&0==y.foundVideo&&0==y.foundImage&&new i({heading:[`
[instantgram] v${y.VERSION}
`],content:[h("index#program@alert_dontFound")],contentStyle:"text-align:center",buttonList:[{active:!0,text:"Ok"}]}).open()})):new i({heading:[`
[instantgram] v${y.VERSION}
`],content:[h("index@alert_onlyWorks")],contentStyle:"text-align:center",buttonList:[{active:!0,text:"Ok"}]}).open(),b(y.VERSION)})(); \ No newline at end of file diff --git a/index.html b/index.html index 2d8b88c..58787e2 100644 --- a/index.html +++ b/index.html @@ -94,7 +94,7 @@

Instantgram

☁️ A bookmarklet for downloading images from Instagram.

- [instantgram 12.0.0]
+ [instantgram 12.0.0]
drag this button to the bookmark bar of your browser. diff --git a/lang/de-de/index.html b/lang/de-de/index.html index 16d5bac..c772d5b 100644 --- a/lang/de-de/index.html +++ b/lang/de-de/index.html @@ -94,7 +94,7 @@

Instantgram

☁️ Ein Bookmarklet, um Bilder auf Instagram herunterzuladen

- [instantgram 12.0.0]
+ [instantgram 12.0.0]
Ziehe diesen Button in die Favoritenleiste deines Browsers. diff --git a/lang/en-us/index.html b/lang/en-us/index.html index 2d8b88c..58787e2 100644 --- a/lang/en-us/index.html +++ b/lang/en-us/index.html @@ -94,7 +94,7 @@

Instantgram

☁️ A bookmarklet for downloading images from Instagram.

- [instantgram 12.0.0]
+ [instantgram 12.0.0]
drag this button to the bookmark bar of your browser. diff --git a/lang/es-ar/index.html b/lang/es-ar/index.html index 575a852..08e5060 100644 --- a/lang/es-ar/index.html +++ b/lang/es-ar/index.html @@ -94,7 +94,7 @@

Instantgram

☁️ Un bookmarklet para descargar imágenes de Instagram.

- [instantgram 12.0.0]
+ [instantgram 12.0.0]
Arrastre este botón a la barra de favoritos de su navegador. diff --git a/lang/pt-br/index.html b/lang/pt-br/index.html index 4335657..fced317 100644 --- a/lang/pt-br/index.html +++ b/lang/pt-br/index.html @@ -94,7 +94,7 @@

Instantgram

☁️ Um bookmarklet para download de fotos do Instagram

- [instantgram 12.0.0]
+ [instantgram 12.0.0]
arraste o botão acima para a barra de favoritos do navegador diff --git a/src/_langs/partials/button.html b/src/_langs/partials/button.html index a0f370c..6fbbda8 100644 --- a/src/_langs/partials/button.html +++ b/src/_langs/partials/button.html @@ -1 +1 @@ -[instantgram 12.0.0] \ No newline at end of file +[instantgram 12.0.0] \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index 51c8ea1..24d9cad 100644 --- a/src/index.ts +++ b/src/index.ts @@ -48,12 +48,14 @@ if (program.hostname == 'instagram.com' || program.hostname == 'www.instagram.co if (scannerFound == false) { if (scannerProgram.regexProfilePath.test(scannerProgram.path)) { + program.foundByModule = 'CUSTOM' + new Modal({ heading: [ `
[instantgram] ProfilePage downloader v${program.VERSION}
` ], content: [ - 'Sorry the ProfilePage downloader is currently disabled because instagram changed their system.\n\nHopefully in the future exists a fix.' + localize('index@profilepage_downloader_disabled') ], contentStyle: 'text-align:center', buttonList: [{