dp-worker 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/agent.d.ts +6 -13
- package/dist/agent/agent.js +9 -19
- package/dist/agent/agent.js.map +1 -1
- package/dist/browser/actions.d.ts +1 -1
- package/dist/browser/actions.js.map +1 -1
- package/dist/browser/builtin-page-cleanups.d.ts +1 -1
- package/dist/browser/chrome-process.d.ts +3 -0
- package/dist/browser/chrome-process.js +101 -13
- package/dist/browser/chrome-process.js.map +1 -1
- package/dist/browser/dom-helpers.d.ts +1 -1
- package/dist/browser/expect.d.ts +1 -1
- package/dist/browser/expect.js.map +1 -1
- package/dist/browser/humanize.d.ts +1 -1
- package/dist/browser/locator-resolver.d.ts +1 -1
- package/dist/browser/manager.d.ts +5 -5
- package/dist/browser/manager.js +95 -45
- package/dist/browser/manager.js.map +1 -1
- package/dist/browser/snapshot.d.ts +1 -1
- package/dist/center/session-sync.d.ts +16 -77
- package/dist/center/session-sync.js +58 -303
- package/dist/center/session-sync.js.map +1 -1
- package/dist/chrome-extension/omni-flow/background.js +561 -0
- package/dist/chrome-extension/omni-flow/content.js +29 -0
- package/dist/chrome-extension/omni-flow/icon.png +0 -0
- package/dist/chrome-extension/omni-flow/inject.js +173 -0
- package/dist/chrome-extension/omni-flow/manifest.json +44 -0
- package/dist/chrome-extension/omni-flow/popup.css +819 -0
- package/dist/chrome-extension/omni-flow/popup.html +284 -0
- package/dist/chrome-extension/omni-flow/popup.js +1021 -0
- package/dist/chrome-extension/omni-flow/usage_guide.md +139 -0
- package/dist/index.js +15 -45
- package/dist/index.js.map +1 -1
- package/node_modules/dp-shared/dist/domain.d.ts +4 -4
- package/node_modules/dp-shared/dist/domain.d.ts.map +1 -1
- package/node_modules/dp-shared/dist/domain.js +4 -4
- package/node_modules/dp-shared/dist/domain.js.map +1 -1
- package/node_modules/dp-shared/dist/identities.d.ts +22 -0
- package/node_modules/dp-shared/dist/identities.d.ts.map +1 -1
- package/node_modules/dp-shared/dist/identities.js +3 -0
- package/node_modules/dp-shared/dist/identities.js.map +1 -1
- package/node_modules/dp-shared/dist/index.d.ts +1 -0
- package/node_modules/dp-shared/dist/index.d.ts.map +1 -1
- package/node_modules/dp-shared/dist/index.js +1 -0
- package/node_modules/dp-shared/dist/index.js.map +1 -1
- package/node_modules/dp-shared/dist/omni-flow-session.d.ts +85 -0
- package/node_modules/dp-shared/dist/omni-flow-session.d.ts.map +1 -0
- package/node_modules/dp-shared/dist/omni-flow-session.js +59 -0
- package/node_modules/dp-shared/dist/omni-flow-session.js.map +1 -0
- package/node_modules/dp-shared/dist/rest-contracts.d.ts +12 -1
- package/node_modules/dp-shared/dist/rest-contracts.d.ts.map +1 -1
- package/node_modules/dp-shared/dist/rest-contracts.js +5 -3
- package/node_modules/dp-shared/dist/rest-contracts.js.map +1 -1
- package/node_modules/dp-shared/dist/ws-protocol.d.ts +4 -4
- package/node_modules/dp-shared/src/admin-broadcast.ts +38 -0
- package/node_modules/dp-shared/src/audit-contracts.ts +33 -0
- package/node_modules/dp-shared/src/configs-contracts.ts +206 -0
- package/node_modules/dp-shared/src/db-rows.ts +280 -0
- package/node_modules/dp-shared/src/deploy-contracts.ts +38 -0
- package/node_modules/dp-shared/src/domain.ts +124 -0
- package/node_modules/dp-shared/src/identities.ts +36 -0
- package/node_modules/dp-shared/src/index.ts +25 -0
- package/node_modules/dp-shared/src/omni-flow-session.ts +80 -0
- package/node_modules/dp-shared/src/rest-contracts.ts +409 -0
- package/node_modules/dp-shared/src/task-history-contracts.ts +115 -0
- package/node_modules/dp-shared/src/worker-detail-contracts.ts +230 -0
- package/node_modules/dp-shared/src/ws-protocol.ts +435 -0
- package/package.json +6 -8
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OmniFlow - MAIN World JS Overrides
|
|
3
|
+
* This file is loaded as a Web Accessible Resource.
|
|
4
|
+
* PROFESSIONAL STEALTH MODE: 100% undetectable minimalist timezone spoofing.
|
|
5
|
+
*/
|
|
6
|
+
(function() {
|
|
7
|
+
const docEl = document.documentElement;
|
|
8
|
+
const fakeTimezone = docEl.dataset.omniTz;
|
|
9
|
+
const enableLang = docEl.dataset.omniLang === "true";
|
|
10
|
+
const enableHardware = docEl.dataset.omniHardware === "true";
|
|
11
|
+
const enableAntiBot = docEl.dataset.omniBot === "true";
|
|
12
|
+
|
|
13
|
+
console.log("OmniFlow: Antidetect Shields Armed.");
|
|
14
|
+
|
|
15
|
+
// ==========================================
|
|
16
|
+
// Stealth Native Disguise Helper (Refuses bot-auditing monkeypatch detection)
|
|
17
|
+
// ==========================================
|
|
18
|
+
function makeNative(fn, name, isGetter = false) {
|
|
19
|
+
const toStringStr = isGetter
|
|
20
|
+
? `function get ${name}() { [native code] }`
|
|
21
|
+
: `function ${name}() { [native code] }`;
|
|
22
|
+
|
|
23
|
+
Object.defineProperty(fn, 'toString', {
|
|
24
|
+
value: function() { return toStringStr; },
|
|
25
|
+
configurable: true,
|
|
26
|
+
writable: true
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
Object.defineProperty(fn.toString, 'toString', {
|
|
30
|
+
value: function() { return "function toString() { [native code] }"; },
|
|
31
|
+
configurable: true,
|
|
32
|
+
writable: true
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
Object.defineProperty(fn.toString, 'name', {
|
|
36
|
+
value: 'toString',
|
|
37
|
+
configurable: true
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// ==========================================
|
|
42
|
+
// 1. Timezone Spoofing (Intl & Date getTimezoneOffset only)
|
|
43
|
+
// Minimalist, robust, and 100% undetectable (mimics Spoof Timezone extension exactly)
|
|
44
|
+
// ==========================================
|
|
45
|
+
if (fakeTimezone) {
|
|
46
|
+
const originalResolvedOptions = Intl.DateTimeFormat.prototype.resolvedOptions;
|
|
47
|
+
const originalGetTimezoneOffset = Date.prototype.getTimezoneOffset;
|
|
48
|
+
|
|
49
|
+
// Helper to calculate offset
|
|
50
|
+
function calculateOffset(timezone) {
|
|
51
|
+
try {
|
|
52
|
+
const dateInstance = new Date();
|
|
53
|
+
const tzString = dateInstance.toLocaleString('en-US', { timeZone: timezone });
|
|
54
|
+
const localDate = new Date(tzString);
|
|
55
|
+
const utcString = dateInstance.toLocaleString('en-US', { timeZone: 'UTC' });
|
|
56
|
+
const utcDate = new Date(utcString);
|
|
57
|
+
return Math.round((utcDate - localDate) / 60000);
|
|
58
|
+
} catch (e) {
|
|
59
|
+
return originalGetTimezoneOffset.call(new Date());
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const spoofedOffset = calculateOffset(fakeTimezone);
|
|
64
|
+
|
|
65
|
+
// 1. Intl resolvedOptions Override
|
|
66
|
+
const resolvedOptionsOverride = function() {
|
|
67
|
+
const options = originalResolvedOptions.call(this);
|
|
68
|
+
options.timeZone = fakeTimezone;
|
|
69
|
+
return options;
|
|
70
|
+
};
|
|
71
|
+
makeNative(resolvedOptionsOverride, 'resolvedOptions');
|
|
72
|
+
Intl.DateTimeFormat.prototype.resolvedOptions = resolvedOptionsOverride;
|
|
73
|
+
|
|
74
|
+
// 2. Date getTimezoneOffset Override
|
|
75
|
+
const getTimezoneOffsetOverride = function() {
|
|
76
|
+
return spoofedOffset;
|
|
77
|
+
};
|
|
78
|
+
makeNative(getTimezoneOffsetOverride, 'getTimezoneOffset');
|
|
79
|
+
Date.prototype.getTimezoneOffset = getTimezoneOffsetOverride;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// ==========================================
|
|
83
|
+
// 2. Language Adaption Spoofing (Only if different from target language)
|
|
84
|
+
// ==========================================
|
|
85
|
+
if (enableLang) {
|
|
86
|
+
let targetLang = 'en-US';
|
|
87
|
+
let targetLanguages = ['en-US', 'en'];
|
|
88
|
+
|
|
89
|
+
if (fakeTimezone) {
|
|
90
|
+
const tzLower = fakeTimezone.toLowerCase();
|
|
91
|
+
if (tzLower.startsWith('asia/shanghai') || tzLower.startsWith('asia/chongqing') || tzLower.startsWith('asia/harbin')) {
|
|
92
|
+
targetLang = 'zh-CN';
|
|
93
|
+
targetLanguages = ['zh-CN', 'zh', 'en-US', 'en'];
|
|
94
|
+
} else if (tzLower.startsWith('europe/london')) {
|
|
95
|
+
targetLang = 'en-GB';
|
|
96
|
+
targetLanguages = ['en-GB', 'en-US', 'en'];
|
|
97
|
+
} else if (tzLower.startsWith('asia/tokyo')) {
|
|
98
|
+
targetLang = 'ja-JP';
|
|
99
|
+
targetLanguages = ['ja-JP', 'ja', 'en-US', 'en'];
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// Only override if current language is different to minimize prototype mutation
|
|
104
|
+
if (navigator.language !== targetLang) {
|
|
105
|
+
try {
|
|
106
|
+
const languageGetter = function() { return targetLang; };
|
|
107
|
+
makeNative(languageGetter, 'language', true);
|
|
108
|
+
Object.defineProperty(Navigator.prototype, 'language', {
|
|
109
|
+
get: languageGetter,
|
|
110
|
+
configurable: true,
|
|
111
|
+
enumerable: true
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
const languagesGetter = function() { return targetLanguages; };
|
|
115
|
+
makeNative(languagesGetter, 'languages', true);
|
|
116
|
+
Object.defineProperty(Navigator.prototype, 'languages', {
|
|
117
|
+
get: languagesGetter,
|
|
118
|
+
configurable: true,
|
|
119
|
+
enumerable: true
|
|
120
|
+
});
|
|
121
|
+
} catch(e) {
|
|
122
|
+
console.log("OmniFlow: Language override error:", e);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// ==========================================
|
|
128
|
+
// 3. Hardware Fingerprints Standardization (Only if different from target specs)
|
|
129
|
+
// ==========================================
|
|
130
|
+
if (enableHardware) {
|
|
131
|
+
if (navigator.hardwareConcurrency !== 8 || navigator.deviceMemory !== 8) {
|
|
132
|
+
try {
|
|
133
|
+
const hardwareGetter = function() { return 8; };
|
|
134
|
+
makeNative(hardwareGetter, 'hardwareConcurrency', true);
|
|
135
|
+
Object.defineProperty(Navigator.prototype, 'hardwareConcurrency', {
|
|
136
|
+
get: hardwareGetter,
|
|
137
|
+
configurable: true,
|
|
138
|
+
enumerable: true
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
const memoryGetter = function() { return 8; };
|
|
142
|
+
makeNative(memoryGetter, 'deviceMemory', true);
|
|
143
|
+
Object.defineProperty(Navigator.prototype, 'deviceMemory', {
|
|
144
|
+
get: memoryGetter,
|
|
145
|
+
configurable: true,
|
|
146
|
+
enumerable: true
|
|
147
|
+
});
|
|
148
|
+
} catch(e) {
|
|
149
|
+
console.log("OmniFlow: Hardware override error:", e);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
// ==========================================
|
|
155
|
+
// 4. Webdriver Protection (Only if browser is actually automated)
|
|
156
|
+
// ==========================================
|
|
157
|
+
if (enableAntiBot) {
|
|
158
|
+
if (navigator.webdriver === true) {
|
|
159
|
+
try {
|
|
160
|
+
const webdriverGetter = function() { return false; };
|
|
161
|
+
makeNative(webdriverGetter, 'webdriver', true);
|
|
162
|
+
Object.defineProperty(Navigator.prototype, 'webdriver', {
|
|
163
|
+
get: webdriverGetter,
|
|
164
|
+
configurable: true,
|
|
165
|
+
enumerable: true
|
|
166
|
+
});
|
|
167
|
+
} catch(e) {
|
|
168
|
+
console.log("OmniFlow: Automation override error:", e);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
})();
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"manifest_version": 3,
|
|
3
|
+
"name": "OmniFlow - Anti-Fingerprint Proxy Master",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"description": "An elite, unified Chrome extension combining proxy configuration, silent auth, secure WebRTC leak blocking, automated IP timezone spoofing, advanced browser fingerpirnt protection, and profile session backup migration.",
|
|
6
|
+
"permissions": [
|
|
7
|
+
"proxy",
|
|
8
|
+
"storage",
|
|
9
|
+
"webRequest",
|
|
10
|
+
"webRequestAuthProvider",
|
|
11
|
+
"scripting",
|
|
12
|
+
"privacy",
|
|
13
|
+
"cookies",
|
|
14
|
+
"downloads"
|
|
15
|
+
],
|
|
16
|
+
"host_permissions": [
|
|
17
|
+
"<all_urls>"
|
|
18
|
+
],
|
|
19
|
+
"action": {
|
|
20
|
+
"default_popup": "popup.html",
|
|
21
|
+
"default_icon": "icon.png"
|
|
22
|
+
},
|
|
23
|
+
"background": {
|
|
24
|
+
"service_worker": "background.js"
|
|
25
|
+
},
|
|
26
|
+
"content_scripts": [
|
|
27
|
+
{
|
|
28
|
+
"matches": [
|
|
29
|
+
"<all_urls>"
|
|
30
|
+
],
|
|
31
|
+
"js": [
|
|
32
|
+
"content.js"
|
|
33
|
+
],
|
|
34
|
+
"run_at": "document_start",
|
|
35
|
+
"all_frames": true
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"icons": {
|
|
39
|
+
"16": "icon.png",
|
|
40
|
+
"48": "icon.png",
|
|
41
|
+
"128": "icon.png"
|
|
42
|
+
},
|
|
43
|
+
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5VchmHlrJnb3qdfZHjfJ4vTSD0x+l5+pSbQnpG+KEQeDsWxQWijsKuF7ervs0rVjHItMPGI5Wp40cnzNy0blQ8UwOjopDWp2u0b7y/opg7jlXAgWAXuuxf6XtDj8c3p3Udc4mQApttz6psY8wb1UOAx2YfMmrIMdZn+02B/wRgGbnZAvPrdkJuR1e51WQ0zcBFh8HXDwqeT9H/kaclWNyiW6mb+wJqFp73sByfB4D1dDQWuP0hO5KNmQ3HRIOb2UjUnncy2p1AU5E4SQhFW2UMNc8OcYzKGl2D8A8pnbBTM55aOH+D3A4w8rxmzvvSldfflwF+j2sxiP7h0/6VmIcwIDAQAB"
|
|
44
|
+
}
|