4 ms·
I _believe_ you can do one simpler (assuming the reader only clicks the link if they recognize it's a medium post) javascript:q=location.pathname;location.
by edwardloveall 5y ago
I _believe_ you can do one simpler (assuming the reader only clicks the link if they recognize it's a medium post)
javascript:q=location.pathname;location.href="https://scribe.rip"+q;
- djrockstar1 5y agowhile we're golfing javascript:location.href="https://scribe.rip"+location.pathname;
- desas 5y agoGolf you say? javascript:l=location;l.href="//scribe.rip"+l.pathname;
- malshe 5y agoThanks, I ended up using yours. But I might change that if someone shortens it even more /s
- adamrezich 5y agojavascript:l=location;l.href="//scribe.rip"+(l.hostname.includes("medium.com")?l.pathname:""); is a happy medium (no pun intended) & I'll give it a go in my bookmark toolbar