(hexstr)
| 576 | return destination |
| 577 | } |
| 578 | function decodeHexString(hexstr) |
| 579 | { |
| 580 | let a=[] |
| 581 | for(let i=0;i<hexstr.length-1;i+=2) |
| 582 | { |
| 583 | a.push(parseInt(hexstr.substr(i,2),16)) |
| 584 | } |
| 585 | return String.fromCharCode.apply(String,a) |
| 586 | } |
| 587 | const onBeforeRequest_rules = { |
| 588 | path_base64: details => getRedirect(atob(details.url.substr(details.url.indexOf("aHR0c")))), |
| 589 | path_s_encoded: details => encodedRedirect(details.url.substr(details.url.indexOf("/s/")+3)), |