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.           window.location = simpleHref;
  5.           return false;
  6.  }
  7.          
  8. function deAjaxify()
  9. {
  10.     if(document.URL.indexOf("/art/") == -1)
  11.     {
  12.         for(var i = 0; i < document.images.length; i++)
  13.         {
  14.         document.images[i].parentNode.addEventListener('click', ajaxFoiler, false);
  15.         }
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement