Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function giveitname(objectOfPaths) {
- const [give, itname] = objectOfPaths[location.pathname]
- if(typeof give === 'object') {
- return give.test(location.search) ? itnam + RegExp.$1 : null;
- }
- const searchParams = new URLSearchParams(location.search);
- return searchParams.has(give) ? itname + searchParams.get(give) : null;
- }
- const l = (h => {
- switch(h.host) {
- case '7apple.net':
- return giveitname({'/': ['go', 'https://illink.net/']})
- case 'crazyblog.in':
- return giveitname({
- '/finance/': ['link', 'https://shrinkpay.crazyblog.in'],
- '/hars/verify/': [new RegExp('^\?([^&]+)'), 'https://redd.crazyblog.in'],
- '/harsh/verify/': [new RegExp('^\?([^&]+)'), 'https://cbs.trxking.xyz/']
- })
- })(new URL(location.href));
- if(l) {
- location.href = l;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement