diff --git a/plugins/plugins/not-actual-fullscreen/dist/index.js b/plugins/plugins/not-actual-fullscreen/dist/index.js index cdc94fa..a460703 100644 --- a/plugins/plugins/not-actual-fullscreen/dist/index.js +++ b/plugins/plugins/not-actual-fullscreen/dist/index.js @@ -1,4 +1,4 @@ -var h=Object.defineProperty;var N=Object.getOwnPropertyDescriptor;var A=Object.getOwnPropertyNames;var R=Object.prototype.hasOwnProperty;var k=(t,e)=>()=>(t&&(e=t(t=0)),e);var B=(t,e)=>{for(var s in e)h(t,s,{get:e[s],enumerable:!0})},O=(t,e,s,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of A(e))!R.call(t,n)&&n!==s&&h(t,n,{get:()=>e[n],enumerable:!(a=N(e,n))||a.enumerable});return t};var P=t=>O(h({},"__esModule",{value:!0}),t);var v={};B(v,{Tracer:()=>f,libTrace:()=>_});import{actions as C}from"@neptune";var f,_,b=k(()=>{"use strict";f=t=>{let e=i=>{let l=(...c)=>{i(t,...c)};return l.withContext=c=>(...p)=>{i(t,c,...p)},l},s=e(console.log),a=e(console.warn),n=e(console.error),r=e(console.debug),o=(i,l,c)=>{let p=m=>{i(m),l({message:`${t} - ${m}`,category:"OTHER",severity:c})};return p.withContext=m=>{let I=i.withContext(m);return d=>{I(d),d instanceof Error&&(d=d.message),l({message:`${t}.${m} - ${d}`,category:"OTHER",severity:c})}},p};return{log:s,warn:a,err:n,debug:r,msg:{log:o(s,C.message.messageInfo,"INFO"),warn:o(a,C.message.messageWarn,"WARN"),err:o(n,C.message.messageError,"ERROR")}}},_=f("[lib]")});b();var L=[];function w(t,e,s=1){let a=document.querySelector('[class*="moreContainer"'),n=document.createElement("button");n.style.width="32px",n.style.height="32px",n.style.border="none",n.classList.add("xcl_customButton");let r=document.createElement("img");r.src=e,r.style.width="100%",r.style.height="100%",n.onclick=t,n.appendChild(r);let o=Array.from(a.children);return s<=o.length?a.insertBefore(n,o[s-1]):a.appendChild(n),L.push(n),n}import{intercept as D}from"@neptune";b();var M=f("[Clean View]"),U=` +var h=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var B=Object.prototype.hasOwnProperty;var O=(e,t)=>()=>(e&&(t=e(e=0)),t);var P=(e,t)=>{for(var s in t)h(e,s,{get:t[s],enumerable:!0})},_=(e,t,s,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of k(t))!B.call(e,n)&&n!==s&&h(e,n,{get:()=>t[n],enumerable:!(a=R(t,n))||a.enumerable});return e};var L=e=>_(h({},"__esModule",{value:!0}),e);var v={};P(v,{Tracer:()=>f,libTrace:()=>q});import{actions as C}from"@neptune";var f,q,b=O(()=>{"use strict";f=e=>{let t=i=>{let l=(...c)=>{i(e,...c)};return l.withContext=c=>(...p)=>{i(e,c,...p)},l},s=t(console.log),a=t(console.warn),n=t(console.error),r=t(console.debug),o=(i,l,c)=>{let p=m=>{i(m),l({message:`${e} - ${m}`,category:"OTHER",severity:c})};return p.withContext=m=>{let A=i.withContext(m);return u=>{A(u),u instanceof Error&&(u=u.message),l({message:`${e}.${m} - ${u}`,category:"OTHER",severity:c})}},p};return{log:s,warn:a,err:n,debug:r,msg:{log:o(s,C.message.messageInfo,"INFO"),warn:o(a,C.message.messageWarn,"WARN"),err:o(n,C.message.messageError,"ERROR")}}},q=f("[lib]")});b();var w=[];function T(e,t,s=1){let a=document.querySelector('[class*="moreContainer"'),n=document.createElement("button");n.style.width="32px",n.style.height="32px",n.style.border="none",n.classList.add("xcl_customButton");let r=document.createElement("img");r.src=t,r.style.width="100%",r.style.height="100%",n.onclick=e,n.appendChild(r);let o=Array.from(a.children);return s<=o.length?a.insertBefore(n,o[s-1]):a.appendChild(n),w.push(n),n}function S(){Array.from(w).forEach(e=>{e.remove()}),Array.from(document.getElementsByClassName("xcl_customButton")).forEach(e=>{e.remove()})}import{intercept as M}from"@neptune";b();var U=f("[Clean View]"),$=` [data-test="footer-player"], [class*="tabItems"] { opacity: 0 !important; transition: opacity 0.3s ease-in-out; @@ -20,9 +20,9 @@ var h=Object.defineProperty;var N=Object.getOwnPropertyDescriptor;var A=Object.g [class*="nowPlayingContainer"] { padding-left: 6%; } -`;function S(t){let e=document.createElement("style");return e.type="text/css",e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t)),document.head.appendChild(e),e}async function $(t){try{let e=await fetch(t);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);return await e.text()}catch(e){return M.msg.err(`Failed to fetch URL: ${e.message}`),null}}var E=!1,x,X=w(()=>{E?x&&x.remove():x=S(U),E=!E},"https://cdn.discordapp.com/attachments/1286571643807731783/1344515636675612712/image.png?ex=67c13143&is=67bfdfc3&hm=1573e29efdf882292922736e5ae2df6a87b7ad316add6fc498eee8ce799fb8e4&",2),F="https://raw.githubusercontent.com/itzzexcel/neptune-projects/refs/heads/main/plugins/plugins/not-actual-fullscreen/src/separated-lyrics.css",T,u;(async()=>(T=await $(F),u=S(T)))();function y(){let t=document.querySelector('[class^="trackTitleContainer"]');t&&t.addEventListener("DOMSubtreeModified",()=>{setTimeout(()=>{g()},300)})}var g=function(t=0){t===1&&setTimeout(()=>{g()},2e3);let e=document.querySelector('figure[class*="albumImage"] > div > div > div > img'),s;e&&(s=e.src,s=s.replace(/\d+x\d+/,"1280x1280"),e.src=s);let a=document.querySelector('[class*="nowPlayingContainer"]');if(a&&s){a.querySelectorAll(".corner-image").forEach(i=>i.remove());let r=document.createElement("img");r.src=s,r.className="corner-image",r.style.position="absolute",r.style.left="50%",r.style.top="50%",r.style.transform="translate(-50%, -50%)",r.style.width="75vw",r.style.height="150vh",r.style.objectFit="cover",r.style.zIndex="-1",r.style.filter="blur(100px) brightness(0.6) contrast(1.2) saturate(1)",r.style.animation="spin 35s linear infinite",a.appendChild(r);let o=document.createElement("img");if(o.src=s,o.className="corner-image",o.style.position="absolute",o.style.left="50%",o.style.top="50%",o.style.transform="translate(-50%, -50%)",o.style.width="75vw",o.style.height="150vh",o.style.objectFit="cover",o.style.zIndex="-1",o.style.filter="blur(100px) brightness(0.6) contrast(1.2) saturate(1)",o.style.animation="spin 35s linear infinite",a.appendChild(o),!document.querySelector("#spinAnimation")){let i=document.createElement("style");i.id="spinAnimation",i.textContent=` +`;function N(e){let t=document.createElement("style");return t.type="text/css",t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)),document.head.appendChild(t),t}async function F(e){try{let t=await fetch(e);if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return await t.text()}catch(t){return U.msg.err(`Failed to fetch URL: ${t.message}`),null}}var E=!1,x,Z=T(()=>{E?x&&x.remove():x=N($),E=!E},"https://cdn.discordapp.com/attachments/1286571643807731783/1344515636675612712/image.png?ex=67c13143&is=67bfdfc3&hm=1573e29efdf882292922736e5ae2df6a87b7ad316add6fc498eee8ce799fb8e4&",2),H="https://raw.githubusercontent.com/itzzexcel/neptune-projects/refs/heads/main/plugins/plugins/not-actual-fullscreen/src/separated-lyrics.css",I,d;(async()=>(I=await F(H),d=N(I)))();function y(){let e=document.querySelector('[class^="trackTitleContainer"]');e&&e.addEventListener("DOMSubtreeModified",()=>{setTimeout(()=>{g()},300)})}var g=function(e=0){e===1&&setTimeout(()=>{g()},2e3);let t=document.querySelector('figure[class*="albumImage"] > div > div > div > img'),s;t&&(s=t.src,s=s.replace(/\d+x\d+/,"1280x1280"),t.src=s);let a=document.querySelector('[class*="nowPlayingContainer"]');if(a&&s){a.querySelectorAll(".corner-image").forEach(i=>i.remove());let r=document.createElement("img");r.src=s,r.className="corner-image",r.style.position="absolute",r.style.left="50%",r.style.top="50%",r.style.transform="translate(-50%, -50%)",r.style.width="75vw",r.style.height="150vh",r.style.objectFit="cover",r.style.zIndex="-1",r.style.filter="blur(100px) brightness(0.6) contrast(1.2) saturate(1)",r.style.animation="spin 35s linear infinite",a.appendChild(r);let o=document.createElement("img");if(o.src=s,o.className="corner-image",o.style.position="absolute",o.style.left="50%",o.style.top="50%",o.style.transform="translate(-50%, -50%)",o.style.width="75vw",o.style.height="150vh",o.style.objectFit="cover",o.style.zIndex="-1",o.style.filter="blur(100px) brightness(0.6) contrast(1.2) saturate(1)",o.style.animation="spin 35s linear infinite",a.appendChild(o),!document.querySelector("#spinAnimation")){let i=document.createElement("style");i.id="spinAnimation",i.textContent=` @keyframes spin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } } - `,document.head.appendChild(i)}}},H=function(){[...document.getElementsByClassName("corner-image")].forEach(t=>{t.remove()})},z=["playbackControls/PREFILL_MEDIA_PRODUCT_TRANSITION","playbackControls/MEDIA_PRODUCT_TRANSITION"],j=z.map(t=>D(t,()=>{g(1)}));y();y();y();y();function V(){u&&u.parentNode&&u.parentNode.removeChild(u)}function Z(){V(),j.forEach(e=>e()),H();let t=document.querySelector('div[class^="trackTitleContainer"]');t&&t.removeEventListener("DOMSubtreeModified",g)}export{Z as onUnload}; + `,document.head.appendChild(i)}}},z=function(){[...document.getElementsByClassName("corner-image")].forEach(e=>{e.remove()})},j=["playbackControls/PREFILL_MEDIA_PRODUCT_TRANSITION","playbackControls/MEDIA_PRODUCT_TRANSITION"],V=j.map(e=>M(e,()=>{g(1)}));y();y();y();y();function W(){d&&d.parentNode&&d.parentNode.removeChild(d)}function ee(){W(),S(),V.forEach(t=>t()),z();let e=document.querySelector('div[class^="trackTitleContainer"]');e&&e.removeEventListener("DOMSubtreeModified",g)}export{ee as onUnload}; diff --git a/plugins/plugins/not-actual-fullscreen/dist/manifest.json b/plugins/plugins/not-actual-fullscreen/dist/manifest.json index e46252c..4789f5a 100644 --- a/plugins/plugins/not-actual-fullscreen/dist/manifest.json +++ b/plugins/plugins/not-actual-fullscreen/dist/manifest.json @@ -1 +1 @@ -{"name":"Clean View","description":"Make your \"Now Playing View\" clean wherever you want, heavily based in beautiful-lyrics from @surfbryce!.","author":"itzzexcel@github","hash":"e61094c07c4f0fe44f63885dc6a0d472","metafile":{"inputs":{"plugins/not-actual-fullscreen/src/tracer.js":{"bytes":1596,"imports":[{"path":"@neptune","kind":"import-statement","external":true}],"format":"esm"},"plugins/not-actual-fullscreen/src/ui.js":{"bytes":1170,"imports":[],"format":"esm"},"plugins/not-actual-fullscreen/src/index.js":{"bytes":6781,"imports":[{"path":"plugins/not-actual-fullscreen/src/tracer.js","kind":"import-statement","original":"./tracer"},{"path":"plugins/not-actual-fullscreen/src/ui.js","kind":"import-statement","original":"./ui"},{"path":"@neptune","kind":"import-statement","external":true},{"path":"plugins/not-actual-fullscreen/src/tracer.js","kind":"require-call","original":"./tracer"}],"format":"esm"}},"outputs":{"plugins/not-actual-fullscreen/dist/index.js":{"imports":[{"path":"@neptune","kind":"import-statement","external":true},{"path":"@neptune","kind":"import-statement","external":true}],"exports":["onUnload"],"entryPoint":"plugins/not-actual-fullscreen/src/index.js","inputs":{"plugins/not-actual-fullscreen/src/tracer.js":{"bytesInOutput":693},"plugins/not-actual-fullscreen/src/index.js":{"bytesInOutput":3373},"plugins/not-actual-fullscreen/src/ui.js":{"bytesInOutput":439}},"bytes":4975}}}} \ No newline at end of file +{"name":"Clean View","description":"Make your \"Now Playing View\" clean wherever you want, heavily based in beautiful-lyrics from @surfbryce!.","author":"itzzexcel@github","hash":"4ef4f15b496a20bce12c1b730ff06af1","metafile":{"inputs":{"plugins/not-actual-fullscreen/src/tracer.js":{"bytes":1596,"imports":[{"path":"@neptune","kind":"import-statement","external":true}],"format":"esm"},"plugins/not-actual-fullscreen/src/ui.js":{"bytes":1170,"imports":[],"format":"esm"},"plugins/not-actual-fullscreen/src/index.js":{"bytes":6807,"imports":[{"path":"plugins/not-actual-fullscreen/src/tracer.js","kind":"import-statement","original":"./tracer"},{"path":"plugins/not-actual-fullscreen/src/ui.js","kind":"import-statement","original":"./ui"},{"path":"@neptune","kind":"import-statement","external":true},{"path":"plugins/not-actual-fullscreen/src/tracer.js","kind":"require-call","original":"./tracer"}],"format":"esm"}},"outputs":{"plugins/not-actual-fullscreen/dist/index.js":{"imports":[{"path":"@neptune","kind":"import-statement","external":true},{"path":"@neptune","kind":"import-statement","external":true}],"exports":["onUnload"],"entryPoint":"plugins/not-actual-fullscreen/src/index.js","inputs":{"plugins/not-actual-fullscreen/src/tracer.js":{"bytesInOutput":693},"plugins/not-actual-fullscreen/src/index.js":{"bytesInOutput":3378},"plugins/not-actual-fullscreen/src/ui.js":{"bytesInOutput":580}},"bytes":5122}}}} \ No newline at end of file diff --git a/plugins/plugins/not-actual-fullscreen/src/index.js b/plugins/plugins/not-actual-fullscreen/src/index.js index b3ccb7e..a4fb7f7 100644 --- a/plugins/plugins/not-actual-fullscreen/src/index.js +++ b/plugins/plugins/not-actual-fullscreen/src/index.js @@ -196,6 +196,7 @@ function CleanUpCSS() { export function onUnload() { CleanUpCSS(); + ui.CleanupButtons(); unsubscribeFunctions.forEach(unsubscribe => unsubscribe()); cleanUpDynamicArt();