diff --git a/plugins/plugins/not-actual-fullscreen/dist/index.js b/plugins/plugins/not-actual-fullscreen/dist/index.js index a5c06a1..17fa8c9 100644 --- a/plugins/plugins/not-actual-fullscreen/dist/index.js +++ b/plugins/plugins/not-actual-fullscreen/dist/index.js @@ -1,14 +1,14 @@ -var C=Object.defineProperty;var k=Object.getOwnPropertyDescriptor;var R=Object.getOwnPropertyNames;var B=Object.prototype.hasOwnProperty;var _=(e,t)=>()=>(e&&(t=e(e=0)),t);var O=(e,t)=>{for(var s in t)C(e,s,{get:t[s],enumerable:!0})},P=(e,t,s,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of R(t))!B.call(e,n)&&n!==s&&C(e,n,{get:()=>t[n],enumerable:!(a=k(t,n))||a.enumerable});return e};var L=e=>P(C({},"__esModule",{value:!0}),e);var v={};O(v,{Tracer:()=>g,libTrace:()=>q});import{actions as b}from"@neptune";var g,q,E=_(()=>{"use strict";g=e=>{let t=i=>{let m=(...l)=>{i(e,...l)};return m.withContext=l=>(...y)=>{i(e,l,...y)},m},s=t(console.log),a=t(console.warn),n=t(console.error),r=t(console.debug),o=(i,m,l)=>{let y=u=>{i(u),m({message:`${e} - ${u}`,category:"OTHER",severity:l})};return y.withContext=u=>{let A=i.withContext(u);return d=>{A(d),d instanceof Error&&(d=d.message),m({message:`${e}.${u} - ${d}`,category:"OTHER",severity:l})}},y};return{log:s,warn:a,err:n,debug:r,msg:{log:o(s,b.message.messageInfo,"INFO"),warn:o(a,b.message.messageWarn,"WARN"),err:o(n,b.message.messageError,"ERROR")}}},q=g("[lib]")});E();var T=[];function w(e,t,s=1){setTimeout(()=>{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),T.push(n),n},1e3)}function S(){Array.from(T).forEach(e=>{e.remove()}),Array.from(document.getElementsByClassName("xcl_customButton")).forEach(e=>{e.remove()})}import{intercept as M}from"@neptune";E();var U=g("[Clean View]"),$=` +var C=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var R=Object.prototype.hasOwnProperty;var B=(e,t)=>()=>(e&&(t=e(e=0)),t);var O=(e,t)=>{for(var s in t)C(e,s,{get:t[s],enumerable:!0})},P=(e,t,s,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of k(t))!R.call(e,n)&&n!==s&&C(e,n,{get:()=>t[n],enumerable:!(a=A(t,n))||a.enumerable});return e};var L=e=>P(C({},"__esModule",{value:!0}),e);var v={};O(v,{Tracer:()=>g,libTrace:()=>q});import{actions as b}from"@neptune";var g,q,E=B(()=>{"use strict";g=e=>{let t=i=>{let m=(...l)=>{i(e,...l)};return m.withContext=l=>(...y)=>{i(e,l,...y)},m},s=t(console.log),a=t(console.warn),n=t(console.error),r=t(console.debug),o=(i,m,l)=>{let y=u=>{i(u),m({message:`${e} - ${u}`,category:"OTHER",severity:l})};return y.withContext=u=>{let N=i.withContext(u);return d=>{N(d),d instanceof Error&&(d=d.message),m({message:`${e}.${u} - ${d}`,category:"OTHER",severity:l})}},y};return{log:s,warn:a,err:n,debug:r,msg:{log:o(s,b.message.messageInfo,"INFO"),warn:o(a,b.message.messageWarn,"WARN"),err:o(n,b.message.messageError,"ERROR")}}},q=g("[lib]")});E();var T=[];function w(e,t,s=1){setTimeout(()=>{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),T.push(n),n},1e3)}function S(){Array.from(T).forEach(e=>{e.remove()}),Array.from(document.getElementsByClassName("xcl_customButton")).forEach(e=>{e.remove()})}import{intercept as M}from"@neptune";E();var U=g("[Clean View]"),$=` [data-test="footer-player"], [class*="tabItems"] { opacity: 0 !important; transition: opacity 0.3s ease-in-out; } -[class*="imageContainer"] { +[class*="_imageContainer"] { margin-top: 140px; } -[data-test="footer-player"]:hover, [class*="tabItems"]:hover { +[data-test="footer-player"]:hover, [class*="_tabItems"]:hover { opacity: 1 !important; } @@ -17,20 +17,20 @@ var C=Object.defineProperty;var k=Object.getOwnPropertyDescriptor;var R=Object.g margin: -40px; } -[class*="nowPlayingContainer"] { +[class*="_nowPlayingContainer"] { padding-left: 6%; } -[class^="bar--"] { +[class^="_bar"] { background-color: transparent; } -[class^="bar--"]>* { +[class^="_bar"]>* { opacity: 0; } -`;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 x=!1,c,Z=w(()=>{x?c&&c.remove():c=N($),x=!x},"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,p;(async()=>(I=await F(H),p=N(I)))();function h(){let e=document.querySelector('[class^="trackTitleContainer"]');e&&e.addEventListener("DOMSubtreeModified",()=>{setTimeout(()=>{f()},300)})}var f=function(e=0){e===1&&setTimeout(()=>{f()},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=` +`;function _(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 x=!1,c,Z=w(()=>{x?c&&c.remove():c=_($),x=!x},"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,p;(async()=>(I=await F(H),p=_(I)))();function h(){let e=document.querySelector('[class^="_trackTitleContainer"]');e&&e.addEventListener("DOMSubtreeModified",()=>{setTimeout(()=>{f()},300)})}var f=function(e=0){e===1&&setTimeout(()=>{f()},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)}}},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,()=>{f(1)}));h();h();h();h();f(1);function W(){p&&p.parentNode&&p.parentNode.removeChild(p),c&&c.parentNode&&c.parentNode.removeChild(c)}function ee(){W(),S(),V.forEach(t=>t()),z();let e=document.querySelector('div[class^="trackTitleContainer"]');e&&e.removeEventListener("DOMSubtreeModified",f)}export{ee 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,()=>{f(1)}));h();h();h();h();f(1);function W(){p&&p.parentNode&&p.parentNode.removeChild(p),c&&c.parentNode&&c.parentNode.removeChild(c)}function ee(){W(),S(),V.forEach(t=>t()),z();let e=document.querySelector('div[class^="_trackTitleContainer"]');e&&e.removeEventListener("DOMSubtreeModified",f)}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 bff5572..95eeaef 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":"ae3bdec88031ad6c292d0fd8e93c142f","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":1306,"imports":[],"format":"esm"},"plugins/not-actual-fullscreen/src/index.js":{"bytes":7055,"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":3525},"plugins/not-actual-fullscreen/src/ui.js":{"bytesInOutput":603}},"bytes":5292}}}} \ 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":"84f9844a7413c40a679759813bb9a175","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":1306,"imports":[],"format":"esm"},"plugins/not-actual-fullscreen/src/index.js":{"bytes":7060,"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":3530},"plugins/not-actual-fullscreen/src/ui.js":{"bytesInOutput":603}},"bytes":5297}}}} \ 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 cd24696..204808c 100644 --- a/plugins/plugins/not-actual-fullscreen/src/index.js +++ b/plugins/plugins/not-actual-fullscreen/src/index.js @@ -11,11 +11,11 @@ const styles = ` transition: opacity 0.3s ease-in-out; } -[class*="imageContainer"] { +[class*="_imageContainer"] { margin-top: 140px; } -[data-test="footer-player"]:hover, [class*="tabItems"]:hover { +[data-test="footer-player"]:hover, [class*="_tabItems"]:hover { opacity: 1 !important; } @@ -24,15 +24,15 @@ const styles = ` margin: -40px; } -[class*="nowPlayingContainer"] { +[class*="_nowPlayingContainer"] { padding-left: 6%; } -[class^="bar--"] { +[class^="_bar"] { background-color: transparent; } -[class^="bar--"]>* { +[class^="_bar"]>* { opacity: 0; } `; @@ -88,7 +88,7 @@ var styleElement; function observeTrackTitle() { - const trackTitleElement = document.querySelector('[class^="trackTitleContainer"]'); + const trackTitleElement = document.querySelector('[class^="_trackTitleContainer"]'); if (trackTitleElement) { trackTitleElement.addEventListener('DOMSubtreeModified', () => { setTimeout(() => { @@ -110,7 +110,7 @@ const onTrackChanged = function (method = 0) { }, 2000); } - let albumImageElement = document.querySelector('figure[class*="albumImage"] > div > div > div > img'); + let albumImageElement = document.querySelector('figure[class*="_albumImage"] > div > div > div > img'); let albumImageSrc; if (albumImageElement) { @@ -122,7 +122,7 @@ const onTrackChanged = function (method = 0) { } // Setting background to the *="nowPlayingContainer" element - let nowPlayingContainerElement = document.querySelector('[class*="nowPlayingContainer"]'); + let nowPlayingContainerElement = document.querySelector('[class*="_nowPlayingContainer"]'); if (nowPlayingContainerElement && albumImageSrc) { // Remove existing corner images if they exist const existingImages = nowPlayingContainerElement.querySelectorAll('.corner-image'); @@ -214,7 +214,7 @@ export function onUnload() { unsubscribeFunctions.forEach(unsubscribe => unsubscribe()); cleanUpDynamicArt(); - const trackTitleElement = document.querySelector('div[class^="trackTitleContainer"]'); + const trackTitleElement = document.querySelector('div[class^="_trackTitleContainer"]'); if (trackTitleElement) { trackTitleElement.removeEventListener('DOMSubtreeModified', onTrackChanged); }