Advertisement
cccccccc

Untitled

May 29th, 2014
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. jQuery(document).ready(function(){
  2.     var url = jQuery('div.acomment-content p a, span.activity-inner object p a, a.sharedlink_title').attr("href");
  3.     var data = "http://www.dereferer.org/?";
  4.  
  5. jQuery('div.acomment-content p a, span.activity-inner object p a, a.sharedlink_title').each(function() {
  6.     if ( this.host === 'dirtywindows.hu' || this.getAttribute('href').indexOf('/') === 0) {
  7.         this.attr("href", data + url);
  8.     }
  9. });
  10.  
  11.  
  12.     // see the current href
  13.     jQuery('.hrefVal').html(jQuery("div.acomment-content p a, span.activity-inner object p a, a.sharedlink_title").attr("href"));
  14.  
  15. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement