mirror of
https://github.com/meowarex/TidaLuna-Plugins.git
synced 2026-06-18 03:43:10 +10:00
YAYYY
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
||||
var g=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var I=Object.getOwnPropertyNames;var S=Object.prototype.hasOwnProperty;var A=(e,t)=>()=>(e&&(t=e(e=0)),t);var v=(e,t)=>{for(var r in t)g(e,r,{get:t[r],enumerable:!0})},N=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of I(t))!S.call(e,c)&&c!==r&&g(e,c,{get:()=>t[c],enumerable:!(a=x(t,c))||a.enumerable});return e};var k=e=>N(g({},"__esModule",{value:!0}),e);var b={};v(b,{Tracer:()=>y,libTrace:()=>R});import{actions as f}from"@neptune";var y,R,h=A(()=>{"use strict";y=e=>{let t=s=>{let i=(...l)=>{s(e,...l)};return i.withContext=l=>(...p)=>{s(e,l,...p)},i},r=t(console.log),a=t(console.warn),c=t(console.error),o=t(console.debug),n=(s,i,l)=>{let p=m=>{s(m),i({message:`${e} - ${m}`,category:"OTHER",severity:l})};return p.withContext=m=>{let w=s.withContext(m);return u=>{w(u),u instanceof Error&&(u=u.message),i({message:`${e}.${m} - ${u}`,category:"OTHER",severity:l})}},p};return{log:r,warn:a,err:c,debug:o,msg:{log:n(r,f.message.messageInfo,"INFO"),warn:n(a,f.message.messageWarn,"WARN"),err:n(c,f.message.messageError,"ERROR")}}},R=y("[lib]")});h();import{intercept as O}from"@neptune";h();var _=y("[OLED Theme]"),P="https://raw.githubusercontent.com/ItzzExcel/neptune-projects/refs/heads/main/themes/black-neptune-theme.css",T,d,C=new MutationObserver(e=>{e.forEach(()=>{setTimeout(()=>{E()},1500)})});function D(){let e=document.querySelector('span[data-test="now-playing-track-title"]');e&&C.observe(e,{characterData:!0,childList:!0})}function L(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}function U(){d&&d.parentNode&&d.parentNode.removeChild(d)}async function $(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 _.msg.err(`Failed to fetch URL: ${t.message}`),null}}(async()=>(T=await $(P),d=L(T)))();var E=function(e=0){e===1&&setTimeout(()=>{E()},2e3);let t=document.querySelector('figure[class*="albumImage"] > div > div > div > img'),r;t&&(r=t.src,r=r.replace(/\d+x\d+/,"1280x1280"),t.src=r);let a=document.querySelector('[class*="nowPlayingContainer"]');if(a&&r){a.querySelectorAll(".corner-image").forEach(s=>s.remove());let o=document.createElement("img");o.src=r,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);let n=document.createElement("img");if(n.src=r,n.className="corner-image",n.style.position="absolute",n.style.left="50%",n.style.top="50%",n.style.transform="translate(-50%, -50%)",n.style.width="75vw",n.style.height="150vh",n.style.objectFit="cover",n.style.zIndex="-1",n.style.filter="blur(100px) brightness(0.6) contrast(1.2) saturate(1)",n.style.animation="spin 35s linear infinite",a.appendChild(n),!document.querySelector("#spinAnimation")){let s=document.createElement("style");s.id="spinAnimation",s.textContent=`
|
||||
var g=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var I=Object.prototype.hasOwnProperty;var w=(t,e)=>()=>(t&&(e=t(t=0)),e);var v=(t,e)=>{for(var r in e)g(t,r,{get:e[r],enumerable:!0})},A=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let c of S(e))!I.call(t,c)&&c!==r&&g(t,c,{get:()=>e[c],enumerable:!(a=x(e,c))||a.enumerable});return t};var N=t=>A(g({},"__esModule",{value:!0}),t);var C={};v(C,{Tracer:()=>y,libTrace:()=>k});import{actions as h}from"@neptune";var y,k,E=w(()=>{"use strict";y=t=>{let e=s=>{let l=(...i)=>{s(t,...i)};return l.withContext=i=>(...p)=>{s(t,i,...p)},l},r=e(console.log),a=e(console.warn),c=e(console.error),o=e(console.debug),n=(s,l,i)=>{let p=m=>{s(m),l({message:`${t} - ${m}`,category:"OTHER",severity:i})};return p.withContext=m=>{let b=s.withContext(m);return u=>{b(u),u instanceof Error&&(u=u.message),l({message:`${t}.${m} - ${u}`,category:"OTHER",severity:i})}},p};return{log:r,warn:a,err:c,debug:o,msg:{log:n(r,h.message.messageInfo,"INFO"),warn:n(a,h.message.messageWarn,"WARN"),err:n(c,h.message.messageError,"ERROR")}}},k=y("[lib]")});E();import{intercept as R}from"@neptune";E();var O=y("[OLED Theme]"),_="https://raw.githubusercontent.com/ItzzExcel/neptune-projects/refs/heads/main/themes/black-neptune-theme.css",T,d;function D(){let t=document.querySelector('div[class*="textContainer--"] > a > span');t&&t.addEventListener("DOMSubtreeModified",()=>{setTimeout(()=>{f()},300)})}function L(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}function P(){d&&d.parentNode&&d.parentNode.removeChild(d)}async function M(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 O.msg.err(`Failed to fetch URL: ${e.message}`),null}}(async()=>(T=await M(_),d=L(T)))();var f=function(t=0){t===1&&setTimeout(()=>{f()},2e3);let e=document.querySelector('figure[class*="albumImage"] > div > div > div > img'),r;e&&(r=e.src,r=r.replace(/\d+x\d+/,"1280x1280"),e.src=r);let a=document.querySelector('[class*="nowPlayingContainer"]');if(a&&r){a.querySelectorAll(".corner-image").forEach(s=>s.remove());let o=document.createElement("img");o.src=r,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);let n=document.createElement("img");if(n.src=r,n.className="corner-image",n.style.position="absolute",n.style.left="50%",n.style.top="50%",n.style.transform="translate(-50%, -50%)",n.style.width="75vw",n.style.height="150vh",n.style.objectFit="cover",n.style.zIndex="-1",n.style.filter="blur(100px) brightness(0.6) contrast(1.2) saturate(1)",n.style.animation="spin 35s linear infinite",a.appendChild(n),!document.querySelector("#spinAnimation")){let s=document.createElement("style");s.id="spinAnimation",s.textContent=`
|
||||
@keyframes spin {
|
||||
from { transform: translate(-50%, -50%) rotate(0deg); }
|
||||
to { transform: translate(-50%, -50%) rotate(360deg); }
|
||||
}
|
||||
`,document.head.appendChild(s)}}},q=function(){[...document.getElementsByClassName("corner-image")].forEach(e=>{e.remove()})},F=["playbackControls/PREFILL_MEDIA_PRODUCT_TRANSITION","playbackControls/MEDIA_PRODUCT_TRANSITION","playbackControls/SEEK","playbackControls/SET_PLAYBACK_STATE","playbackControls/TIME_UPDATE"],M=F.map(e=>O(e,E));D();function Y(){U(),M.forEach(e=>e()),q(),C.disconnect()}export{Y as onUnload};
|
||||
`,document.head.appendChild(s)}}},U=function(){[...document.getElementsByClassName("corner-image")].forEach(t=>{t.remove()})},q=["playbackControls/PREFILL_MEDIA_PRODUCT_TRANSITION","playbackControls/MEDIA_PRODUCT_TRANSITION","playbackControls/SEEK","playbackControls/SET_PLAYBACK_STATE","playbackControls/TIME_UPDATE"];D();var $=q.map(t=>R(t,f));function W(){P(),$.forEach(e=>e()),U();let t=document.querySelector('div[class*="textContainer--"] > a > span');t&&t.removeEventListener("DOMSubtreeModified",f)}export{W as onUnload};
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"name":"Dark Abyss (OLED Theme)","description":"A working theme, ong.","author":"itzzexcel@github","hash":"5ad2f0874a865cfa3c406eb9f3ccc9fa","metafile":{"inputs":{"plugins/oled-theme/src/tracer.js":{"bytes":1596,"imports":[{"path":"@neptune","kind":"import-statement","external":true}],"format":"esm"},"plugins/oled-theme/src/index.js":{"bytes":6149,"imports":[{"path":"plugins/oled-theme/src/tracer.js","kind":"import-statement","original":"./tracer"},{"path":"@neptune","kind":"import-statement","external":true},{"path":"plugins/oled-theme/src/tracer.js","kind":"require-call","original":"./tracer"}],"format":"esm"}},"outputs":{"plugins/oled-theme/dist/index.js":{"imports":[{"path":"@neptune","kind":"import-statement","external":true},{"path":"@neptune","kind":"import-statement","external":true}],"exports":["onUnload"],"entryPoint":"plugins/oled-theme/src/index.js","inputs":{"plugins/oled-theme/src/tracer.js":{"bytesInOutput":693},"plugins/oled-theme/src/index.js":{"bytesInOutput":2729}},"bytes":3892}}}}
|
||||
{"name":"Dark Abyss (OLED Theme)","description":"A working theme, ong.","author":"itzzexcel@github","hash":"7e22fd29296b90cdf37927f51db4e1c2","metafile":{"inputs":{"plugins/oled-theme/src/tracer.js":{"bytes":1596,"imports":[{"path":"@neptune","kind":"import-statement","external":true}],"format":"esm"},"plugins/oled-theme/src/index.js":{"bytes":6209,"imports":[{"path":"plugins/oled-theme/src/tracer.js","kind":"import-statement","original":"./tracer"},{"path":"@neptune","kind":"import-statement","external":true},{"path":"plugins/oled-theme/src/tracer.js","kind":"require-call","original":"./tracer"}],"format":"esm"}},"outputs":{"plugins/oled-theme/dist/index.js":{"imports":[{"path":"@neptune","kind":"import-statement","external":true},{"path":"@neptune","kind":"import-statement","external":true}],"exports":["onUnload"],"entryPoint":"plugins/oled-theme/src/index.js","inputs":{"plugins/oled-theme/src/tracer.js":{"bytesInOutput":693},"plugins/oled-theme/src/index.js":{"bytesInOutput":2794}},"bytes":3957}}}}
|
||||
@@ -7,20 +7,14 @@ const themeUrl = "https://raw.githubusercontent.com/ItzzExcel/neptune-projects/r
|
||||
|
||||
let style;
|
||||
let styleElement;
|
||||
const titleObserver = new MutationObserver((mutations) => {
|
||||
mutations.forEach(() => {
|
||||
setTimeout(() => {
|
||||
onTrackChanged();
|
||||
}, 1500);
|
||||
});
|
||||
});
|
||||
|
||||
function observeTrackTitle() {
|
||||
const trackTitleElement = document.querySelector('span[data-test="now-playing-track-title"]');
|
||||
const trackTitleElement = document.querySelector('div[class*="textContainer--"] > a > span');
|
||||
if (trackTitleElement) {
|
||||
titleObserver.observe(trackTitleElement, {
|
||||
characterData: true,
|
||||
childList: true
|
||||
trackTitleElement.addEventListener('DOMSubtreeModified', () => {
|
||||
setTimeout(() => {
|
||||
onTrackChanged();
|
||||
}, 300);
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -162,15 +156,20 @@ const PLAYBACK_EVENTS = [
|
||||
// "playbackControls/"
|
||||
];
|
||||
|
||||
observeTrackTitle();
|
||||
|
||||
const unsubscribeFunctions = PLAYBACK_EVENTS.map(event =>
|
||||
intercept(event, onTrackChanged)
|
||||
);
|
||||
|
||||
observeTrackTitle();
|
||||
|
||||
export function onUnload() {
|
||||
CleanUpCSS();
|
||||
unsubscribeFunctions.forEach(unsubscribe => unsubscribe());
|
||||
cleanUpDynamicArt();
|
||||
titleObserver.disconnect();
|
||||
|
||||
const trackTitleElement = document.querySelector('div[class*="textContainer--"] > a > span');
|
||||
if (trackTitleElement) {
|
||||
trackTitleElement.removeEventListener('DOMSubtreeModified', onTrackChanged);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user