-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreturnoldtextcaiplus.js
More file actions
27 lines (21 loc) · 1.39 KB
/
returnoldtextcaiplus.js
File metadata and controls
27 lines (21 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
(function() {
'use strict';
const selectors = [
"#__next > div > main > div > div > div > aside > div > div.overflow-hidden.transition-all.ease-out.duration-300.hidden.lg\\:block.max-w-64.translate-x-0 > div > div > div.flex.flex-col.justify-end.pb-2.px-5 > div.flex.flex-col.gap-3.py-3 > button > span > div > svg",
"#__next > div > main > div > div > div > aside > div > div.flex.w-screen.h-dvh > div.absolute.top-0.z-10.w-64.h-full.border-r.border-r-accent.bg-primary-foreground > div > div > div > div.flex.flex-col.justify-end.pb-2.px-5 > div.flex.flex-col.gap-3.py-3 > button > span > div > svg > path"
];
function replaceSVG() {
for (const selector of selectors) {
const element = document.querySelector(selector);
if (element) {
const container = element.closest('div');
if (container && container.innerHTML !== `<span style="font-weight:bold; font-size:16px; color:white;">c.ai<span style="color:#1BA5FB;">+</span></span>`) {
container.innerHTML = `<span style="font-weight:bold; font-size:16px; color:white;">c.ai<span style="color:#1BA5FB;">+</span></span>`;
}
}
}
}
replaceSVG();
const observer = new MutationObserver(replaceSVG);
observer.observe(document.body, { childList: true, subtree: true });
})();