This commit is contained in:
ItzzExcel
2025-04-17 16:58:09 -06:00
parent 426473120a
commit 368a898f70
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ var C=Object.defineProperty;var k=Object.getOwnPropertyDescriptor;var R=Object.g
[class^="_bar"]>* {
opacity: 0;
}
`;function _(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 H(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 $.msg.err(`Failed to fetch URL: ${e.message}`),null}}var v=!1,l,Z=w(()=>{v?l&&l.remove():l=_(F),v=!v},"https://lexploits.top/favicon.ico",2),z="https://raw.githubusercontent.com/itzzexcel/neptune-projects/refs/heads/main/plugins/plugins/not-actual-fullscreen/src/separated-lyrics.css",I,p;(async()=>(I=await H(z),p=_(I)))();function h(){let t=document.querySelector('[class^="_trackTitleContainer"]');t&&t.addEventListener("DOMSubtreeModified",()=>{setTimeout(()=>{y()},300)})}var y=function(t=0){t===1&&setTimeout(()=>{y()},2e3);let e=document.querySelector('figure[class*="_albumImage"] > div > div > div > img'),n;e?(n=e.src,n=n.replace(/\d+x\d+/,"1280x1280"),e.src=n):(e=document.querySelector('figure[class*="_albumImage"] > div > div > div > video'))?(n=e.getAttribute("poster"),n=n.replace(/\d+x\d+/,"1280x1280"),e.src=n):(N(),console.log("Couldn't get album art"));let a=document.querySelector('[class*="_nowPlayingContainer"]');if(a&&n){a.querySelectorAll(".corner-image").forEach(i=>i.remove());let r=document.createElement("img");r.src=n,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",r.style.animationDelay="5s",a.appendChild(r);let o=document.createElement("img");if(o.src=n,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 _(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 H(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 $.msg.err(`Failed to fetch URL: ${e.message}`),null}}var v=!1,l,Z=w(()=>{v?l&&l.remove():l=_(F),v=!v},"https://lexploits.top/favicon.ico",2),z="https://raw.githubusercontent.com/itzzexcel/neptune-projects/refs/heads/main/plugins/plugins/not-actual-fullscreen/src/separated-lyrics.css",I,p;(async()=>(I=await H(z),p=_(I)))();function h(){let t=document.querySelector('[class^="_trackTitleContainer"]');t&&t.addEventListener("DOMSubtreeModified",()=>{setTimeout(()=>{y()},300)})}var y=function(t=0){t===1&&setTimeout(()=>{y()},2e3);let e=document.querySelector('figure[class*="_albumImage"] > div > div > div > img'),n;e?(n=e.src,n=n.replace(/\d+x\d+/,"1280x1280"),e.src=n):(e=document.querySelector('figure[class*="_albumImage"] > div > div > div > video'))?(n=e.getAttribute("poster"),n=n.replace(/\d+x\d+/,"1280x1280"),e.src=n):(N(),console.log("Couldn't get album art"));let a=document.querySelector('[class*="_nowPlayingContainer"]');if(a&&n){a.querySelectorAll(".corner-image").forEach(i=>i.remove());let r=document.createElement("img");r.src=n,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.4) contrast(1.2) saturate(1)",r.style.animation="spin 35s linear infinite",r.style.animationDelay="5s",a.appendChild(r);let o=document.createElement("img");if(o.src=n,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.4) 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); }
+1 -1
View File
@@ -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":"d2b957c20063b53916a66628b311aff8","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":1267,"imports":[],"format":"esm"},"plugins/not-actual-fullscreen/src/index.js":{"bytes":7427,"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":3610},"plugins/not-actual-fullscreen/src/ui.js":{"bytesInOutput":581}},"bytes":5355}}}}
{"name":"Clean View","description":"Make your \"Now Playing View\" clean wherever you want, heavily based in beautiful-lyrics from @surfbryce!.","author":"itzzexcel@github","hash":"c93ec09d958c8db4f4e7019a63f35476","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":1267,"imports":[],"format":"esm"},"plugins/not-actual-fullscreen/src/index.js":{"bytes":7427,"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":3610},"plugins/not-actual-fullscreen/src/ui.js":{"bytesInOutput":581}},"bytes":5355}}}}
@@ -149,7 +149,7 @@ const onTrackChanged = function (method = 0) {
centerImg.style.height = '150vh';
centerImg.style.objectFit = 'cover';
centerImg.style.zIndex = '-1';
centerImg.style.filter = 'blur(100px) brightness(0.6) contrast(1.2) saturate(1)';
centerImg.style.filter = 'blur(100px) brightness(0.4) contrast(1.2) saturate(1)';
centerImg.style.animation = 'spin 35s linear infinite';
centerImg.style.animationDelay = '5s'; // Add a 5-second delay
nowPlayingContainerElement.appendChild(centerImg);
@@ -165,7 +165,7 @@ const onTrackChanged = function (method = 0) {
centerImg2.style.height = '150vh';
centerImg2.style.objectFit = 'cover';
centerImg2.style.zIndex = '-1';
centerImg2.style.filter = 'blur(100px) brightness(0.6) contrast(1.2) saturate(1)';
centerImg2.style.filter = 'blur(100px) brightness(0.4) contrast(1.2) saturate(1)';
centerImg2.style.animation = 'spin 35s linear infinite';
nowPlayingContainerElement.appendChild(centerImg2);