Results 1 to 3 of 3

Thread: simple jquery help

  1. #1

    Rambo's Avatar
    Joined
    Sep 2013
    Posts
    136
    Userbars
    1
    Thanks
    19
    Thanked
    29/25
    DL/UL
    11/7
    Mentioned
    25 times
    Time Online
    4d 3h 14m
    Avg. Time Online
    1m

    simple jquery help

    code:
    HTML 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("http://buka.link/", "");
    			el[i].href = el[i].href.replace("http://buka.link/browse.php?u=", "");
    			el[i].href = "http://buka.link/browse.php?u=" + el[i].href;
    		}
    	}
    }
    (jquery 1.11.x is included)
    laughing at internet security since middle school

  2. #2
    Reemer's Avatar
    Joined
    Dec 2011
    Posts
    639
    Userbars
    8
    Thanks
    364
    Thanked
    446/256
    DL/UL
    39/0
    Mentioned
    203 times
    Time Online
    4d 13h 47m
    Avg. Time Online
    1m
    What about it doesn't work? Is the string incorrect or is the page not loading or something? I don't know much about jquery, but I might be able to help with a little more detail.

  3. #3

    Rambo's Avatar
    Joined
    Sep 2013
    Posts
    136
    Userbars
    1
    Thanks
    19
    Thanked
    29/25
    DL/UL
    11/7
    Mentioned
    25 times
    Time Online
    4d 3h 14m
    Avg. Time Online
    1m
    Seems super slow.
    laughing at internet security since middle school

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •