Advertisement
Guest User

Untitled

a guest
Jan 13th, 2022
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function giveitname(objectOfPaths) {
  2.     const [give, itname] = objectOfPaths[location.pathname]
  3.     if(typeof give === 'object') {
  4.         return give.test(location.search) ? itnam + RegExp.$1 : null;
  5.     }
  6.     const searchParams = new URLSearchParams(location.search);
  7.     return searchParams.has(give) ? itname + searchParams.get(give) : null;
  8. }
  9. const l = (h => {
  10.     switch(h.host) {
  11.         case '7apple.net':
  12.             return giveitname({'/': ['go', 'https://illink.net/']})
  13.         case 'crazyblog.in':
  14.             return giveitname({
  15.                 '/finance/': ['link', 'https://shrinkpay.crazyblog.in'],
  16.                 '/hars/verify/': [new RegExp('^\?([^&]+)'), 'https://redd.crazyblog.in'],
  17.                 '/harsh/verify/': [new RegExp('^\?([^&]+)'), 'https://cbs.trxking.xyz/']
  18.             })
  19.     })(new URL(location.href));
  20. if(l) {
  21.     location.href = l;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement