Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 4th, 2012  |  syntax: JavaScript  |  size: 0.80 KB  |  hits: 25  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. (function ()
  2. {
  3.         opera.addEventListener('BeforeExternalScript',function (e)
  4.         {
  5.                 //alert(e.element.getAttribute('src'))
  6.                 if(e.element.getAttribute('src').match(/http:\/\/[a-z.]+\/show\/[0-9a-z.?_=]+/))
  7.                 {
  8.                 opera.removeEventListener('BeforeExternalScript',arguments.callee,false);
  9.                 var Div = document.getElementById('container')
  10.                         Div.style.backgroundColor = '#FAB728'
  11.                         Div.style.backgroundImage = 'url(http://css.joyreactor.ru/images/joyreactor_bk.jpg)'
  12.                         Div.style.backgroundRepeat = 'repeat-x'
  13.                         Div.style.backgroundPosition = '50% 0%'
  14.                 divs = document.body.getElementsByTagName('a')
  15.                 for(i in divs)
  16.                 {
  17.                         if (divs[i].getAttribute('rel') == 'nofollow')
  18.                         {
  19.                                 divs[i].parentNode.removeChild(divs[i]);
  20.                         }
  21.                 }
  22.                 }
  23.         },false);
  24.  
  25. })();