Skip to content

Instantly share code, notes, and snippets.

@Antti
Created November 26, 2017 11:50
Show Gist options
  • Save Antti/ef515ceca0e349cafb0f15e45d3ed80d to your computer and use it in GitHub Desktop.
Save Antti/ef515ceca0e349cafb0f15e45d3ed80d to your computer and use it in GitHub Desktop.
openrent bookmark
javascript:(function(){
var targetPostCode="EC4R3TE";
var postCode=$('#Features div div table tr td a')[0].href.split('=')[1].replace('%2520',' ');
var url="https://www.google.com/maps/dir/?api=1&origin="+postCode+"&destination="+targetPostCode+"&travelmode=transit";
$('.property-title').append('<span style="color: red"> ('+"<a target='_blank' href='"+url+"'>"+postCode+"</a>) </span>");
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment