... dołączyć do sojuszników A.H.
THE TIMES OF IZRAEL
javascript:
function p() {
"use strict";
var x = document.getElementsByClassName("ci");
var i = 0;
for (i = 0; i < x.length; i++) {
x[i].setAttribute("data-voted", "");
}
return 0;
}
function geturl() {
"use strict";
var url = window.location.href;
url = url.substring(22);
return url;
}
function getCookie(w) {
"use strict";
var cName = "";
var pCOOKIES = [];
pCOOKIES = document.cookie.split('; ');
var bb = 0;
for (bb = 0; bb < pCOOKIES.length; bb++) {
var NmeVal = new Array();
NmeVal = pCOOKIES[bb].split('=');
if (NmeVal[0] == w) {
cName = unescape(NmeVal[1]);
}
}
return cName;
}
function setCookie(name, value, expires, path, domain, secure) {
"use strict";
var cookieStr = name + "=" + escape(value) + "; ";
if (expires) {
expires = setExpiration(expires);
cookieStr += "expires=" + expires + "; ";
}
if (path) {
cookieStr += "path=" + path + "; ";
}
if (domain) {
cookieStr += "domain=" + domain + "; ";
}
if (secure) {
cookieStr += "secure; ";
}
document.cookie = cookieStr;
}
function setExpiration(cookieLife) {
"use strict";
var today = new Date();
var expr = new Date(today.getTime() + cookieLife * 24 * 60 * 60 * 1000);
return expr.toGMTString();
}
function sc() {
"use strict";
setCookie('_w3cv', getCookie('_w3cv'), -1, geturl(), '.www.salon24.pl');
}
function click(person, updown) {
"use strict";
var y = "";
for (var x = 0; x != document.getElementsByClassName('ci').length; x++) {
if (document.getElementsByClassName('ci')[x].getElementsByClassName('ciw').length > 0) {
if (document.getElementsByClassName('ci')[x].getElementsByClassName('ciw')[0].getElementsByClassName('author').length > 0) {
y = document.getElementsByClassName('ci')[x].getElementsByClassName('ciw')[0].getElementsByClassName('author')[0].innerHTML;
}
}
if (y == person) {
if (updown == "t") {
if (document.getElementsByClassName('ci')[x].getElementsByClassName('up').length > 0) {
document.getElementsByClassName('ci')[x].getElementsByClassName('up')[0].click();
}
}
if (updown == "n") {
if (document.getElementsByClassName('ci')[x].getElementsByClassName('down').length > 0) {
document.getElementsByClassName('ci')[x].getElementsByClassName('down')[0].click();
}
}
}
}
}
function start2() {
"use strict";
var person = prompt("Podaj nick", "");
if (person=="" || person==null) {return 0; }
var updown = "";
if (confirm('Ok - plus, Anuluj - minus')) {
updown = "t";
} else {updown = "n"}
var powt = 1;
while (powt) {
var j = 0;
for (j = 0; j != 5; j++) {
sc();
p();
click(person, updown);
}
if (!confirm('Powtórzyć?')) {
powt = 0;
}
}
}
start2();