Rambo
01-21-2015, 06:53 PM
code:
var el = document.getElementsByTagName("a");
if(window.location.hostname != "buka.link"){
for(var i=0;i<el.length;i++){
$.get( el[i], data);
// problem is the line above and below doesn't seem to work...
if ~data.indexOf('This domain is blocked.'){
el[i].href = el[i].href.replace("[Only registered and activated users can see links]", "");
el[i].href = el[i].href.replace("[Only registered and activated users can see links]", "");
el[i].href = "[Only registered and activated users can see links]" + el[i].href;
}
}
}
(jquery 1.11.x is included)
var el = document.getElementsByTagName("a");
if(window.location.hostname != "buka.link"){
for(var i=0;i<el.length;i++){
$.get( el[i], data);
// problem is the line above and below doesn't seem to work...
if ~data.indexOf('This domain is blocked.'){
el[i].href = el[i].href.replace("[Only registered and activated users can see links]", "");
el[i].href = el[i].href.replace("[Only registered and activated users can see links]", "");
el[i].href = "[Only registered and activated users can see links]" + el[i].href;
}
}
}
(jquery 1.11.x is included)