Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   function ajaxFoiler()
  2.   {
  3.           simpleHref = this.getAttribute("href").substr(0, this.getAttribute("href").indexOf('?q='));
  4.           alert(simpleHref);
  5.           window.location = simpleHref;
  6.           return false;
  7.  }
  8.          
  9. function deAjaxify()
  10. {
  11.     if(document.URL.indexOf("/art/") == -1)
  12.     {
  13.         for(var i = 0; i < document.images.length; i++)
  14.         {
  15.         document.images[i].parentNode.addEventListener('click', ajaxFoiler, false);
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement