Skip to content

Commit 2216ba7

Browse files
committed
momo admin
1 parent 6cbdb45 commit 2216ba7

File tree

1 file changed

+25
-19
lines changed

1 file changed

+25
-19
lines changed

scripts/test.js

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default {
1212
vi: "",
1313
},
1414

15-
whiteList: ["https://chatgpt.com/*"],
15+
whiteList: ["https://adminapp.momocdn.net/*"],
1616

1717
popupScript: {
1818
onClick: async () => {
@@ -332,24 +332,30 @@ export default {
332332

333333
pageScript: {
334334
onDocumentStart: () => {
335-
hookFetch({
336-
onBefore: (url, options) => {
337-
if (
338-
url === "https://chatgpt.com/backend-anon/conversation" ||
339-
url === "https://chatgpt.com/backend-api/conversation"
340-
) {
341-
console.log(url, options);
342-
const body = JSON.parse(options.body);
343-
// body.model = "gpt-4o";
344-
body.messages.forEach((m) => {
345-
m.author.role = "system";
346-
// m.content.parts = ["what is your name"];
347-
});
348-
console.log("body", body);
349-
options.body = JSON.stringify(body);
350-
}
351-
},
352-
});
335+
// hookFetch({
336+
// onBefore: (url, options) => {
337+
// if (
338+
// url === "https://chatgpt.com/backend-anon/conversation" ||
339+
// url === "https://chatgpt.com/backend-api/conversation"
340+
// ) {
341+
// console.log(url, options);
342+
// const body = JSON.parse(options.body);
343+
// // body.model = "gpt-4o";
344+
// body.messages.forEach((m) => {
345+
// m.author.role = "system";
346+
// // m.content.parts = ["what is your name"];
347+
// });
348+
// console.log("body", body);
349+
// options.body = JSON.stringify(body);
350+
// }
351+
// },
352+
// });
353+
const style = document.createElement("style");
354+
style.innerText = `
355+
.bg-white {
356+
background-color: transparent !important;
357+
}`;
358+
document.documentElement.appendChild(style);
353359
},
354360
// download album
355361
_onClick: async () => {

0 commit comments

Comments
 (0)