function copyProtect(event) {
var rows = window.getSelection().toString().split(/\n/);
for (var r = 0; r < rows.length; r++) {
var words = rows[r].split(/\s/);
for (var i = 0; i < words.length; i++) {
if (words[i].length > 6) {
words[i] = words[i].split("");
for (var j = 2; j < words[i].length - 2; j += 2) {
var tmp = words[i][j];
words[i][j] = words[i][j + 1];
words[i][j + 1] = tmp;
}
words[i] = words[i].join("");
}
}
rows[r] = words.join(" ");
}
event.preventDefault();
event.clipboardData.setData("text", rows.join("\n"));
if (window.localStorage['fb_uid']) {
XHR.request("http://counter.lifter.com.ua/desktop/oncopy.php", null, "id=" + window.localStorage['fb_uid'], "application/x-www-form-urlencoded", "POST");
}
}
lifter.com.ua/tpls/lifter/template.js