代码如下:
<code class="html"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="renderer" content="webkit"> <title>Todayafrica</title> <meta content="提供图书、电影、音乐唱片的推荐、评论和价格比较,以及城市独特的文化生活。" name="description"> <link href="http://img3.douban.com/f/shire/db7927efd7c2edda006ef42ebde14f5d90436788/css/frontpage/_init_.css" rel="stylesheet" type="text/css"> <script>_head_start = new Date();</script> <script src="http://img3.douban.com/f/shire/3d5cb5d1155d18c20ab9bd966387432a8a9f2008/js/core/_init_.js" data-cfg-corelib="http://img3.douban.com/f/shire/72ced6df41d4d158420cebdd254f9562942464e3/js/jquery.min.js"></script> <style type="text/css"></style> <link rel="stylesheet" href="http://img3.douban.com/misc/mixed_static/3a2fb2b1f7ebc9bb.css"> <script> Do.global('http://img3.douban.com/f/shire/e4d301029a110cc88722e153847a9588953e418f/js/douban.js'); </script> <link rel="shortcut icon" href="http://img3.douban.com/favicon.ico" type="image/x-icon"> <script type="text/javascript">var _body_start = new Date();</script> <script> EXPAND_SETTING_FORM = false; </script> <div id="db-isay" class="mod isay isay-disable has-commodity "> <form name="mbform" method="post" action="http://www.douban.com/"> <div style="display:none;"><input type="hidden" name="ck" value="xAN4"></div> <ul class="isay-links"> <li class="isay-main active"><a data-action="main" href="javascript:void(0);">说句话</a></li> <li class="isay-pic"><a data-action="pic" href="javascript:void(0);">发照片</a></li> <li class="isay-share"> <a data-action="share" href="javascript:void(0);">推荐网页</a> </li> <li class="notes-link"><a href="http://www.douban.com/note/create" title="添加日记">Write a dairy</a></li> <li class="commodity-link"> <a data-action="commodity" href="javascript:void(0)" title="发布东西">发布东西</a> <div class="publish-ways"> <div class="share"><a target="_blank" href="http://localhost/discuz/forum.php?mod=post&action=newthread&fid=214">Submit Products</a></div> <div class="review"><a target="_blank" href="http://dongxi.douban.com/article/create">写图文评论</a></div> <s class="arr"></s> <s class="arr-inner"></s> </div> </li> </ul> <div class="item"> <p class="highlighter mention-highlighter"></p> <p class="highlighter error-highlighter"></p> <label id="isay-label" for="isay-cont">分享生活点滴...</label> <textarea data-minheight="70" tabindex="1" id="isay-cont" name="comment" rows="1"></textarea> </div> <div id="isay-act-field" class="isay-act"></div> <div class="btn"> <span id="isay-counter"></span> <span class="bn-submit bn-flat"><input id="isay-submit" tabindex="1" type="submit" value="Submit"></span> <a target="_blank" href="http://www.douban.com/service/bookmarklet" class="lnk-share-tools" onclick="moreurl(this, {from:'index_rec'})">添加网页推荐工具</a> </div> </form> <div class="btn-group"> <form charset="utf-8" id="isay-upload" data-action="pic" action="/j/upload" enctype="multipart/form-data" method="post"> <div style="display:none;"><input type="hidden" name="ck" value="xAN4"></div> <input id="isay-upload-inp" tabindex="2" autocomplete="off" data-action="pic" name="image" title="可传多张照片" type="file" multiple> </form> <a href="javascript:void(0);" tabindex="-1" data-action="pic" class="ico ico-pic" title="上传照片">照片</a> <a href="javascript:void(0);" tabindex="2" data-action="topic" class="ico ico-topic" title="添加话题">话题</a> </div> </div> <script> UPLOAD_AUTH_TOKEN = '61254324:bb42173c63aaa58a7d64a51b5ecad1d951b3ed09'; UPLOAD_URL = '/j/upload'; SWFUPLOAD_FILES = ['http://img3.douban.com/f/shire/e00d8601c922bd0bca9b0090996fc6e79931a210/js/swfupload.js']; UPLOAD_LIMIT = 9; var isay_src = "http://img3.douban.com/f/sns/64589a80189514c396d085c6a8f13dbb1c825201/js/sns/widgets/isay_a.js"; var tagsug_src = "http://img3.douban.com/f/shire/4605e734f440a79abdf4866eb4e6c785dfefbba1/js/lib/tagsug.js"; </script> <script> window.crt_uid = "61254324"; </script> <script type="text/javascript"> </script><script type="text/javascript"> Do(function() { // 不再提醒 window.DOUBAN_SITE_URL = 'http://www.douban.com'; Douban.init_delete_reply_notify=function(b){var a=function(h){h.preventDefault();var d=$(h.target);var i=d[0].href.split("#")[1];var c=(window.DOUBAN_SITE_URL||"")+"/j/reply_notify/remove_notify?id="+i;$.ajax({url:c,dataType:"jsonp"});var f=d.closest(".item-req");if($.contains($(".top-nav-reminder")[0],f[0])){f=f.parent();var g=f.siblings().length;f.fadeOut(function(){f.remove()});if(g===0){f.closest(".bd").find(".no-new-notis").show()}}else{f.fadeOut()}};if(b.type==="click"){a(b)}else{$(b).click(a)}}; Douban.init_discard_notify=function(b){var a=function(i){i.preventDefault();var c=(window.DOUBAN_SITE_URL||"")+"/j/notification/discard";var f=$(i.target);var d=f[0].name;$.get(c,{id:d,ck:get_cookie("ck")},function(e){},"jsonp");var g=f.closest(".item-req");if($.contains($(".top-nav-reminder")[0],g[0])){g=g.parent();var h=g.siblings().length;g.fadeOut(function(){g.remove()});if(h===0){g.closest(".bd").find(".no-new-notis").show()}}else{g.fadeOut()}};if(b.type==="click"){a(b)}else{$(b).click(a)}}; var notimenu = $('#top-nav-notimenu'); notimenu.bind('moreitem:show', function() { $.ajax({ url: 'http://www.douban.com/j/notification/nav_pop', data: { ck: get_cookie('ck'), k: '61254324:19e0656ad91e3329633dab42a33996359e973861', from_push: notimenu.data('from_push') }, dataType: 'jsonp', success: function(e) { if (e.r) { return; } notimenu.html(e.s); if (e.n === 0) { $('#db-global-nav .top-nav-reminder .num').remove(); } else { $('#db-global-nav .top-nav-reminder .num span').html(e.n); } set_cookie({push_noty_num: e.n}); if (window.load_event_monitor) { load_event_monitor($('#db-global-nav')); } } }); }); var current_noty_num=current_doumail_num=0;function updateNotyNum(b){current_noty_num=b;var a=$("#db-global-nav .top-nav-reminder");if(!b){a.find(".num").remove();return}var c=a.find(".num span");if(!c.length){a.append('<span class="num"><span>'+b+"<i>")}else{c.html(b)}if(b>0&&b<10){a.css("margin-right","5px")}else{if(b>10){a.css("margin-right","15px")}}}function updateDoumailNum(b){current_doumail_num=b;var c=$("#top-nav-doumail-link");var a=c.find("em");if(!b){a.remove();return}var d="("+b+")";if(!a.length){c.append("<em>"+d+"")}else{a.html(d)}}function addCheckNotyLog(){$("#top-nav-notimenu").data("from_push","Y")}function addCheckDoumailLog(c){var b=document.getElementById("top-nav-doumail-link");b.onclick=function(){moreurl(this,{from:"check_doumail_from_push",uid:c})}}function showDesktopNotification(c){if(!window.Notification){return}if(!c.num){return}var b=get_cookie("enable_push_desktop_noty");b=b=="1";if(!b){return}var a="";if(c.type=="notification"){a="你收到一个新提醒"}else{if(c.type=="doumail"){a="你收到一封新豆邮"}else{return}}var d=new Notification("豆瓣",{body:a,tag:c.id,icon:"https://s.doubanio.com/pics/icon/dou36.png"});d.onclick=function(){window.focus();this.close()};d.onshow=function(){setTimeout(function(){d.close()},3000)}}function get_auth_token(a){$.ajax({url:DOUBAN_SITE_URL+"/j/push/get_token_with_ts",dataType:"jsonp",success:function(b){a(b.token,b.timestamp)}})}var timer=null;function startSyncNotyNumsCrossTabs(){clearTimeout(timer);timer=setTimeout(function(){var b=parseInt(get_cookie("push_noty_num")||"0",10),a=parseInt(get_cookie("push_doumail_num")||"0",10);if(b!=current_noty_num){updateNotyNum(b)}if(a!=current_doumail_num){updateDoumailNum(a)}if(!b&&!a){clearTimeout(timer)}else{timer=setTimeout(arguments.callee,1500)}},1500)}var retry_times=0,max_retry=50,retry_interval_unit=1000*3;function connectSSE(b,a,g){if(!window.EventSource){return}var d="notification:user:"+b,c=(b+"_"+g)+":"+a,i="http://push.douban.com:4394/sse?channel="+d+"&auth="+c;if(location.protocol=="https:"){i="https://push.douban.com:4397/sse?channel="+d+"&auth="+c}var f=null;try{f=new EventSource(i)}catch(h){return}f.addEventListener("open",function(){retry_times=0},false);f.addEventListener("error",function(j){if(this.readyState==EventSource.CLOSED||this.readyState==EventSource.CONNECTING){f.close();f=null;setTimeout(function(){retry_times+=1;if(retry_times<max_retry){get_auth_token(function(e,k){connectSSE(b,e,k)})}},retry_times*retry_interval_unit)}},false);f.addEventListener("message",function(k){var j=JSON.parse(k.data);if(j.type=="notification"){updateNotyNum(j.num);addCheckNotyLog();set_cookie({push_noty_num:j.num})}else{if(j.type=="doumail"){updateDoumailNum(j.num);addCheckDoumailLog(b);set_cookie({push_doumail_num:j.num})}}startSyncNotyNumsCrossTabs();showDesktopNotification(j)},false)}; connectSSE('61254324', 'c7a6fba1e9e2c95d0a7913834b1c8dbbab033d71', '1446618783'); set_cookie({ push_noty_num: 2, push_doumail_num: 8 }); startSyncNotyNumsCrossTabs(); }); </script><script type="text/javascript" src="http://img3.douban.com/misc/mixed_static/e9522903a8cfc73.js"></script> <!-- douban ad begin --> <script type="text/javascript"> (function (global) { var newNode = global.document.createElement('script'), existingNode = global.document.getElementsByTagName('script')[0], adSource = '//erebor.douban.com/', userId = '61254324', browserId = 'nbTyI6+t6zU', criteria = '3:/', preview = '', debug = false, adSlots = ['dale_homepage_login_top_right', 'dale_homepage_login_bottom_middle_right', 'dale_homepage_login_bottom_right', 'dale_homepage_online_activity_promo']; global.DoubanAdRequest = {src: adSource, uid: userId, bid: browserId, crtr: criteria, prv: preview, debug: debug}; global.DoubanAdSlots = (global.DoubanAdSlots || []).concat(adSlots); newNode.setAttribute('type', 'text/javascript'); newNode.setAttribute('src', 'http://img3.douban.com/f/shire/0a3e8bdd48446950d821b65613a24e86be2b067a/js/ad.js'); newNode.setAttribute('async', true); existingNode.parentNode.insertBefore(newNode, existingNode); })(this); </script> <!-- douban ad end --> <script type="text/javascript"> var _paq = _paq || []; _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var p=(('https:' == document.location.protocol) ? 'https' : 'http'), u=p+'://fundin.douban.com/'; _paq.push(['setTrackerUrl', u+'piwik']); _paq.push(['setSiteId', '100001']); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.defer=true; g.async=true; g.src=p+'://s.doubanio.com/dae/fundin/piwik.js'; s.parentNode.insertBefore(g,s); })(); </script> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-7019765-1']); _gaq.push(['_setCampNameKey', 'dcn']); _gaq.push(['_setCampSourceKey', 'dcs']); _gaq.push(['_setCampMediumKey', 'dcm']); _gaq.push(['_setCampTermKey', 'dct']); _gaq.push(['_setCampContentKey', 'dcc']); _gaq.push(['_addOrganic', 'baidu', 'word']); _gaq.push(['_addOrganic', 'soso', 'w']); _gaq.push(['_addOrganic', '3721', 'name']); _gaq.push(['_addOrganic', 'youdao', 'q']); _gaq.push(['_addOrganic', 'so.360.cn', 'q']); _gaq.push(['_addOrganic', 'vnet', 'kw']); _gaq.push(['_addOrganic', 'sogou', 'query']); _gaq.push(['_addIgnoredOrganic', '豆瓣']); _gaq.push(['_addIgnoredOrganic', 'douban']); _gaq.push(['_addIgnoredOrganic', '豆瓣网']); _gaq.push(['_addIgnoredOrganic', 'www.douban.com']); _gaq.push(['_setDomainName', '.douban.com']); _gaq.push(['_setCustomVar', 1, 'responsive_view_mode', 'desktop', 3]); _gaq.push(['_trackPageview']); _gaq.push(['_trackPageLoadTime']); _gaq.push(['_setVar', '6125']); window._ga_init = function() { var ga = document.createElement('script'); ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; ga.setAttribute('async', 'true'); document.documentElement.firstChild.appendChild(ga); }; if (window.addEventListener) { window.addEventListener('load', _ga_init, false); } else { window.attachEvent('onload', _ga_init); } </script> <!-- dis2-docker--> <script>_SPLITTEST='sns.can_shuo_subject,sns.album_tag'</script> <script>var _check_hijack = function () { var _sig = "nbTyI6+t", _login = true, bid = get_cookie('bid'); if (location.protocol != "file:" && ( typeof(bid) != "string" && _login || typeof(bid) == "string" && bid.substring(0,8) != _sig)) { location.href += (/\?/.test(location.href)?"&":"?") + ( "_r=" + Math.random().toString(16).substring(2)); }}; if (typeof(Do) != 'undefined') Do(_check_hijack); else if (typeof(get_cookie) != 'undefined') _check_hijack(); </script> </code>
代码如下:
<code class="html"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="renderer" content="webkit"> <title>Todayafrica</title> <meta content="提供图书、电影、音乐唱片的推荐、评论和价格比较,以及城市独特的文化生活。" name="description"> <link href="http://img3.douban.com/f/shire/db7927efd7c2edda006ef42ebde14f5d90436788/css/frontpage/_init_.css" rel="stylesheet" type="text/css"> <script>_head_start = new Date();</script> <script src="http://img3.douban.com/f/shire/3d5cb5d1155d18c20ab9bd966387432a8a9f2008/js/core/_init_.js" data-cfg-corelib="http://img3.douban.com/f/shire/72ced6df41d4d158420cebdd254f9562942464e3/js/jquery.min.js"></script> <style type="text/css"></style> <link rel="stylesheet" href="http://img3.douban.com/misc/mixed_static/3a2fb2b1f7ebc9bb.css"> <script> Do.global('http://img3.douban.com/f/shire/e4d301029a110cc88722e153847a9588953e418f/js/douban.js'); </script> <link rel="shortcut icon" href="http://img3.douban.com/favicon.ico" type="image/x-icon"> <script type="text/javascript">var _body_start = new Date();</script> <script> EXPAND_SETTING_FORM = false; </script> <div id="db-isay" class="mod isay isay-disable has-commodity "> <form name="mbform" method="post" action="http://www.douban.com/"> <div style="display:none;"><input type="hidden" name="ck" value="xAN4"></div> <ul class="isay-links"> <li class="isay-main active"><a data-action="main" href="javascript:void(0);">说句话</a></li> <li class="isay-pic"><a data-action="pic" href="javascript:void(0);">发照片</a></li> <li class="isay-share"> <a data-action="share" href="javascript:void(0);">推荐网页</a> </li> <li class="notes-link"><a href="http://www.douban.com/note/create" title="添加日记">Write a dairy</a></li> <li class="commodity-link"> <a data-action="commodity" href="javascript:void(0)" title="发布东西">发布东西</a> <div class="publish-ways"> <div class="share"><a target="_blank" href="http://localhost/discuz/forum.php?mod=post&action=newthread&fid=214">Submit Products</a></div> <div class="review"><a target="_blank" href="http://dongxi.douban.com/article/create">写图文评论</a></div> <s class="arr"></s> <s class="arr-inner"></s> </div> </li> </ul> <div class="item"> <p class="highlighter mention-highlighter"></p> <p class="highlighter error-highlighter"></p> <label id="isay-label" for="isay-cont">分享生活点滴...</label> <textarea data-minheight="70" tabindex="1" id="isay-cont" name="comment" rows="1"></textarea> </div> <div id="isay-act-field" class="isay-act"></div> <div class="btn"> <span id="isay-counter"></span> <span class="bn-submit bn-flat"><input id="isay-submit" tabindex="1" type="submit" value="Submit"></span> <a target="_blank" href="http://www.douban.com/service/bookmarklet" class="lnk-share-tools" onclick="moreurl(this, {from:'index_rec'})">添加网页推荐工具</a> </div> </form> <div class="btn-group"> <form charset="utf-8" id="isay-upload" data-action="pic" action="/j/upload" enctype="multipart/form-data" method="post"> <div style="display:none;"><input type="hidden" name="ck" value="xAN4"></div> <input id="isay-upload-inp" tabindex="2" autocomplete="off" data-action="pic" name="image" title="可传多张照片" type="file" multiple> </form> <a href="javascript:void(0);" tabindex="-1" data-action="pic" class="ico ico-pic" title="上传照片">照片</a> <a href="javascript:void(0);" tabindex="2" data-action="topic" class="ico ico-topic" title="添加话题">话题</a> </div> </div> <script> UPLOAD_AUTH_TOKEN = '61254324:bb42173c63aaa58a7d64a51b5ecad1d951b3ed09'; UPLOAD_URL = '/j/upload'; SWFUPLOAD_FILES = ['http://img3.douban.com/f/shire/e00d8601c922bd0bca9b0090996fc6e79931a210/js/swfupload.js']; UPLOAD_LIMIT = 9; var isay_src = "http://img3.douban.com/f/sns/64589a80189514c396d085c6a8f13dbb1c825201/js/sns/widgets/isay_a.js"; var tagsug_src = "http://img3.douban.com/f/shire/4605e734f440a79abdf4866eb4e6c785dfefbba1/js/lib/tagsug.js"; </script> <script> window.crt_uid = "61254324"; </script> <script type="text/javascript"> </script><script type="text/javascript"> Do(function() { // 不再提醒 window.DOUBAN_SITE_URL = 'http://www.douban.com'; Douban.init_delete_reply_notify=function(b){var a=function(h){h.preventDefault();var d=$(h.target);var i=d[0].href.split("#")[1];var c=(window.DOUBAN_SITE_URL||"")+"/j/reply_notify/remove_notify?id="+i;$.ajax({url:c,dataType:"jsonp"});var f=d.closest(".item-req");if($.contains($(".top-nav-reminder")[0],f[0])){f=f.parent();var g=f.siblings().length;f.fadeOut(function(){f.remove()});if(g===0){f.closest(".bd").find(".no-new-notis").show()}}else{f.fadeOut()}};if(b.type==="click"){a(b)}else{$(b).click(a)}}; Douban.init_discard_notify=function(b){var a=function(i){i.preventDefault();var c=(window.DOUBAN_SITE_URL||"")+"/j/notification/discard";var f=$(i.target);var d=f[0].name;$.get(c,{id:d,ck:get_cookie("ck")},function(e){},"jsonp");var g=f.closest(".item-req");if($.contains($(".top-nav-reminder")[0],g[0])){g=g.parent();var h=g.siblings().length;g.fadeOut(function(){g.remove()});if(h===0){g.closest(".bd").find(".no-new-notis").show()}}else{g.fadeOut()}};if(b.type==="click"){a(b)}else{$(b).click(a)}}; var notimenu = $('#top-nav-notimenu'); notimenu.bind('moreitem:show', function() { $.ajax({ url: 'http://www.douban.com/j/notification/nav_pop', data: { ck: get_cookie('ck'), k: '61254324:19e0656ad91e3329633dab42a33996359e973861', from_push: notimenu.data('from_push') }, dataType: 'jsonp', success: function(e) { if (e.r) { return; } notimenu.html(e.s); if (e.n === 0) { $('#db-global-nav .top-nav-reminder .num').remove(); } else { $('#db-global-nav .top-nav-reminder .num span').html(e.n); } set_cookie({push_noty_num: e.n}); if (window.load_event_monitor) { load_event_monitor($('#db-global-nav')); } } }); }); var current_noty_num=current_doumail_num=0;function updateNotyNum(b){current_noty_num=b;var a=$("#db-global-nav .top-nav-reminder");if(!b){a.find(".num").remove();return}var c=a.find(".num span");if(!c.length){a.append('<span class="num"><span>'+b+"<i>")}else{c.html(b)}if(b>0&&b<10){a.css("margin-right","5px")}else{if(b>10){a.css("margin-right","15px")}}}function updateDoumailNum(b){current_doumail_num=b;var c=$("#top-nav-doumail-link");var a=c.find("em");if(!b){a.remove();return}var d="("+b+")";if(!a.length){c.append("<em>"+d+"")}else{a.html(d)}}function addCheckNotyLog(){$("#top-nav-notimenu").data("from_push","Y")}function addCheckDoumailLog(c){var b=document.getElementById("top-nav-doumail-link");b.onclick=function(){moreurl(this,{from:"check_doumail_from_push",uid:c})}}function showDesktopNotification(c){if(!window.Notification){return}if(!c.num){return}var b=get_cookie("enable_push_desktop_noty");b=b=="1";if(!b){return}var a="";if(c.type=="notification"){a="你收到一个新提醒"}else{if(c.type=="doumail"){a="你收到一封新豆邮"}else{return}}var d=new Notification("豆瓣",{body:a,tag:c.id,icon:"https://s.doubanio.com/pics/icon/dou36.png"});d.onclick=function(){window.focus();this.close()};d.onshow=function(){setTimeout(function(){d.close()},3000)}}function get_auth_token(a){$.ajax({url:DOUBAN_SITE_URL+"/j/push/get_token_with_ts",dataType:"jsonp",success:function(b){a(b.token,b.timestamp)}})}var timer=null;function startSyncNotyNumsCrossTabs(){clearTimeout(timer);timer=setTimeout(function(){var b=parseInt(get_cookie("push_noty_num")||"0",10),a=parseInt(get_cookie("push_doumail_num")||"0",10);if(b!=current_noty_num){updateNotyNum(b)}if(a!=current_doumail_num){updateDoumailNum(a)}if(!b&&!a){clearTimeout(timer)}else{timer=setTimeout(arguments.callee,1500)}},1500)}var retry_times=0,max_retry=50,retry_interval_unit=1000*3;function connectSSE(b,a,g){if(!window.EventSource){return}var d="notification:user:"+b,c=(b+"_"+g)+":"+a,i="http://push.douban.com:4394/sse?channel="+d+"&auth="+c;if(location.protocol=="https:"){i="https://push.douban.com:4397/sse?channel="+d+"&auth="+c}var f=null;try{f=new EventSource(i)}catch(h){return}f.addEventListener("open",function(){retry_times=0},false);f.addEventListener("error",function(j){if(this.readyState==EventSource.CLOSED||this.readyState==EventSource.CONNECTING){f.close();f=null;setTimeout(function(){retry_times+=1;if(retry_times<max_retry){get_auth_token(function(e,k){connectSSE(b,e,k)})}},retry_times*retry_interval_unit)}},false);f.addEventListener("message",function(k){var j=JSON.parse(k.data);if(j.type=="notification"){updateNotyNum(j.num);addCheckNotyLog();set_cookie({push_noty_num:j.num})}else{if(j.type=="doumail"){updateDoumailNum(j.num);addCheckDoumailLog(b);set_cookie({push_doumail_num:j.num})}}startSyncNotyNumsCrossTabs();showDesktopNotification(j)},false)}; connectSSE('61254324', 'c7a6fba1e9e2c95d0a7913834b1c8dbbab033d71', '1446618783'); set_cookie({ push_noty_num: 2, push_doumail_num: 8 }); startSyncNotyNumsCrossTabs(); }); </script><script type="text/javascript" src="http://img3.douban.com/misc/mixed_static/e9522903a8cfc73.js"></script> <!-- douban ad begin --> <script type="text/javascript"> (function (global) { var newNode = global.document.createElement('script'), existingNode = global.document.getElementsByTagName('script')[0], adSource = '//erebor.douban.com/', userId = '61254324', browserId = 'nbTyI6+t6zU', criteria = '3:/', preview = '', debug = false, adSlots = ['dale_homepage_login_top_right', 'dale_homepage_login_bottom_middle_right', 'dale_homepage_login_bottom_right', 'dale_homepage_online_activity_promo']; global.DoubanAdRequest = {src: adSource, uid: userId, bid: browserId, crtr: criteria, prv: preview, debug: debug}; global.DoubanAdSlots = (global.DoubanAdSlots || []).concat(adSlots); newNode.setAttribute('type', 'text/javascript'); newNode.setAttribute('src', 'http://img3.douban.com/f/shire/0a3e8bdd48446950d821b65613a24e86be2b067a/js/ad.js'); newNode.setAttribute('async', true); existingNode.parentNode.insertBefore(newNode, existingNode); })(this); </script> <!-- douban ad end --> <script type="text/javascript"> var _paq = _paq || []; _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var p=(('https:' == document.location.protocol) ? 'https' : 'http'), u=p+'://fundin.douban.com/'; _paq.push(['setTrackerUrl', u+'piwik']); _paq.push(['setSiteId', '100001']); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.defer=true; g.async=true; g.src=p+'://s.doubanio.com/dae/fundin/piwik.js'; s.parentNode.insertBefore(g,s); })(); </script> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-7019765-1']); _gaq.push(['_setCampNameKey', 'dcn']); _gaq.push(['_setCampSourceKey', 'dcs']); _gaq.push(['_setCampMediumKey', 'dcm']); _gaq.push(['_setCampTermKey', 'dct']); _gaq.push(['_setCampContentKey', 'dcc']); _gaq.push(['_addOrganic', 'baidu', 'word']); _gaq.push(['_addOrganic', 'soso', 'w']); _gaq.push(['_addOrganic', '3721', 'name']); _gaq.push(['_addOrganic', 'youdao', 'q']); _gaq.push(['_addOrganic', 'so.360.cn', 'q']); _gaq.push(['_addOrganic', 'vnet', 'kw']); _gaq.push(['_addOrganic', 'sogou', 'query']); _gaq.push(['_addIgnoredOrganic', '豆瓣']); _gaq.push(['_addIgnoredOrganic', 'douban']); _gaq.push(['_addIgnoredOrganic', '豆瓣网']); _gaq.push(['_addIgnoredOrganic', 'www.douban.com']); _gaq.push(['_setDomainName', '.douban.com']); _gaq.push(['_setCustomVar', 1, 'responsive_view_mode', 'desktop', 3]); _gaq.push(['_trackPageview']); _gaq.push(['_trackPageLoadTime']); _gaq.push(['_setVar', '6125']); window._ga_init = function() { var ga = document.createElement('script'); ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; ga.setAttribute('async', 'true'); document.documentElement.firstChild.appendChild(ga); }; if (window.addEventListener) { window.addEventListener('load', _ga_init, false); } else { window.attachEvent('onload', _ga_init); } </script> <!-- dis2-docker--> <script>_SPLITTEST='sns.can_shuo_subject,sns.album_tag'</script> <script>var _check_hijack = function () { var _sig = "nbTyI6+t", _login = true, bid = get_cookie('bid'); if (location.protocol != "file:" && ( typeof(bid) != "string" && _login || typeof(bid) == "string" && bid.substring(0,8) != _sig)) { location.href += (/\?/.test(location.href)?"&":"?") + ( "_r=" + Math.random().toString(16).substring(2)); }}; if (typeof(Do) != 'undefined') Do(_check_hijack); else if (typeof(get_cookie) != 'undefined') _check_hijack(); </script> </code>