Advertisement
Guest User

blogged.my, busuk.org, apesal.com

a guest
Apr 17th, 2012
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var busuk  = /busuk\.org\/ping\/view/i;
  2. var apesal  = /apesal\.com\/rd/i;
  3. var blogged = /blogged\.my\/pingbar-/i;
  4. var bloggedre = /blogged\.my\/ping-/i;
  5.  
  6. var site = '';
  7. if (busuk.exec(window.location) !== null) {
  8.     site = 'busuk';
  9. } else if (apesal.exec(window.location) !== null) {
  10.     site = 'apesal';
  11. } else if (blogged.exec(window.location) !== null) {
  12.     site = 'blogged';
  13. } else if (bloggedre.exec(window.location) !== null) {
  14.     site = 'bloggedre';
  15. }
  16.  
  17. switch (site) {
  18.     case 'busuk':
  19.         var iframe = document.getElementsByTagName("iframe")[0].src;
  20.         if (iframe !== null || iframe !== 'undefined') {
  21.             window.location = iframe;
  22.         }
  23.         break;
  24.     case 'apesal':
  25.     var iframe = document.getElementsByTagName('iframe')['content_iframe'].src;
  26.         if (iframe !== null || iframe !== 'undefined') {
  27.             window.location = iframe;
  28.         }
  29.         break;
  30.     case 'blogged':
  31.     var iframe = document.getElementsByTagName('iframe')['content_iframe'].src;
  32.         if (iframe !== null || iframe !== 'undefined') {
  33.             window.location = iframe;
  34.         }
  35.         break;
  36.     case 'bloggedre':
  37.     var newurl = window.location.href.replace(/ping/gi, 'pingbar');
  38.   window.location = newurl;
  39.         break; 
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement