Remove CrOS from user agent generator
Most of them return limited results
This commit is contained in:
		
							parent
							
								
									d93a6691ef
								
							
						
					
					
						commit
						7863fe314e
					
				| 
						 | 
				
			
			@ -23,10 +23,9 @@ proc rv(): string =
 | 
			
		|||
 | 
			
		||||
proc linux(): string =
 | 
			
		||||
  const
 | 
			
		||||
    os = ["Linux", "CrOS"]
 | 
			
		||||
    arch = [" i686", " x86_64"]
 | 
			
		||||
    arch = ["i686", "x86_64"]
 | 
			
		||||
    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 =
 | 
			
		||||
  const
 | 
			
		||||
| 
						 | 
				
			
			@ -110,7 +109,7 @@ proc browser(os: string; prod: string): string =
 | 
			
		|||
 | 
			
		||||
  let r = rand(100)
 | 
			
		||||
  if r < 10: "like Gecko"
 | 
			
		||||
  elif r < 50 and "CrOS" notin os: appleWebKit() & chrome() & safari()
 | 
			
		||||
  elif r < 50: appleWebKit() & chrome() & safari()
 | 
			
		||||
  else: firefox()
 | 
			
		||||
 | 
			
		||||
# Agent
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue