Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var busuk = /busuk\.org\/ping\/view/i;
- var apesal = /apesal\.com\/rd/i;
- var blogged = /blogged\.my\/pingbar-/i;
- var bloggedre = /blogged\.my\/ping-/i;
- var site = '';
- if (busuk.exec(window.location) !== null) {
- site = 'busuk';
- } else if (apesal.exec(window.location) !== null) {
- site = 'apesal';
- } else if (blogged.exec(window.location) !== null) {
- site = 'blogged';
- } else if (bloggedre.exec(window.location) !== null) {
- site = 'bloggedre';
- }
- switch (site) {
- case 'busuk':
- var iframe = document.getElementsByTagName("iframe")[0].src;
- if (iframe !== null || iframe !== 'undefined') {
- window.location = iframe;
- }
- break;
- case 'apesal':
- var iframe = document.getElementsByTagName('iframe')['content_iframe'].src;
- if (iframe !== null || iframe !== 'undefined') {
- window.location = iframe;
- }
- break;
- case 'blogged':
- var iframe = document.getElementsByTagName('iframe')['content_iframe'].src;
- if (iframe !== null || iframe !== 'undefined') {
- window.location = iframe;
- }
- break;
- case 'bloggedre':
- var newurl = window.location.href.replace(/ping/gi, 'pingbar');
- window.location = newurl;
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement