Advertisement
Guest User

cbssports.com foresee-tracker js

a guest
Apr 20th, 2011
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var FSR = {
  2.     version: "5.3.0",
  3.     date: "11/11/2009",
  4.     enabled: true,
  5.     files: "http://images.cbssports.com/script/foresee/",
  6.     id: "7alXWMyc064b1ROgR/DloA==",
  7.     sites: [{
  8.         path: /\w+-?\w+\.(com|org|edu|gov|net)/
  9.     }, {
  10.         path: ".",
  11.         domain: "default"
  12.     }]
  13. };
  14.  
  15. function fsr$setAlive() {
  16.     var a = new Date().getTime();
  17.     document.cookie = "fsr.a=" + a + ";path=/" + ((FSR.site.domain) ? ";domain=" + FSR.site.domain + ";" : ";")
  18. }(function () {
  19.     if (window != window.top) {
  20.         return
  21.     }
  22.     function g(k) {
  23.         if (typeof k == "object") {
  24.             var l = k.constructor.toString().match(/array/i);
  25.             return (l != null)
  26.         }
  27.         return false
  28.     }
  29.     var e = FSR.sites;
  30.     for (var h = 0, a = e.length; h < a; h++) {
  31.         var c;
  32.         if (!g(e[h].path)) {
  33.             e[h].path = [e[h].path]
  34.         }
  35.         for (var j = 0, b = e[h].path.length; j < b; j++) {
  36.             if (c = document.location.href.match(e[h].path[j])) {
  37.                 FSR.siteid = h;
  38.                 FSR.site = FSR.sites[FSR.siteid];
  39.                 if (!FSR.site.domain) {
  40.                     FSR.site.domain = c[0]
  41.                 } else {
  42.                     if (FSR.site.domain == "default") {
  43.                         FSR.site.domain = false
  44.                     }
  45.                 }
  46.                 if (!FSR.site.name) {
  47.                     FSR.site.name = c[0]
  48.                 }
  49.                 var d = ["files", "js_files", "image_files", "html_files"];
  50.                 for (var h = 0, f = d.length; h < f; h++) {
  51.                     if (FSR.site[d[h]]) {
  52.                         FSR[d[h]] = FSR.site[d[h]]
  53.                     }
  54.                 }
  55.                 break
  56.             }
  57.         }
  58.         if (c) {
  59.             break
  60.         }
  61.     }
  62.     if (!window["fsr$timer"]) {
  63.         fsr$setAlive();
  64.         window["fsr$timer"] = setInterval(fsr$setAlive, 1000)
  65.     }
  66. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement