Skip to content

Commit b07afd6

Browse files
committed
Merge branch 'dev'
2 parents 4af24e3 + 587ce97 commit b07afd6

File tree

4 files changed

+27
-19
lines changed

4 files changed

+27
-19
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_metadata/*
-1.77 KB
Binary file not shown.

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 () => {

scripts/ufs_statistic.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@ async function onDocumentEnd() {
524524
const promises = uniqueUid.map(
525525
(uid) => () =>
526526
getFbProfile(uid).then((info) => {
527+
if (!info.name || !info.avatar) return;
527528
document
528529
.querySelectorAll(`[data-profile-name="${uid}"]`)
529530
.forEach((el) => {

0 commit comments

Comments
 (0)