Initialization of Logs/4Chan_Bans_Log-Reverse_Chrono-416.json
[Backup_bans.verniy.xyz.git] / Scripts / BrowserDetect.js
blob27a32edf444dd8c93ca650c8ecd16ea2043d0f05
1 var is_ff = false;
2 var is_chrome = false;
4 function detectBrowser(){
5 if(navigator.userAgent.indexOf("Firefox") != -1){
6 is_ff = true;
8 else if (navigator.userAgent.indexOf("Chrome") != -1){
9 is_chrome = true;
13 function setNodeHref(node, href_c, href_ff, href_def){
14 if(is_ff){
15 node.href = href_ff;
17 else if(is_chrome){
18 node.href = href_c;
20 else node.href = href_def;