domains/forbes.com.js
authorAlan Knowles <alan@roojs.com>
Thu, 14 Apr 2016 07:40:34 +0000 (15:40 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 14 Apr 2016 07:40:34 +0000 (15:40 +0800)
domains/forbes.com.js

index d94a8e3..44e75a2 100644 (file)
     }
     var c = readCookie('forbesUtilCookie');
     console.log(c);
-    console.log(JSON.parse(c.replace(/'/g,'"')));
-    
-    if (c && window.pathname.match(/forbes\/welcome/) {
-        
+    console.log();
+    var cfg =JSON.parse(c.replace(/'/g,'"'))
+    if (c && window.pathname.match(/forbes\/welcome/) && cfg.toURL) {
+        window.location = cfg.toURL
     }
    
    
 })();
     
-    
-    
-{'toURL':'http://www.forbes.com/sites/johnkang/2016/04/13/chinas-tech-giant-huawei-aims-to-double-b2b-revenue-by-2020/','refURL':'','referrer':''}
-{"toURL":"http://www.forbes.com/sites/johnkang/2016/04/13/chinas-tech-giant-huawei-aims-to-double-b2b-revenue-by-2020/","refURL":"","referrer":""}
\ No newline at end of file
+    
\ No newline at end of file