how to make generator link with javascript, example like autoddl.com site : i want make generator link with javascript, example like this site is autoddl.com.

but I just want to change the domain only, for example:

**www.qwerty.com**/detail/dsa8e2w2a1
to
**www.download.com**/detail/dsa8e2w2a1
~



> /detail/dsa8e2w2a1 < is unchanged, only the primary domain being changed.


help please im tired search on google, but idk the keyword.