percentRoute
Builds percent‑hack or source‑route flavoured addresses. Two styles: paren gives local%route(@dest and bracket gives local%route@[ip].
Created by: hackvertor
Installed 1 times
Viewed: 4
Category: Email
Created on: Wednesday, September 10, 2025 at 8:11:30 PM
Updated on: Wednesday, September 10, 2025 at 8:11:30 PM
Tag arguments
[
{
"type": "string",
"help": "Route domain to use after %",
"defaultValue": "psres.net"
},
{
"type": "string",
"help": "Style paren or bracket",
"defaultValue": "paren"
},
{
"type": "string",
"help": "Destination domain or address",
"defaultValue": "example.com"
}
]
Code
class percentRoute {
encode(input, routeDomain, style, dest) {
routeDomain = routeDomain || 'psres.net';
style = (style || 'paren').toLowerCase();
dest = dest || 'example.com';
const local = input.split('@')[0];
if (style === 'bracket') return local + '%' + routeDomain + '@[' + dest + ']';
return local + '%' + routeDomain + '(@' + dest;
}
}