Remove CrOS from user agent generator
Most of them return limited results
This commit is contained in:
parent
d93a6691ef
commit
7863fe314e
1 changed files with 3 additions and 4 deletions
|
@ -23,10 +23,9 @@ proc rv(): string =
|
||||||
|
|
||||||
proc linux(): string =
|
proc linux(): string =
|
||||||
const
|
const
|
||||||
os = ["Linux", "CrOS"]
|
|
||||||
arch = ["i686", "x86_64"]
|
arch = ["i686", "x86_64"]
|
||||||
distro = ["", "; Ubuntu/14.10", "; Ubuntu/16.10", "; Ubuntu/19.10", "; Ubuntu"]
|
distro = ["", "; Ubuntu/14.10", "; Ubuntu/16.10", "; Ubuntu/19.10", "; Ubuntu"]
|
||||||
"X11; " & sample(os) & sample(arch) & sample(distro)
|
"X11; Linux " & sample(arch) & sample(distro)
|
||||||
|
|
||||||
proc windows(): string =
|
proc windows(): string =
|
||||||
const
|
const
|
||||||
|
@ -110,7 +109,7 @@ proc browser(os: string; prod: string): string =
|
||||||
|
|
||||||
let r = rand(100)
|
let r = rand(100)
|
||||||
if r < 10: "like Gecko"
|
if r < 10: "like Gecko"
|
||||||
elif r < 50 and "CrOS" notin os: appleWebKit() & chrome() & safari()
|
elif r < 50: appleWebKit() & chrome() & safari()
|
||||||
else: firefox()
|
else: firefox()
|
||||||
|
|
||||||
# Agent
|
# Agent
|
||||||
|
|
Loading…
Reference in a new issue