This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#智能手机浏览器 | |
70 UCBrowser/9.2 | |
70 UCWEB9.2 | |
71 UCBrowser/9.3 | |
71 UCWEB9.3 | |
72 UCBrowser/9.4 | |
72 UCWEB9.4 | |
73 UCBrowser/9.5 | |
73 UCWEB9.5 | |
74 UCBrowser/9.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 创建百度统计事件转化目标 | |
* | |
* 1. 首先确保在页面中已经给需要监控的元素都添加上了id。 | |
* 2. 在下列代码中的 name='';id='';url='' 单引号中间分别填入事件转化目标名称、元素id、页面URL。 | |
* 页面URL可以留空,表示该事件转化目标在全站都生效。 | |
* (例如 name='事件转化目标名称';id='some-id';url='http://some-site.com/some-page') | |
* 3. 在百度统计里进入”网站中心" -> "事件转化目标”页面,把上述修改好的代码粘贴到浏览器中,并按回车键。 | |
* (如果是Chrome/Firefox/IE9及以上版本浏览器,就粘贴到JS控制台里;如果是IE6/7/8浏览器,就粘贴到顶部地址栏里) | |
* 4. 如果提示”OK”,说明添加成功;如果出现其他提示,就说明出现了提示所指出的错误,请修改后重试。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% | |
String HM_T_URL = "http://crs.baidu.com/s?siteId=b85f7b63582228b88367e25879c8ae89&planId=23"; | |
String HM_T_CHARSET = "utf-8"; | |
StringBuilder hm_t_html = new StringBuilder(); | |
try { | |
String referer = java.net.URLEncoder.encode(request.getHeader("Referer")); | |
java.net.URL url = new java.net.URL(HM_T_URL + "&referer=" + referer); | |
java.net.URLConnection connection = url.openConnection(); | |
connection.setConnectTimeout(5000); | |
connection.setReadTimeout(5000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
awk 'BEGIN { for (i=0;i<=16;i++) hex[sprintf("%X",i)]=i; } | |
{ | |
for (i=1;i<=length($0);i++) { | |
c=substr($0,i,1) | |
if (c=="+") { printf (" "); } | |
else if (c=="%") { | |
printf ("%c",hex[substr($0,++i,1)]*16+hex[substr($0,++i,1)]) | |
} | |
else { printf (c); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import flash.external.*; | |
System.security.allowDomain("*"); | |
var MKT_AD_ID:String = '[AD_ID]', mktIsSent:Boolean, mktAllowScriptAccess:Boolean; | |
if (!mktIsSent && (mktIsSent = true)) { | |
try { | |
ExternalInterface.addCallback('mktGetAdId', null, function():String { mktAllowScriptAccess = true; return MKT_AD_ID; }); | |
ExternalInterface.call(['eval(\'(function() { var o = document.getElementsByTagName("*");', | |
'for (var i = 0, l = o.length; i < l; i++) {', | |
'if (!o[i].mktGetAdId || o[i].mktGetAdId() != "' + MKT_AD_ID + '") { continue; }', | |
'var parent = o[i].parentNode, next = o[i].nextSibling, mkt = document.createElement("script");', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header('Content-Type: text/html'); | |
$output = ' | |
<!DOCTYPE html> | |
<html> | |
<body style="margin:0;padding:0"> | |
<script> | |
var createHTML = function(id, url, width, height, flashvars) { | |
return \'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="\' + id + \'" width="\' + width + \'" height="\' + height + \'">\' + | |
\'<param name="movie" value="\' + url + \'" />\' + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1586 106.8.80.155 | |
1365 111.206.51.19 | |
1009 220.152.172.192 | |
1005 221.14.148.2 | |
960 60.28.16.0 | |
940 119.4.57.27 | |
834 101.229.49.5 | |
787 27.193.84.39 | |
786 183.15.120.119 | |
770 211.155.113.200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const AD_ID:String = 'bab76d78ff916132c83833ae30776fb7'; | |
var isMktSent:Boolean = isMktSent; | |
if (ExternalInterface.available && !isMktSent && (isMktSent = true)) { | |
ExternalInterface.addCallback('getMktAdId', function():String { return AD_ID; }); | |
ExternalInterface.call(['eval(\'(function() {', | |
'var o = document.getElementsByTagName("*");', | |
'for (var i in o) {', | |
'if (o[i].getMktAdId && o[i].getMktAdId() == "' + AD_ID + '") {', | |
'var hook = document.createElement("div"); hook.id = "_bdhm_mkt_' + AD_ID + '";', | |
'if (o[i].nextSibling) { o[i].parentNode.insertBefore(hook, o.nextSibling); }', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var JS_URL = 'crs.baidu.com/t.js'; | |
var RC_PATTERN = /rc:\[(.*?)\]/; | |
var args = require('system').args; | |
var page = require('webpage').create(); | |
var jsLoader = require('webpage').create(); | |
var pageURL = args[1]; | |
jsLoader.customHeaders = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
url=$1; | |
hmurl=`curl -s $url | grep -o 'hm.baidu.com/hm\?.js\(%3F\|?\)[0-9a-z]\{32\}'`; | |
hmjs=`curl -s 'http://'$(echo $hmurl | sed "s/%3F/\?/") -H "Referer:$url"`; | |
siteid=`echo $hmjs | grep -oP '(?<=id:")\w+'`; | |
plan=`echo $hmjs | grep -oP '(?<=rp:)[0-9]*'`; | |
curl -s "http://crs.baidu.com/t.js?siteId=$siteid&planId=$plan" -H "Referer:$url" | grep -oP '(?<=rc:\[)[^]]*' |