本帖最后由 fcerebel 于 2011-12-20 18:58 编辑
订阅Chinalist
或者说,使用Google Chrome/Firefox,并使用Adblock plus/Adblock扩展时
因为我的行为,chinalist开始屏蔽卡饭的,以及其它的(特别是与phpwind,DiscuZ论坛程序有关网站的)通过lianjie.phpwind.com执行的淘宝客代码。
据管理员:
phpwind那边联系做出一个测试,说是不会对论坛造成不良影响,也不会影响速度,也不会影响会员利益,所以不管有没有收益都无妨了。
我以为:
这条代码会不必要地向阿里巴巴透露了kafan用户的信息。我将力所能及地纠正这种行为
如果不希望屏蔽它的话,请在adblock (plus)的过滤列表中,找到这句话- ||lianjie.phpwind.com^$third-party
复制代码 然后
- 把这句话注释掉
- 或者删除这句话
- 或者新建一个白名单
- 或者也可以禁用乃至删除adblock (plus)扩展
注释的方法:
在开头加一个感叹号"!"
例如- !||lianjie.phpwind.com^$third-party
复制代码 添加白名单的方法:
在开头加两个at符号"@@"
例如- @@||lianjie.phpwind.com^$third-party
复制代码 -------------------------------------------------------------------------------
卡饭的页面上有一个来自phpwind的js脚本
http://lianjie.phpwind.com/static/js/app.js
进去一看,居然是淘宝客啊淘宝客!!!
这是怎么回事啊?
app.js内容(已排版)- var taobaoke = {
- host: "t.pianyi.taobao.com/index.php?m=jump",
- userhash: "",
- hash: null,
- py: null,
- inframe: 0,
- member: "",
- memberUid: 0,
- mac: "",
- linkInfo: "",
- ignore_class: "_J_py_ignore",
- whiteList: [/^(onsale\.manyi\.taobao)\.com/i, /^(manyi\.taobao)\.com/i, /^(pianyi\.taobao)\.com/i, /^(remai\.manyi\.taobao)\.com/i, /^(t\.pianyi\.taobao)\.com/i, /^(taomanyi\.taobao)\.com/i],
- $: function(d) {
- return document.getElementById(d)
- },
- isGecko: function() {
- return navigator.userAgent.indexOf("Gecko") == -1 ? false: true
- },
- isOpera: function() {
- return navigator.userAgent.indexOf("Opera") ==
- -1 ? false: true
- },
- isIE: function() {
- return document.all ? true: false
- },
- isNull: function(d) {
- return "" == d || null == d || undefined == d ? true: false
- },
- isPhpWind: function() {
- if (window.winduid != undefined) return true;
- return false
- },
- findObj: function(d) {
- for (var i = 0; i < 10; i++) if ("object" == typeof d && typeof d.tagName != "undefined") {
- var j = d.tagName.toLowerCase();
- if ("a" == j || "area" == j) {
- if (this.isIgnoreConvert(d)) break;
- return d
- }
- if ("body" == j) break;
- d = d.parentNode
- } else break;
- return null
- },
- analyseUrl: function(d) {
- d = d.replace(/(^\s*)|(\s*$)/g,
- "").replace(/^http:\/\//g, "");
- return this.urlFilter(d) ? "": /^([\w|\.|-]+\.taobao|p\.alimama|[\w|\.|-]+\.tmall)\.com/i.exec(d) ? "http:// + d: ""
- },
- urlFilter: function(d) {
- var i;
- for (i = this.whiteList.length; --i >= 0;) if (this.whiteList[i].exec(d)) return true;
- return false
- },
- secondURI: function(d) {
- if (/(^|\?|&)[^&]*=([^&]+.taobao.com[^&]*)(\s|&|$)/i.test(d)) return unescape(RegExp.$2.replace(/\+/g, " "));
- return ""
- },
- foundAdd: function() {
- var d = "&sitehash=" + this.userhash + "&winduid=" + this.member + "&windid=" + this.memberUid;
- if (0 == this.inframe) d += "&from=" + encodeURIComponent(window.location.href);
- else {
- var i = this.referer();
- this.isNull(i) || (d += "&from=" + encodeURIComponent(i))
- }
- if (this.isNull(this.getck("mac"))) {
- this.setck("mac", this.hash);
- this.mac = this.hash
- } else this.mac = this.getck("mac");
- d += "&mac=" + this.mac + "&py=" + this.py;
- this.linkInfo = d
- },
- referer: function() {
- var d = document.referrer;
- if (!d) try {
- if (window.opener) d = window.opener.location.href
- } catch(i) {}
- return d
- },
- linkify: function(d) {
- var i,
- j;
- if (d.nodeType == 3) {
- i = d.data.search(/((https?)|(ftp))\:\/\/[^\s]*[^.,">\s\)\]]/);
- if (i >= 0) {
- i = d.splitText(i);
- i.splitText(RegExp.lastMatch.length);
- j = document.createElement("A");
- j.href = i.data;
- j.target = "_blank";
- j.appendChild(i);
- d.parentNode.insertBefore(j, d.nextSibling)
- }
- i = d.data.search(/www[^\s]*[^.,">\s\)\]]/);
- if (i >= 0) {
- i = d.splitText(i);
- i.splitText(RegExp.lastMatch.length);
- j = document.createElement("A");
- j.href = "http:// + i.data;
- j.target = "_blank";
- j.appendChild(i);
- d.parentNode.insertBefore(j, d.nextSibling)
- }
- } else if (d.tagName != "STYLE" && d.tagName != "SCRIPT" && d.tagName != "A") for (i = 0; j = d.childNodes[i]; ++i) this.linkify(j)
- },
- hasClass: function(d, i) {
- return d.className.indexOf(i) != -1
- },
- isIgnoreConvert: function(d) {
- if (this.hasClass(d, this.ignore_class)) return true;
- else if ("object" == typeof d.parentNode) return this.hasClass(d.parentNode, this.ignore_class)
- },
- loopFrames: function(d) {
- for (var i = 0; i <= d.length; i++) try {
- b = d.document.body;
- b.normalize();
- this.linkify(b)
- } catch(j) {}
- },
- __main__: function() {
- this.getWindid();
- this.getWinduid();
- this.inframe = window != parent;
- this.foundAdd();
- this._rewritePWchickUrl()
- },
- setck: function(d, i) {
- var j = new Date,
- l = (24 - j.getHours()) * 36E5;
- j.setTime(j.getTime() + l);
- document.cookie = d + "=" + escape(i) + ";expires=" + j.toGMTString()
- },
- getck: function(d) {
- d = document.cookie.match(RegExp("(^| )" + d + "=([^;]*)(;|$)"));
- if (d != null) return unescape(d[2]);
- return null
- },
- getWindid: function() {
- if (typeof window.windid != undefined) this.member = window.windid
- },
- getWinduid: function() {
- if (typeof window.winduid != undefined) this.memberUid = window.winduid
- },
- _rewritePWchickUrl: function() {
- var d = this;
- if (this.isPhpWind() == true && typeof window.checkUrl == "function") {
- var i =
- window.checkUrl;
- window.checkUrl = function(j) {
- var l = j.href,
- k = d.analyseUrl(j.href);
- if (1 < k.length) {
- k = "http:// + d.host + "&to=" + encodeURIComponent(k) + d.linkInfo;
- j.href = k
- }
- k = i(j);
- j.href = l;
- return k
- }
- }
- },
- chushi: function() {
- return this
- },
- pwhash: function(d) {
- if (!this.isNull(d)) this.userhash = d
- },
- creathash: function() {
- var d = new Date,
- i = d.getYear(),
- j = d.getMonth() + 1,
- l = d.getDate(),
- k = d.getHours(),
- n = d.getMinutes();
- d = d.getSeconds();
- i = i + "-" + j + "-" + l + " " + k + ":" + n + ":" + d + this.member + this.memberUid + this.userhash;
- this.hash = i = this.hex_md5(i)
- },
- exchange: function() {
- var d = this;
- this.__main__();
- document.onclick = function(i) {
- try {
- i = i || window.event;
- var j = i.target || i.srcElement;
- j = d.findObj(j);
- if (null != j) {
- var l = d.analyseUrl(j.href);
- if (1 > l.length) {
- l = d.secondURI(j.href);
- if (1 > l.length) return
- }
- var k = "http:// + d.host + "&to=" + encodeURIComponent(l) + d.linkInfo;
- if (j.target == "_blank") {
- var n = j.href;
- setTimeout(function() {
- j.href = n
- },
- 500)
- }
- j.href = k
- }
- } catch(a) {
- return 1
- }
- }
- },
- setpy: function(d) {
- if (!this.isNull(d)) this.py = d
- }
- };
- (function() {
- function d(a, g, c, e, f, h, m) {
- return k(n(k(k(a, g & c | ~g & e), k(f, m)), h), g)
- }
- function i(a, g, c, e, f, h, m) {
- return k(n(k(k(a, g & e | c & ~e), k(f, m)), h), g)
- }
- function j(a, g, c, e, f, h, m) {
- return k(n(k(k(a, g ^ c ^ e), k(f, m)), h), g)
- }
- function l(a, g, c, e, f, h, m) {
- return k(n(k(k(a, c ^ (g | ~e)), k(f, m)), h), g)
- }
- function k(a, g) {
- var c = (a & 65535) + (g & 65535);
- return (a >> 16) + (g >> 16) + (c >> 16) << 16 | c & 65535
- }
- function n(a, g) {
- return a << g | a >>> 32 - g
- }
- taobaoke.hex_md5 = function(a) {
- for (var g = [], c = 0; c < a.length * 8; c += 8) g[c >> 5] |= (a.charCodeAt(c / 8) & 255) << c % 32;
- a = a.length * 8;
- g[a >> 5] |= 128 << a % 32;
- g[(a + 64 >>> 9 << 4) + 14] = a;
- a = 1732584193;
- c = -271733879;
- for (var e = -1732584194, f = 271733878, h = 0; h < g.length; h += 16) {
- var m = a,
- o = c,
- p = e,
- q = f;
- a = d(a, c, e, f, g[h + 0], 7, -680876936);
- f = d(f, a, c, e, g[h + 1], 12, -389564586);
- e = d(e, f, a, c, g[h + 2], 17, 606105819);
- c = d(c, e, f, a, g[h + 3], 22, -1044525330);
- a = d(a, c, e, f, g[h + 4], 7, -176418897);
- f = d(f, a, c, e, g[h + 5], 12, 1200080426);
- e = d(e, f, a, c, g[h + 6], 17, -1473231341);
- c = d(c, e, f, a, g[h + 7], 22, -45705983);
- a = d(a, c, e, f, g[h + 8], 7, 1770035416);
- f = d(f, a, c, e, g[h + 9], 12, -1958414417);
- e = d(e, f,
- a, c, g[h + 10], 17, -42063);
- c = d(c, e, f, a, g[h + 11], 22, -1990404162);
- a = d(a, c, e, f, g[h + 12], 7, 1804603682);
- f = d(f, a, c, e, g[h + 13], 12, -40341101);
- e = d(e, f, a, c, g[h + 14], 17, -1502002290);
- c = d(c, e, f, a, g[h + 15], 22, 1236535329);
- a = i(a, c, e, f, g[h + 1], 5, -165796510);
- f = i(f, a, c, e, g[h + 6], 9, -1069501632);
- e = i(e, f, a, c, g[h + 11], 14, 643717713);
- c = i(c, e, f, a, g[h + 0], 20, -373897302);
- a = i(a, c, e, f, g[h + 5], 5, -701558691);
- f = i(f, a, c, e, g[h + 10], 9, 38016083);
- e = i(e, f, a, c, g[h + 15], 14, -660478335);
- c = i(c, e, f, a, g[h + 4], 20, -405537848);
- a = i(a, c, e, f, g[h + 9], 5, 568446438);
- f =
- i(f, a, c, e, g[h + 14], 9, -1019803690);
- e = i(e, f, a, c, g[h + 3], 14, -187363961);
- c = i(c, e, f, a, g[h + 8], 20, 1163531501);
- a = i(a, c, e, f, g[h + 13], 5, -1444681467);
- f = i(f, a, c, e, g[h + 2], 9, -51403784);
- e = i(e, f, a, c, g[h + 7], 14, 1735328473);
- c = i(c, e, f, a, g[h + 12], 20, -1926607734);
- a = j(a, c, e, f, g[h + 5], 4, -378558);
- f = j(f, a, c, e, g[h + 8], 11, -2022574463);
- e = j(e, f, a, c, g[h + 11], 16, 1839030562);
- c = j(c, e, f, a, g[h + 14], 23, -35309556);
- a = j(a, c, e, f, g[h + 1], 4, -1530992060);
- f = j(f, a, c, e, g[h + 4], 11, 1272893353);
- e = j(e, f, a, c, g[h + 7], 16, -155497632);
- c = j(c, e, f, a, g[h + 10], 23, -1094730640);
- a = j(a, c, e, f, g[h + 13], 4, 681279174);
- f = j(f, a, c, e, g[h + 0], 11, -358537222);
- e = j(e, f, a, c, g[h + 3], 16, -722521979);
- c = j(c, e, f, a, g[h + 6], 23, 76029189);
- a = j(a, c, e, f, g[h + 9], 4, -640364487);
- f = j(f, a, c, e, g[h + 12], 11, -421815835);
- e = j(e, f, a, c, g[h + 15], 16, 530742520);
- c = j(c, e, f, a, g[h + 2], 23, -995338651);
- a = l(a, c, e, f, g[h + 0], 6, -198630844);
- f = l(f, a, c, e, g[h + 7], 10, 1126891415);
- e = l(e, f, a, c, g[h + 14], 15, -1416354905);
- c = l(c, e, f, a, g[h + 5], 21, -57434055);
- a = l(a, c, e, f, g[h + 12], 6, 1700485571);
- f = l(f, a, c, e, g[h + 3], 10, -1894986606);
- e = l(e, f, a, c, g[h + 10], 15, -1051523);
- c = l(c, e, f, a, g[h + 1], 21, -2054922799);
- a = l(a, c, e, f, g[h + 8], 6, 1873313359);
- f = l(f, a, c, e, g[h + 15], 10, -30611744);
- e = l(e, f, a, c, g[h + 6], 15, -1560198380);
- c = l(c, e, f, a, g[h + 13], 21, 1309151649);
- a = l(a, c, e, f, g[h + 4], 6, -145523070);
- f = l(f, a, c, e, g[h + 11], 10, -1120210379);
- e = l(e, f, a, c, g[h + 2], 15, 718787259);
- c = l(c, e, f, a, g[h + 9], 21, -343485551);
- a = k(a, m);
- c = k(c, o);
- e = k(e, p);
- f = k(f, q)
- }
- g = [a, c, e, f];
- a = "";
- for (c = 0; c < g.length * 4; c++) a += "0123456789abcdef".charAt(g[c >> 2] >> c % 4 * 8 + 4 & 15) + "0123456789abcdef".charAt(g[c >> 2] >> c % 4 * 8 & 15);
- return a
- }
- })();
复制代码 |