Skip to content

Commit 1681a07

Browse files
authored
Update torupload.txt
1 parent b9913fe commit 1681a07

1 file changed

Lines changed: 0 additions & 76 deletions

File tree

torupload.txt

Lines changed: 0 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -73,79 +73,3 @@ author: BlazeFTL
7373
});
7474
window.addEventListener('load', () => { observer.disconnect(); Document.prototype.createElement = _origCreate; }, { once: true });
7575
})();
76-
77-
/// blaze-set-useragent.js
78-
/// alias blaze-sua.js
79-
(function() {
80-
const UA_ANDROID = 'Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Mobile Safari/537.36';
81-
const UA_DESKTOP = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36';
82-
83-
const isMobile = /Android|iPhone|iPad|iPod|Mobile/i.test(navigator.userAgent);
84-
const spoofUA = isMobile ? UA_ANDROID : UA_DESKTOP;
85-
86-
try {
87-
Object.defineProperty(navigator, 'userAgent', {
88-
get: () => spoofUA,
89-
configurable: true,
90-
});
91-
} catch(e) {}
92-
93-
try {
94-
Object.defineProperty(navigator, 'appVersion', {
95-
get: () => spoofUA.replace('Mozilla/', ''),
96-
configurable: true,
97-
});
98-
} catch(e) {}
99-
100-
try {
101-
Object.defineProperty(navigator, 'platform', {
102-
get: () => isMobile ? 'Linux armv8l' : 'Win32',
103-
configurable: true,
104-
});
105-
} catch(e) {}
106-
107-
try {
108-
Object.defineProperty(navigator, 'vendor', {
109-
get: () => 'Google Inc.',
110-
configurable: true,
111-
});
112-
} catch(e) {}
113-
114-
// Spoof navigator.userAgentData (Chrome-only modern UA hints API)
115-
if (navigator.userAgentData !== undefined) {
116-
try {
117-
Object.defineProperty(navigator, 'userAgentData', {
118-
get: () => ({
119-
brands: [
120-
{ brand: 'Google Chrome', version: '137' },
121-
{ brand: 'Chromium', version: '137' },
122-
{ brand: 'Not/A)Brand', version: '24' },
123-
],
124-
mobile: isMobile,
125-
platform: isMobile ? 'Android' : 'Windows',
126-
getHighEntropyValues: (hints) => Promise.resolve({
127-
brands: [
128-
{ brand: 'Google Chrome', version: '137' },
129-
{ brand: 'Chromium', version: '137' },
130-
{ brand: 'Not/A)Brand', version: '24' },
131-
],
132-
mobile: isMobile,
133-
platform: isMobile ? 'Android' : 'Windows',
134-
platformVersion: isMobile ? '10.0.0' : '15.0.0',
135-
architecture: isMobile ? 'arm' : 'x86',
136-
bitness: '64',
137-
model: isMobile ? '' : '',
138-
uaFullVersion: '137.0.0.0',
139-
fullVersionList: [
140-
{ brand: 'Google Chrome', version: '137.0.0.0' },
141-
{ brand: 'Chromium', version: '137.0.0.0' },
142-
{ brand: 'Not/A)Brand', version: '24.0.0.0' },
143-
],
144-
}),
145-
toJSON: () => ({}),
146-
}),
147-
configurable: true,
148-
});
149-
} catch(e) {}
150-
}
151-
})();

0 commit comments

Comments
 (0)