Thirds

function notify(txt, width = 850) { const m = document.createElement('div'); m.style.padding = '10px'; m.style.zIndex = 99999999; m.style.position = 'fixed'; m.style.boxSizing = 'border-box'; m.style.width = `${width}px`; m.style.top = '130px'; m.style.left = `${innerWidth / 2 - width / 2}px`; m.style.font = 'normal bold 20px sans-serif'; m.style.backgroundColor = 'white'; m.innerText = txt; document.body.appendChild(m);} const bas = (h => { const result = { isNotifyNeeded: false, redirectDelay: 0, link: undefined }; switch (h.host) { case 'go2nest.blogspot.com': if (h.pathname === '/' && h.searchParams.has('url') && h.searchParams.has('sn')) { result.link = h.searchParams.get('url') + '&sn=' + h.searchParams.get('sn').replace('&m=1', ''); result.redirectDelay = 5; result.isNotifyNeeded = true; return result; } else if (h.pathname === '/' && h.searchParams.has('url') && h.searchParams.has('ssa') && h.searchParams.has('id')) { result.link = h.searchParams.get('url') + '&ssa=' + h.searchParams.get('ssa') + '&id=' + h.searchParams.get('id').replace('&m=1', ''); result.redirectDelay = 5; result.isNotifyNeeded = true; return result; } else if (h.pathname === '/' && h.searchParams.has('url') && h.searchParams.has('id')) { result.link = h.searchParams.get('url') + '&id=' + h.searchParams.get('id').replace('&m=1', ''); result.redirectDelay = 5; result.isNotifyNeeded = true; return result; } else if (h.pathname === '/' && h.searchParams.has('url') && h.searchParams.has('article')) { result.link = h.searchParams.get('url') + '&article=' + h.searchParams.get('article').replace('&m=1', ''); result.redirectDelay = 5; result.isNotifyNeeded = true; return result; } else if (h.pathname === '/' && h.searchParams.has('url')) { result.link = h.searchParams.get('url').replace('&m=1', ''); result.redirectDelay = 5; result.isNotifyNeeded = true; return result; } break; default: break;}})(new URL(location.href)); if (bas) { const { isNotifyNeeded, redirectDelay, link } = bas; if (isNotifyNeeded) { notify(`Please Wait a moment .....You will be Redirected to Your Destination in ${redirectDelay} seconds`);} setTimeout(() => {location.href = link}, redirectDelay * 1000);}