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.12
to
1.2.0
+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=["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"}})()})();
(()=>{"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,c)=>{try{t.tabs.query(e,e=>n(e))}catch(e){c(e)}}),n.tabs.sendMessage=(e,n)=>new Promise((c,o)=>{try{t.tabs.sendMessage(e,n,e=>c(e))}catch(e){o(e)}}),t.tabs.executeScript&&(n.tabs.executeScript=(e,n)=>new Promise((c,o)=>{try{t.tabs.executeScript(e,n,e=>c(e))}catch(e){o(e)}}))),n.storage={},t.storage&&t.storage.local&&(n.storage.local={get:e=>new Promise((n,c)=>{try{t.storage.local.get(e,e=>{const o=t.runtime&&t.runtime.lastError;if(o)return c(o);n(e)})}catch(e){c(e)}}),set:e=>new Promise((n,c)=>{try{t.storage.local.set(e,()=>{const e=t.runtime&&t.runtime.lastError;if(e)return c(e);n()})}catch(e){c(e)}}),remove:e=>new Promise((n,c)=>{try{t.storage.local.remove(e,()=>{const e=t.runtime&&t.runtime.lastError;if(e)return c(e);n()})}catch(e){c(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)}},c=["https://team.m2-loesung.de/*","https://team-staging.m2-loesung.de/*"],o={largeComments:!1,gamification:!1,emailAutocomplete:!1,draggableModals:!1,relationSuggestions:!1,darkMode:!1,stylefix:!1,copyCaseButton:!0,gamificationAnimation:"random"};let a={...o};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 c=e.target.checked;i&&(i.textContent=c?"On":"Off"),n("largeComments",c),t({id:"large-comments",value:c?"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 c=e.target.checked;d&&(d.textContent=c?"On":"Off"),n("gamification",c),t({id:"gamification",value:c?"On":"Off"})}),s?.addEventListener("change",e=>{const c=e.target.value;n("gamificationAnimation",c),t({id:"gamification-animation",value:c})});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("copy-case-checkbox"),f=document.getElementById("copy-case-checkbox-value");f&&(f.textContent=a.copyCaseButton?"On":"Off"),u?.addEventListener("change",async e=>{const t=e.target.checked;f&&(f.textContent=t?"On":"Off"),await n("copyCaseButton",t);try{const e=await browser.tabs.query({url:c});for(const n of e)try{browser.tabs.sendMessage(n.id,{id:"copy-case-button",value:t?"On":"Off"}).catch(()=>{})}catch(e){}}catch(e){}});const h=document.getElementById("darkmode-checkbox"),b=document.getElementById("darkmode-checkbox-value");b&&(b.textContent=a.darkMode?"On":"Off"),h?.addEventListener("change",async e=>{const t=e.target.checked;b&&(b.textContent=t?"On":"Off"),await n("darkMode",t);try{const e=await browser.tabs.query({url:c});for(const n of e)try{browser.tabs.sendMessage(n.id,{id:"dark-mode",value:t?"On":"Off"}).catch(()=>{})}catch(e){}}catch(e){}});const y=document.getElementById("stylefix-checkbox"),O=document.getElementById("stylefix-checkbox-value");O&&(O.textContent=a.stylefix?"On":"Off"),y?.addEventListener("change",async e=>{const t=e.target.checked;O&&(O.textContent=t?"On":"Off"),await n("stylefix",t);try{const e=await browser.tabs.query({url:c});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 c=e.target.checked;m&&(m.textContent=c?"On":"Off"),n("emailAutocomplete",c),t({id:"email-autocomplete",value:c?"On":"Off"})});const x=document.getElementById("relation-suggestions-checkbox"),k=document.getElementById("relation-suggestions-checkbox-value");k&&(k.textContent=a.relationSuggestions?"On":"Off"),x?.addEventListener("change",e=>{const c=e.target.checked;k&&(k.textContent=c?"On":"Off"),n("relationSuggestions",c),t({id:"relation-suggestions",value:c?"On":"Off"})});const w=document.getElementById("draggable-modals-checkbox");if(w){const e=document.getElementById("draggable-modals-checkbox-value"),t=!!a.draggableModals;e&&(e.textContent=t?"On":"Off"),w.addEventListener("change",async()=>{const t=w.checked;e&&(e.textContent=t?"On":"Off"),await n("draggableModals",t);try{const e=await browser.tabs.query({url:c});for(const n of e)try{browser.tabs.sendMessage(n.id,{id:"draggable-modals",value:t?"On":"Off"}).catch(()=>{})}catch(e){}}catch(e){}})}const v=document.getElementById("clear-cache-button");let C=!1,E=null;v&&v.addEventListener("click",async()=>{if(!C)return C=!0,v.textContent="Nochmal klicken um Cache zu löschen",v.classList.add("confirm"),void(E=setTimeout(()=>{C=!1,v.textContent="Cache löschen",v.classList.remove("confirm"),E=null},5e3));C=!1,v.classList.remove("confirm"),E&&(E=clearTimeout(E)),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(a={...o,...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"),u&&(u.checked=!!a.copyCaseButton,u.toggleAttribute("checked",!!a.copyCaseButton)),f&&(f.textContent=a.copyCaseButton?"On":"Off"),w){const e=!!a.draggableModals;w.checked=e;const t=document.getElementById("draggable-modals-checkbox-value");t&&(t.textContent=e?"On":"Off")}h&&(h.checked=!!a.darkMode,h.toggleAttribute("checked",!!a.darkMode)),b&&(b.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"),x&&(x.checked=!!a.relationSuggestions,x.toggleAttribute("checked",!!a.relationSuggestions)),k&&(k.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.12",
"version": "1.2.0",
"description": "Add-On für das M2-Zaubertool",

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

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

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

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

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

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

<!DOCTYPE html>
<!doctype html>
<html>

@@ -69,2 +69,13 @@ <head>

<div class="control-group">
<label for="copy-case-checkbox" class="switch-label">
<span class="label-text">Kopier-Button anzeigen</span>
<span class="switch-area">
<span id="copy-case-checkbox-value"></span>
<input type="checkbox" id="copy-case-checkbox" name="copy-case-checkbox" />
<span class="switch-style" id="copy-case-checkbox-style"></span>
</span>
</label>
</div>
<div class="control-group">
<label for="gamification-checkbox" class="switch-label">

@@ -71,0 +82,0 @@ <span class="label-text">Feiern</span>

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