mirror of
https://github.com/meowarex/TidaLuna-Plugins.git
synced 2026-06-18 03:43:10 +10:00
update
This commit is contained in:
+3
-3
@@ -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,_,E=k(()=>{"use strict";f=t=>{let e=c=>{let l=(...i)=>{c(t,...i)};return l.withContext=i=>(...p)=>{c(t,i,...p)},l},s=e(console.log),a=e(console.warn),n=e(console.error),r=e(console.debug),o=(c,l,i)=>{let p=m=>{c(m),l({message:`${t} - ${m}`,category:"OTHER",severity:i})};return p.withContext=m=>{let S=c.withContext(m);return d=>{S(d),d instanceof Error&&(d=d.message),l({message:`${t}.${m} - ${d}`,category:"OTHER",severity:i})}},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]")});E();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}E();var D=f("[Clean View]"),M=`
|
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=`
|
||||||
[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 h=Object.defineProperty;var N=Object.getOwnPropertyDescriptor;var A=Object.g
|
|||||||
[class*="nowPlayingContainer"] {
|
[class*="nowPlayingContainer"] {
|
||||||
padding-left: 6%;
|
padding-left: 6%;
|
||||||
}
|
}
|
||||||
`;function I(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 U(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 D.msg.err(`Failed to fetch URL: ${e.message}`),null}}var b=!1,x,K=w(()=>{b?x&&x.remove():x=I(M),b=!b},"https://cdn.discordapp.com/attachments/1286571643807731783/1344515636675612712/image.png?ex=67c13143&is=67bfdfc3&hm=1573e29efdf882292922736e5ae2df6a87b7ad316add6fc498eee8ce799fb8e4&",2),$="https://raw.githubusercontent.com/ItzzExcel/neptune-projects/refs/heads/main/plugins/plugins/not-actual-fullscreen/src/separated-lyrics.css",T,u;(async()=>(T=await U($),u=I(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(c=>c.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 c=document.createElement("style");c.id="spinAnimation",c.textContent=`
|
`;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=`
|
||||||
@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(c)}}},F=function(){[...document.getElementsByClassName("corner-image")].forEach(t=>{t.remove()})},H=["playbackControls/PREFILL_MEDIA_PRODUCT_TRANSITION","playbackControls/MEDIA_PRODUCT_TRANSITION"],z=H.map(t=>intercept(t,()=>{g(1)}));y();y();y();y();function j(){u&&u.parentNode&&u.parentNode.removeChild(u)}function Y(){j(),z.forEach(e=>e()),F();let t=document.querySelector('div[class^="trackTitleContainer"]');t&&t.removeEventListener("DOMSubtreeModified",g)}export{Y as onUnload};
|
`,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};
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"name":"Clean View","description":"Make your \"Now Playing View\" clean wherever you want.","author":"itzzexcel@github","hash":"91e3844b17858875c942928a666199e2","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":6729,"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":"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}],"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":3344},"plugins/not-actual-fullscreen/src/ui.js":{"bytesInOutput":439}},"bytes":4946}}}}
|
{"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}}}}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Clean View",
|
"name": "Clean View",
|
||||||
"description": "Make your \"Now Playing View\" clean wherever you want.",
|
"description": "Make your \"Now Playing View\" clean wherever you want, heavily based in beautiful-lyrics from @surfbryce!.",
|
||||||
"author": "itzzexcel@github",
|
"author": "itzzexcel@github",
|
||||||
"main": "./src/index.js"
|
"main": "./src/index.js"
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
require("./tracer");
|
require("./tracer");
|
||||||
import { Tracer } from "./tracer";
|
import { Tracer } from "./tracer";
|
||||||
import * as ui from "./ui";
|
import * as ui from "./ui";
|
||||||
|
import { intercept, store, utils } from "@neptune"
|
||||||
|
|
||||||
const trace = Tracer("[Clean View]");
|
const trace = Tracer("[Clean View]");
|
||||||
|
|
||||||
@@ -67,7 +68,7 @@ const toggleCleanButton = ui.NewPlayerButton(() => {
|
|||||||
, 2);
|
, 2);
|
||||||
|
|
||||||
// STYLES FOR THE LYRICS
|
// STYLES FOR THE LYRICS
|
||||||
const themeUrl = "https://raw.githubusercontent.com/ItzzExcel/neptune-projects/refs/heads/main/plugins/plugins/not-actual-fullscreen/src/separated-lyrics.css";
|
const themeUrl = "https://raw.githubusercontent.com/itzzexcel/neptune-projects/refs/heads/main/plugins/plugins/not-actual-fullscreen/src/separated-lyrics.css";
|
||||||
|
|
||||||
var style;
|
var style;
|
||||||
var styleElement;
|
var styleElement;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
/* TODO: ADD INTERLUDE SUPPORT FOR THE THREE DOTS */
|
||||||
/* Credits to https://github.com/surfbryce for the fonts */
|
/* Credits to https://github.com/surfbryce for the fonts */
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "AbyssFont";
|
font-family: "AbyssFont";
|
||||||
|
|||||||
@@ -274,57 +274,9 @@ button[data-test="close-now-playing"]:hover {
|
|||||||
backdrop-filter: blur(10px);
|
backdrop-filter: blur(10px);
|
||||||
}
|
}
|
||||||
|
|
||||||
[data-test="now-playing-track-title"] {
|
|
||||||
text-shadow: 0 0 1px #fff, 0 0 30px #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
[class^="bottomGradient"] {
|
[class^="bottomGradient"] {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
[aria-label="Show credits"] {
|
|
||||||
top: calc(var(--headerHeight) + 80px);
|
|
||||||
}
|
|
||||||
|
|
||||||
[data-current] {
|
|
||||||
transition: text-shadow 0.7s ease-in-out, text-shadow 0.7s ease-in-out padding 0.7s ease-in-out;
|
|
||||||
}
|
|
||||||
|
|
||||||
[data-current="true"] {
|
|
||||||
text-shadow: 0 0 2px #fff, 0 0 20px #fff;
|
|
||||||
padding-left: 20px;
|
|
||||||
transition-duration: 0.7s;
|
|
||||||
}
|
|
||||||
|
|
||||||
[data-current="false"] {
|
|
||||||
text-shadow: 0 0 0px transparent, 0 0 0px transparent;
|
|
||||||
transition-duration: 0.25s;
|
|
||||||
color: rgba(128, 128, 128, 0.4);
|
|
||||||
}
|
|
||||||
|
|
||||||
[data-current="false"]:hover {
|
|
||||||
text-shadow: 0 0 2px lightgray, 0 0 20px lightgray;
|
|
||||||
color: lightgray;
|
|
||||||
padding-left: 20px;
|
|
||||||
transition-duration: 0.7s;
|
|
||||||
}
|
|
||||||
|
|
||||||
[class^="lyricsContainer"]>div>div>span {
|
|
||||||
margin-bottom: 2rem;
|
|
||||||
opacity: 1;
|
|
||||||
font-family: "AbyssFont", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
|
||||||
font-weight: 700;
|
|
||||||
font-size: 43px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
[class^="lyricsProvider"] {
|
|
||||||
visibility: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
[class^="syncButton"] {
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
[data-test="settings-page"] {
|
[data-test="settings-page"] {
|
||||||
padding-bottom: 60px !important;
|
padding-bottom: 60px !important;
|
||||||
}
|
}
|
||||||
@@ -342,26 +294,3 @@ button[data-test="close-now-playing"]:hover {
|
|||||||
[class^="subMenu--"] {
|
[class^="subMenu--"] {
|
||||||
border: 1px solid var(--wave-color-opacity-contrast-fill-ultra-thin) !important;
|
border: 1px solid var(--wave-color-opacity-contrast-fill-ultra-thin) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
[class*="lyricsText--"]>span[class*="active--"] {
|
|
||||||
text-shadow: 0 0 2px #fff, 0 0 20px #fff;
|
|
||||||
padding-left: 20px;
|
|
||||||
transition-duration: 0.7s;
|
|
||||||
font-size: 60px;
|
|
||||||
}
|
|
||||||
|
|
||||||
[class*="lyricsText--"]>span {
|
|
||||||
text-shadow: 0 0 0px transparent, 0 0 0px transparent;
|
|
||||||
transition-duration: 0.25s;
|
|
||||||
color: rgba(128, 128, 128, 0.4);
|
|
||||||
font-size: 45px;
|
|
||||||
}
|
|
||||||
|
|
||||||
[class*="lyricsText--"]>span:hover {
|
|
||||||
text-shadow: 0 0 2px lightgray, 0 0 20px lightgray;
|
|
||||||
color: lightgray;
|
|
||||||
padding-left: 20px;
|
|
||||||
transition-duration: 0.7s;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* TODO: ADD INTERLUDE SUPPORT FOR THE THREE DOTS */
|
|
||||||
Reference in New Issue
Block a user