@@ -12,7 +12,7 @@ export default {
12
12
vi : "" ,
13
13
} ,
14
14
15
- whiteList : [ "https://chatgpt.com /*" ] ,
15
+ whiteList : [ "https://adminapp.momocdn.net /*" ] ,
16
16
17
17
popupScript : {
18
18
onClick : async ( ) => {
@@ -332,24 +332,30 @@ export default {
332
332
333
333
pageScript : {
334
334
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 ) ;
353
359
} ,
354
360
// download album
355
361
_onClick : async ( ) => {
0 commit comments