Quick additions

This commit is contained in:
ItzzExcel
2025-02-27 03:12:11 -06:00
parent a14aa3213c
commit 63c4fc4d5b
4 changed files with 30 additions and 26 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
var C=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)C(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&&C(e,n,{get:()=>t[n],enumerable:!(a=R(t,n))||a.enumerable});return e};var L=e=>_(C({},"__esModule",{value:!0}),e);var v={};P(v,{Tracer:()=>y,libTrace:()=>q});import{actions as b}from"@neptune";var y,q,E=O(()=>{"use strict";y=e=>{let t=i=>{let m=(...l)=>{i(e,...l)};return m.withContext=l=>(...f)=>{i(e,l,...f)},m},s=t(console.log),a=t(console.warn),n=t(console.error),r=t(console.debug),o=(i,m,l)=>{let f=d=>{i(d),m({message:`${e} - ${d}`,category:"OTHER",severity:l})};return f.withContext=d=>{let A=i.withContext(d);return u=>{A(u),u instanceof Error&&(u=u.message),m({message:`${e}.${d} - ${u}`,category:"OTHER",severity:l})}},f};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=y("[lib]")});E();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";E();var U=y("[Clean View]"),$=` var C=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)C(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&&C(e,n,{get:()=>t[n],enumerable:!(a=R(t,n))||a.enumerable});return e};var L=e=>_(C({},"__esModule",{value:!0}),e);var v={};P(v,{Tracer:()=>g,libTrace:()=>q});import{actions as b}from"@neptune";var g,q,E=O(()=>{"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},2e3)}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"] { [data-test="footer-player"], [class*="tabItems"] {
opacity: 0 !important; opacity: 0 !important;
transition: opacity 0.3s ease-in-out; transition: opacity 0.3s ease-in-out;
@@ -20,9 +20,9 @@ var C=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var k=Object.g
[class*="nowPlayingContainer"] { [class*="nowPlayingContainer"] {
padding-left: 6%; padding-left: 6%;
} }
`;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=T(()=>{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 g(){let e=document.querySelector('[class^="trackTitleContainer"]');e&&e.addEventListener("DOMSubtreeModified",()=>{setTimeout(()=>{h()},300)})}var h=function(e=0){e===1&&setTimeout(()=>{h()},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 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=`
@keyframes spin { @keyframes spin {
from { transform: translate(-50%, -50%) rotate(0deg); } from { transform: translate(-50%, -50%) rotate(0deg); }
to { transform: translate(-50%, -50%) rotate(360deg); } 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,()=>{h(1)}));g();g();g();g();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",h)}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};
+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":"8e801abaa3b7108e59ebde4669d968b2","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":6928,"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":3423},"plugins/not-actual-fullscreen/src/ui.js":{"bytesInOutput":580}},"bytes":5167}}}} {"name":"Clean View","description":"Make your \"Now Playing View\" clean wherever you want, heavily based in beautiful-lyrics from @surfbryce!.","author":"itzzexcel@github","hash":"a684837106c96086b7d485dbb660a3f8","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":1305,"imports":[],"format":"esm"},"plugins/not-actual-fullscreen/src/index.js":{"bytes":6950,"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":3428},"plugins/not-actual-fullscreen/src/ui.js":{"bytesInOutput":602}},"bytes":5194}}}}
@@ -188,6 +188,8 @@ observeTrackTitle();
observeTrackTitle(); observeTrackTitle();
observeTrackTitle(); observeTrackTitle();
onTrackChanged(1);
function CleanUpCSS() { function CleanUpCSS() {
if (styleElement && styleElement.parentNode) { if (styleElement && styleElement.parentNode) {
styleElement.parentNode.removeChild(styleElement); styleElement.parentNode.removeChild(styleElement);
@@ -1,6 +1,7 @@
var buttonElementList = []; var buttonElementList = [];
export function NewPlayerButton(callback, icon, customIndex = 1) { export function NewPlayerButton(callback, icon, customIndex = 1) {
setTimeout(() => {
let iconHolder = document.querySelector("[class*=\"moreContainer\""); let iconHolder = document.querySelector("[class*=\"moreContainer\"");
let button = document.createElement("button"); let button = document.createElement("button");
@@ -26,6 +27,7 @@ export function NewPlayerButton(callback, icon, customIndex = 1) {
buttonElementList.push(button); buttonElementList.push(button);
return button; return button;
}, 2000);
} }
export function CleanupButtons() { export function CleanupButtons() {