repo.or.cz
/
Backup_bans.verniy.xyz.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Initialization of Logs/4Chan_Bans_Log-Reverse_Chrono-416.json
[Backup_bans.verniy.xyz.git]
/
Scripts
/
BrowserDetect.js
blob
27a32edf444dd8c93ca650c8ecd16ea2043d0f05
1
var
is_ff
=
false
;
2
var
is_chrome
=
false
;
3
4
function
detectBrowser
(){
5
if
(
navigator
.
userAgent
.
indexOf
(
"Firefox"
) != -
1
){
6
is_ff
=
true
;
7
}
8
else if
(
navigator
.
userAgent
.
indexOf
(
"Chrome"
) != -
1
){
9
is_chrome
=
true
;
10
}
11
}
12
13
function
setNodeHref
(
node
,
href_c
,
href_ff
,
href_def
){
14
if
(
is_ff
){
15
node
.
href
=
href_ff
;
16
}
17
else if
(
is_chrome
){
18
node
.
href
=
href_c
;
19
}
20
else
node
.
href
=
href_def
;
21
}