Skip to content

Commit ad0c39a

Browse files
committed
.
1 parent 0d6095f commit ad0c39a

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

popup/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ async function createTabContent(tab) {
133133
if (!tab.scripts?.length) {
134134
const emptyText = document.createElement("h3");
135135
emptyText.style.padding = "30px 0";
136-
emptyText.style.color = "#19143b";
137136
emptyText.innerHTML = t(
138137
tab.placeholder || {
139138
en: `<i class="fa-solid fa-circle-info"></i> Nothing here yet...`,

scripts/fb_blockSeenStory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default {
2020
whiteList: ["https://*facebook.com/*"],
2121

2222
pageScript: {
23-
onDocumentStart_: async (details) => {
23+
onDocumentStart_: (details) => {
2424
hookXHR({
2525
onBeforeSend: ({ method, url, async, user, password }, dataSend) => {
2626
if (

scripts/libs/ajax-hook/index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,16 +138,18 @@ hookXHR({
138138
return null; // return null to cancel xhr open
139139
},
140140
onBeforeSend: ({method, url, async, user, password}, dataSend) => {
141-
return {...}; // modify any property
141+
return {...}; // modify dataSend
142142
return null; // return null to cancel xhr send
143143
},
144-
onAfterSend: ({method, url, async, user, password}, dataSend, response) => {}
144+
onAfterSend: ({method, url, async, user, password}, dataSend, response) => {
145+
doSomething(); // not support modify reponse yet
146+
}
145147
});
146148
*/
147149

148150
// #endregion
149151

150-
// #region WebSocket
152+
// #region WebSocket - Experimental - WORKING IN PROGRESS
151153
const modifyUrlWsFn = [];
152154
const onBeforeWSFn = [];
153155
const onAfterWSFn = [];

0 commit comments

Comments
 (0)