-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
insta_anonymousStoryViewer.js
44 lines (39 loc) · 1.17 KB
/
insta_anonymousStoryViewer.js
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import { UfsGlobal } from "./content-scripts/ufs_global.js";
import { hookXHR } from "./libs/ajax-hook/index.js";
export default {
icon: '<i class="fa-solid fa-eye-slash fa-lg"></i>',
name: {
en: "Insta - Anonymous story viewer",
vi: "Insta - Xem story ẩn danh",
},
description: {
en: "Watch instagram stories anonymously",
vi: "Xem story instagram không bị đối phương phát hiện",
},
infoLink:
"https://greasyfork.org/en/scripts/468385-instagram-anonymous-story-viewer",
changeLogs: {
"2024-04-15": "init",
},
whiteList: ["*://www.instagram.com/*"],
pageScript: {
onDocumentStart: () => {
hookXHR({
onBeforeSend: ({ method, url, async, user, password }, dataSend) => {
let s = dataSend?.toString() || "";
if (s.includes("viewSeenAt") || s.includes("SeenMutation")) {
UfsGlobal.DOM.notify({
msg: "Useful-script: Blocked story view tracking",
});
return null;
}
},
});
},
onDocumentEnd: () => {
UfsGlobal.DOM.notify({
msg: "Useful-script: Blocked story view tracking READY",
});
},
},
};