Advertisement
AnonGaming

Redirect Checker

Jan 18th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Here You can type your custom JavaScript...
  2.  
  3.  
  4. function img_find() {
  5.     var imgs = document.getElementsByTagName("img");
  6.     var imgSrcs = [];
  7.  
  8.     for (var i = 0; i < imgs.length; i++) {
  9.         imgSrcs.push(imgs[i].src);
  10.     }
  11.  
  12.     return imgSrcs;
  13. }
  14.  
  15. function httpGet(theUrl)
  16. {
  17.     $.get("http://vps.anongaming.com/urlRedirectCheck/url.php?url="+theUrl,function(data){
  18.        console.log(data);
  19.     });
  20. }
  21.  
  22. function check_images(){
  23.     var imgSrcs = img_find();
  24.     console.log(imgSrcs);
  25.     for(var i =0; i < imgSrcs.length;i++){
  26.         if(imgSrcs[i].includes("zarpgaming.com")){
  27.            
  28.         }else{
  29.             //console.log(imgSrcs[i]);
  30.             //console.log("Checking "+imgSrcs[i]);
  31.             httpGet(imgSrcs[i]);
  32.         }
  33.     }
  34. }
  35.  
  36. (function() {
  37.    // your page initialization code here
  38.    // the DOM will be available here
  39.    
  40.    
  41.    var scriptJquery = document.createElement("script");
  42.    scriptJquery.setAttribute('src','https://code.jquery.com/jquery-3.2.1.js');
  43.    scriptJquery.setAttribute('integrity','sha256-DZAnKJ/6XZ9si04Hgrsxu/8s717jcIzLy3oi35EouyE=');
  44.    scriptJquery.setAttribute('crossorigin',"anonymous");
  45.    scriptJquery.setAttribute('id',"jqueryNew");
  46.    
  47.     document.head.appendChild(scriptJquery);
  48.    
  49. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement