Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ajaxFoiler()
- {
- simpleHref = this.getAttribute("href").substr(0, this.getAttribute("href").indexOf('?q='));
- alert(simpleHref);
- window.location = simpleHref;
- return false;
- }
- function deAjaxify()
- {
- if(document.URL.indexOf("/art/") == -1)
- {
- for(var i = 0; i < document.images.length; i++)
- {
- document.images[i].parentNode.addEventListener('click', ajaxFoiler, false);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement