Created
November 26, 2017 11:50
-
-
Save Antti/ef515ceca0e349cafb0f15e45d3ed80d to your computer and use it in GitHub Desktop.
openrent bookmark
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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