Fix duplicate user agents
This commit is contained in:
parent
fb083bdc92
commit
329bf64d4f
3
.github/updateUserAgents.js
vendored
3
.github/updateUserAgents.js
vendored
@ -9,7 +9,8 @@ for (let i = 0; i < 10; i++) {
|
|||||||
|
|
||||||
// only use Windows and Linux user agents and exclude Internet Explorer ones
|
// only use Windows and Linux user agents and exclude Internet Explorer ones
|
||||||
while (!(userAgent.data.platform.startsWith('Win') || userAgent.data.platform.startsWith('Linux'))
|
while (!(userAgent.data.platform.startsWith('Win') || userAgent.data.platform.startsWith('Linux'))
|
||||||
|| userAgent.data.userAgent.includes('; MSIE') || userAgent.data.userAgent.includes('Trident/')) {
|
|| userAgent.data.userAgent.includes('; MSIE') || userAgent.data.userAgent.includes('Trident/')
|
||||||
|
|| userAgents.includes(userAgent.toString())) {
|
||||||
userAgent = generator.random();
|
userAgent = generator.random();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user