5 ms·
I quickly whipped up a bookmarklet to view any Medium article in scribe.rip for anyone interested: javascript:location.hostname.includes("medium.com")?loc
by mrzool 5y ago
I quickly whipped up a bookmarklet to view any Medium article in scribe.rip for anyone interested:
javascript:location.hostname.includes("medium.com")?location.assign("https://scribe.rip"+location.pathname+location.search+location.hash):location.assign("https://scribe.rip");
- gchamonlive 5y agoSeems to work even for the subdomain link example below: https://kgizdov.medium.com/the-efficiency-of-microsoft-e50ea81f69f5 https://kgizdov.medium.com/the-efficiency-of-microsoft-e50ea... Output: https://scribe.rip/the-efficiency-of-microsoft-e50ea81f69f5 https://scribe.rip/the-efficiency-of-microsoft-e50ea81f69f5
- edwardloveall 5y agoI _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