domains/itbusinessnet.com.js
[app.webkitpdf] / domains / forbes.com.js
index dbb6116..7329bb3 100644 (file)
@@ -1,5 +1,7 @@
 
-(function (args) {
+// test http://www.forbes.com/sites/johnkang/2016/04/13/chinas-tech-giant-huawei-aims-to-double-b2b-revenue-by-2020/#44324814fe6d
+
+(function() {
     
    
     function readCookie(name) {
        return null;
     }
     var c = readCookie('forbesUtilCookie');
-    console.log(JSON.parse(c));
     
-    if (c && window.pathname.match(/forbes\/welcome/) {
         
+    var cfg =JSON.parse(c.replace(/'/g,'"'))
+    console.log(c);
+    if (c && window.location.pathname.match(/forbes\/welcome/) && cfg.toURL) {
+        console.log('firing redirect');
+        window.setTimeout(function() {
+            window.location = cfg.toURL;
+        }, 3000);
+            
     }
    
    
-})();
\ No newline at end of file
+})();
+    
+    
\ No newline at end of file