Created
March 11, 2021 04:31
-
-
Save thienha1/8bb0379c63c3c57670b373de9b5bb226 to your computer and use it in GitHub Desktop.
Url Exchanger for some specific Ad-Links.user.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @author yuumari dev | |
// @copyright 2020+, yuumari dev (https://yuumari.com/) | |
// @description this script will allows you to exchange url automatically. | |
// @license MIT; https://opensource.org/licenses/MIT | |
// @match *://*/* | |
// @name Url Exchanger for some specific Ad-Links | |
// @namespace https://yuumari.com/ | |
// @run-at document-start | |
// @version 1.16 | |
// ==/UserScript== | |
+function() { | |
'use strict'; | |
const l = (h => { | |
switch (h.host) { | |
case 'informaxonline.com': | |
if (h.pathname === '/' && h.searchParams.has('link')) { | |
return 'https://go.adslinkfly.online/' + h.searchParams.get('link'); | |
} | |
break; | |
case 'blogstechie.com': | |
if (h.pathname === '/' && h.searchParams.has('link')) { | |
return 'https://iir.ai/' + h.searchParams.get('link'); | |
} | |
break; | |
case 'healthy4pepole.com': | |
case 'mobiget.net': | |
case 'mobi2c.com': | |
if (/^\/[^\/]+?\//.test(h.pathname) && h.searchParams.has('link') && h.searchParams.has('done')) { | |
return 'https://try2link.net/' + h.searchParams.get('link') + '?done=' + h.searchParams.get('done'); | |
} | |
break; | |
case 'orangeptc.com': | |
if (h.pathname === '/users/sw.php' && h.searchParams.has('g')) { | |
return 'https://microtx.id/sh/' + h.searchParams.get('g') + '?t=1'; | |
} | |
break; | |
case 'shortzzy.in': | |
if (h.pathname === '/' && h.searchParams.has('postid')) { | |
return 'https://shortzzy.link/' + h.searchParams.get('postid'); | |
} | |
break; | |
case 'janusnotes.com': | |
if (h.pathname === '/' && h.searchParams.has('token')) { | |
const m = document.createElement('meta'); | |
m.name = 'referrer'; | |
m.content = 'origin'; | |
document.head.appendChild(m); | |
const a = document.createElement('a'); | |
a.href = h.searchParams.get('token'); | |
a.click(); | |
} | |
break; | |
case 'kora4top.com': | |
if (/^\/(.+)/.test(h.pathname)) { | |
return 'https://fxlap.com/' + RegExp.$1; | |
} | |
break; | |
case 'linkdesh.xyz': | |
if (/^\/step\d\/(.+)/.test(h.pathname)) { | |
return 'https://wplink.online/' + RegExp.$1; | |
} | |
break; | |
case 'grtheme.com': | |
case 'tapseet.com': | |
if (/^\/[^\/]+?\//.test(h.pathname) && h.searchParams.has('link') && h.searchParams.has('done')) { | |
return 'https://cutp.in/' + h.searchParams.get('link') + '?done=' + h.searchParams.get('done'); | |
} | |
break; | |
case 'silvarstar.com': | |
if (h.pathname === '/' && h.searchParams.has('postid')) { | |
return 'https://blog.earn2fly.in/' + h.searchParams.get('postid'); | |
} | |
break; | |
case 'textforex2.info': | |
if (/^\/(.+)/.test(h.pathname)) { | |
return 'https://adlinkall22.info/' + RegExp.$1; | |
} | |
break; | |
default: | |
break; | |
} | |
})(new URL(location.href)); | |
if (l) { | |
location.href = l; | |
} | |
}(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment