New:Socket for Asana Is Now Available.Learn more
Get Started

M2 Zaubertool Add-On

Package Overview
Versions
2
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zaubertool@example.local - firefox Package Compare versions

Comparing version
1.1.11
to
1.1.12
+1
-1
browser_action.js

@@ -1,1 +0,1 @@

(()=>{"use strict";const e=globalThis;!function(){if(e.browser)return e.browser;if(!e.chrome)return;const t=e.chrome,n=Object.create(null);n.runtime=t.runtime,n.tabs={},t.tabs&&(n.tabs.query=e=>new Promise((n,o)=>{try{t.tabs.query(e,e=>n(e))}catch(e){o(e)}}),n.tabs.sendMessage=(e,n)=>new Promise((o,c)=>{try{t.tabs.sendMessage(e,n,e=>o(e))}catch(e){c(e)}}),t.tabs.executeScript&&(n.tabs.executeScript=(e,n)=>new Promise((o,c)=>{try{t.tabs.executeScript(e,n,e=>o(e))}catch(e){c(e)}}))),n.storage={},t.storage&&t.storage.local&&(n.storage.local={get:e=>new Promise((n,o)=>{try{t.storage.local.get(e,e=>{const c=t.runtime&&t.runtime.lastError;if(c)return o(c);n(e)})}catch(e){o(e)}}),set:e=>new Promise((n,o)=>{try{t.storage.local.set(e,()=>{const e=t.runtime&&t.runtime.lastError;if(e)return o(e);n()})}catch(e){o(e)}}),remove:e=>new Promise((n,o)=>{try{t.storage.local.remove(e,()=>{const e=t.runtime&&t.runtime.lastError;if(e)return o(e);n()})}catch(e){o(e)}})}),e.browser=n}();const t=async e=>{try{if("function"==typeof browser.tabs.query){const t=await browser.tabs.query({active:!0,currentWindow:!0}),n=t&&t.length?t[0]:null;if(n)try{browser.tabs.sendMessage(n.id,e)}catch(e){}}}catch(t){try{browser.tabs.query({active:!0,currentWindow:!0},t=>{const n=t[0];browser.tabs.sendMessage(n.id,e)})}catch(e){}}},n=async(e,t)=>{try{const n=browser.storage.local.set({[e]:t});n&&"function"==typeof n.then?await n.then(()=>console.debug(`zt: storage set success ${e}=${String(t)}`)).catch(e=>console.warn("zt: browser.storage.local.set error",e)):console.debug(`zt: storage set attempted (no promise): ${e}=${String(t)}`)}catch(e){console.warn("zt: storage set failed (fallback)",e)}},o={largeComments:!1,gamification:!1,emailAutocomplete:!1,draggableModals:!1,relationSuggestions:!1,darkMode:!1,stylefix:!1,gamificationAnimation:"random"};let c={...o};const a=document.getElementById("gamification-animation-select"),s=document.getElementById("comments-large-checkbox"),r=document.getElementById("comments-large-checkbox-value");r&&(r.textContent=c.largeComments?"On":"Off"),s?.addEventListener("change",e=>{const o=e.target.checked;r&&(r.textContent=o?"On":"Off"),n("largeComments",o),t({id:"large-comments",value:o?"On":"Off"})});const i=document.getElementById("gamification-checkbox"),l=document.getElementById("gamification-checkbox-value");l&&(l.textContent=c.gamification?"On":"Off"),i?.addEventListener("change",e=>{const o=e.target.checked;l&&(l.textContent=o?"On":"Off"),n("gamification",o),t({id:"gamification",value:o?"On":"Off"})}),a?.addEventListener("change",e=>{const o=e.target.value;n("gamificationAnimation",o),t({id:"gamification-animation",value:o})});const d=document.getElementById("email-autocomplete-checkbox"),g=document.getElementById("email-autocomplete-checkbox-value");g&&(g.textContent=c.emailAutocomplete?"On":"Off");const m=document.getElementById("darkmode-checkbox"),u=document.getElementById("darkmode-checkbox-value");u&&(u.textContent=c.darkMode?"On":"Off"),m?.addEventListener("change",async e=>{const t=e.target.checked;u&&(u.textContent=t?"On":"Off"),await n("darkMode",t);const o=await browser.tabs.query({});for(const e of o)try{await browser.tabs.sendMessage(e.id,{id:"dark-mode",value:t?"On":"Off"})}catch(e){}});const f=document.getElementById("stylefix-checkbox"),b=document.getElementById("stylefix-checkbox-value");b&&(b.textContent=c.stylefix?"On":"Off"),f?.addEventListener("change",async e=>{const t=e.target.checked;b&&(b.textContent=t?"On":"Off"),await n("stylefix",t);const o=await browser.tabs.query({});for(const e of o)try{await browser.tabs.sendMessage(e.id,{id:"stylefix",value:t?"On":"Off"})}catch(e){}}),d?.addEventListener("change",e=>{const o=e.target.checked;g&&(g.textContent=o?"On":"Off"),n("emailAutocomplete",o),t({id:"email-autocomplete",value:o?"On":"Off"})});const h=document.getElementById("relation-suggestions-checkbox"),y=document.getElementById("relation-suggestions-checkbox-value");y&&(y.textContent=c.relationSuggestions?"On":"Off"),h?.addEventListener("change",e=>{const o=e.target.checked;y&&(y.textContent=o?"On":"Off"),n("relationSuggestions",o),t({id:"relation-suggestions",value:o?"On":"Off"})});const x=document.getElementById("draggable-modals-checkbox");if(x){const e=document.getElementById("draggable-modals-checkbox-value"),t=!!c.draggableModals;e&&(e.textContent=t?"On":"Off"),x.addEventListener("change",async()=>{const t=x.checked;e&&(e.textContent=t?"On":"Off"),await n("draggableModals",t);const o=await browser.tabs.query({});for(const e of o)try{await browser.tabs.sendMessage(e.id,{id:"draggable-modals",value:t?"On":"Off"})}catch(e){}})}const O=document.getElementById("clear-cache-button");let k=!1,w=null;O&&O.addEventListener("click",async()=>{if(!k)return k=!0,O.textContent="Nochmal klicken um Cache zu löschen",O.classList.add("confirm"),void(w=setTimeout(()=>{k=!1,O.textContent="Cache löschen",O.classList.remove("confirm"),w=null},5e3));k=!1,O.classList.remove("confirm"),w&&(w=clearTimeout(w)),t({id:"clear-cache",value:"request"});try{const e=await browser.tabs.query({active:!0,currentWindow:!0}),t=e&&e.length?e[0]:null;if(t&&browser.tabs&&browser.tabs.executeScript)try{browser.tabs.executeScript(t.id,{file:"clear-cache.js"})}catch(e){}}catch(e){}window.close()}),async function(){try{const e=await browser.storage.local.get(o);if(c={...o,...e||{}},s&&(s.checked=!!c.largeComments,s.toggleAttribute("checked",!!c.largeComments)),r&&(r.textContent=c.largeComments?"On":"Off"),i&&(i.checked=!!c.gamification,i.toggleAttribute("checked",!!c.gamification)),l&&(l.textContent=c.gamification?"On":"Off"),d&&(d.checked=!!c.emailAutocomplete,d.toggleAttribute("checked",!!c.emailAutocomplete)),g&&(g.textContent=c.emailAutocomplete?"On":"Off"),x){const e=!!c.draggableModals;x.checked=e;const t=document.getElementById("draggable-modals-checkbox-value");t&&(t.textContent=e?"On":"Off")}m&&(m.checked=!!c.darkMode,m.toggleAttribute("checked",!!c.darkMode)),u&&(u.textContent=c.darkMode?"On":"Off");const t=document.getElementById("stylefix-checkbox"),n=document.getElementById("stylefix-checkbox-value");t&&(t.checked=!!c.stylefix,t.toggleAttribute("checked",!!c.stylefix)),n&&(n.textContent=c.stylefix?"On":"Off"),h&&(h.checked=!!c.relationSuggestions,h.toggleAttribute("checked",!!c.relationSuggestions)),y&&(y.textContent=c.relationSuggestions?"On":"Off");try{const t=e&&e.gamificationAnimation||"random";a&&(a.value=t)}catch(e){}}catch(e){console.warn("zt: initPopupSettings error",e)}}(),(()=>{const e=document.getElementById("popup-version-value");if(e)try{const t=browser.runtime.getManifest();e.textContent=t.version??"N/A"}catch(t){e.textContent="unknown"}})()})();
(()=>{"use strict";const e=globalThis;!function(){if(e.browser)return e.browser;if(!e.chrome)return;const t=e.chrome,n=Object.create(null);n.runtime=t.runtime,n.tabs={},t.tabs&&(n.tabs.query=e=>new Promise((n,o)=>{try{t.tabs.query(e,e=>n(e))}catch(e){o(e)}}),n.tabs.sendMessage=(e,n)=>new Promise((o,c)=>{try{t.tabs.sendMessage(e,n,e=>o(e))}catch(e){c(e)}}),t.tabs.executeScript&&(n.tabs.executeScript=(e,n)=>new Promise((o,c)=>{try{t.tabs.executeScript(e,n,e=>o(e))}catch(e){c(e)}}))),n.storage={},t.storage&&t.storage.local&&(n.storage.local={get:e=>new Promise((n,o)=>{try{t.storage.local.get(e,e=>{const c=t.runtime&&t.runtime.lastError;if(c)return o(c);n(e)})}catch(e){o(e)}}),set:e=>new Promise((n,o)=>{try{t.storage.local.set(e,()=>{const e=t.runtime&&t.runtime.lastError;if(e)return o(e);n()})}catch(e){o(e)}}),remove:e=>new Promise((n,o)=>{try{t.storage.local.remove(e,()=>{const e=t.runtime&&t.runtime.lastError;if(e)return o(e);n()})}catch(e){o(e)}})}),e.browser=n}();const t=async e=>{try{if("function"==typeof browser.tabs.query){const t=await browser.tabs.query({active:!0,currentWindow:!0}),n=t&&t.length?t[0]:null;if(n)try{browser.tabs.sendMessage(n.id,e)}catch(e){}}}catch(t){try{browser.tabs.query({active:!0,currentWindow:!0},t=>{const n=t[0];browser.tabs.sendMessage(n.id,e)})}catch(e){}}},n=async(e,t)=>{try{const n=browser.storage.local.set({[e]:t});n&&"function"==typeof n.then?await n.then(()=>console.debug(`zt: storage set success ${e}=${String(t)}`)).catch(e=>console.warn("zt: browser.storage.local.set error",e)):console.debug(`zt: storage set attempted (no promise): ${e}=${String(t)}`)}catch(e){console.warn("zt: storage set failed (fallback)",e)}},o=["https://team.m2-loesung.de/*","https://team-staging.m2-loesung.de/*"],c={largeComments:!1,gamification:!1,emailAutocomplete:!1,draggableModals:!1,relationSuggestions:!1,darkMode:!1,stylefix:!1,gamificationAnimation:"random"};let a={...c};const s=document.getElementById("gamification-animation-select"),r=document.getElementById("comments-large-checkbox"),i=document.getElementById("comments-large-checkbox-value");i&&(i.textContent=a.largeComments?"On":"Off"),r?.addEventListener("change",e=>{const o=e.target.checked;i&&(i.textContent=o?"On":"Off"),n("largeComments",o),t({id:"large-comments",value:o?"On":"Off"})});const l=document.getElementById("gamification-checkbox"),d=document.getElementById("gamification-checkbox-value");d&&(d.textContent=a.gamification?"On":"Off"),l?.addEventListener("change",e=>{const o=e.target.checked;d&&(d.textContent=o?"On":"Off"),n("gamification",o),t({id:"gamification",value:o?"On":"Off"})}),s?.addEventListener("change",e=>{const o=e.target.value;n("gamificationAnimation",o),t({id:"gamification-animation",value:o})});const g=document.getElementById("email-autocomplete-checkbox"),m=document.getElementById("email-autocomplete-checkbox-value");m&&(m.textContent=a.emailAutocomplete?"On":"Off");const u=document.getElementById("darkmode-checkbox"),f=document.getElementById("darkmode-checkbox-value");f&&(f.textContent=a.darkMode?"On":"Off"),u?.addEventListener("change",async e=>{const t=e.target.checked;f&&(f.textContent=t?"On":"Off"),await n("darkMode",t);try{const e=await browser.tabs.query({url:o});for(const n of e)try{browser.tabs.sendMessage(n.id,{id:"dark-mode",value:t?"On":"Off"}).catch(()=>{})}catch(e){}}catch(e){}});const h=document.getElementById("stylefix-checkbox"),b=document.getElementById("stylefix-checkbox-value");b&&(b.textContent=a.stylefix?"On":"Off"),h?.addEventListener("change",async e=>{const t=e.target.checked;b&&(b.textContent=t?"On":"Off"),await n("stylefix",t);try{const e=await browser.tabs.query({url:o});for(const n of e)try{browser.tabs.sendMessage(n.id,{id:"stylefix",value:t?"On":"Off"}).catch(()=>{})}catch(e){}}catch(e){}}),g?.addEventListener("change",e=>{const o=e.target.checked;m&&(m.textContent=o?"On":"Off"),n("emailAutocomplete",o),t({id:"email-autocomplete",value:o?"On":"Off"})});const y=document.getElementById("relation-suggestions-checkbox"),x=document.getElementById("relation-suggestions-checkbox-value");x&&(x.textContent=a.relationSuggestions?"On":"Off"),y?.addEventListener("change",e=>{const o=e.target.checked;x&&(x.textContent=o?"On":"Off"),n("relationSuggestions",o),t({id:"relation-suggestions",value:o?"On":"Off"})});const O=document.getElementById("draggable-modals-checkbox");if(O){const e=document.getElementById("draggable-modals-checkbox-value"),t=!!a.draggableModals;e&&(e.textContent=t?"On":"Off"),O.addEventListener("change",async()=>{const t=O.checked;e&&(e.textContent=t?"On":"Off"),await n("draggableModals",t);try{const e=await browser.tabs.query({url:o});for(const n of e)try{browser.tabs.sendMessage(n.id,{id:"draggable-modals",value:t?"On":"Off"}).catch(()=>{})}catch(e){}}catch(e){}})}const k=document.getElementById("clear-cache-button");let w=!1,v=null;k&&k.addEventListener("click",async()=>{if(!w)return w=!0,k.textContent="Nochmal klicken um Cache zu löschen",k.classList.add("confirm"),void(v=setTimeout(()=>{w=!1,k.textContent="Cache löschen",k.classList.remove("confirm"),v=null},5e3));w=!1,k.classList.remove("confirm"),v&&(v=clearTimeout(v)),t({id:"clear-cache",value:"request"});try{const e=await browser.tabs.query({active:!0,currentWindow:!0}),t=e&&e.length?e[0]:null;if(t&&browser.tabs&&browser.tabs.executeScript)try{browser.tabs.executeScript(t.id,{file:"clear-cache.js"})}catch(e){}}catch(e){}window.close()}),async function(){try{const e=await browser.storage.local.get(c);if(a={...c,...e||{}},r&&(r.checked=!!a.largeComments,r.toggleAttribute("checked",!!a.largeComments)),i&&(i.textContent=a.largeComments?"On":"Off"),l&&(l.checked=!!a.gamification,l.toggleAttribute("checked",!!a.gamification)),d&&(d.textContent=a.gamification?"On":"Off"),g&&(g.checked=!!a.emailAutocomplete,g.toggleAttribute("checked",!!a.emailAutocomplete)),m&&(m.textContent=a.emailAutocomplete?"On":"Off"),O){const e=!!a.draggableModals;O.checked=e;const t=document.getElementById("draggable-modals-checkbox-value");t&&(t.textContent=e?"On":"Off")}u&&(u.checked=!!a.darkMode,u.toggleAttribute("checked",!!a.darkMode)),f&&(f.textContent=a.darkMode?"On":"Off");const t=document.getElementById("stylefix-checkbox"),n=document.getElementById("stylefix-checkbox-value");t&&(t.checked=!!a.stylefix,t.toggleAttribute("checked",!!a.stylefix)),n&&(n.textContent=a.stylefix?"On":"Off"),y&&(y.checked=!!a.relationSuggestions,y.toggleAttribute("checked",!!a.relationSuggestions)),x&&(x.textContent=a.relationSuggestions?"On":"Off");try{const t=e&&e.gamificationAnimation||"random";s&&(s.value=t)}catch(e){}}catch(e){console.warn("zt: initPopupSettings error",e)}}(),(()=>{const e=document.getElementById("popup-version-value");if(e)try{const t=browser.runtime.getManifest();e.textContent=t.version??"N/A"}catch(t){e.textContent="unknown"}})()})();
{
"manifest_version": 3,
"name": "Zaubertool Add-On",
"version": "1.1.11",
"version": "1.1.12",
"description": "Add-On für das M2-Zaubertool",

@@ -6,0 +6,0 @@ "icons": {

{
"manifest_version": 3,
"name": "Zaubertool Add-On",
"version": "1.1.11",
"version": "1.1.12",
"description": "Add-On für das M2-Zaubertool",

@@ -6,0 +6,0 @@ "icons": {

{
"manifest_version": 3,
"name": "Zaubertool Add-On",
"version": "1.1.11",
"version": "1.1.12",
"description": "Add-On f\u00fcr das M2-Zaubertool",

@@ -6,0 +6,0 @@ "icons": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet