Skip to content

Instantly share code, notes, and snippets.

@yardstick17
Forked from ylogx/zomato_bookmarklet.js
Last active March 18, 2017 09:52
Show Gist options
  • Save yardstick17/9f04388b9bfae414d4363baf1617fbda to your computer and use it in GitHub Desktop.
Save yardstick17/9f04388b9bfae414d4363baf1617fbda to your computer and use it in GitHub Desktop.
A bookmarklet experiment to find various zomato resource properties
javascript:(function(){
var msg = '';
try {
msg += '\nRes_id: ' + RES_ID;
} catch(err) {
console.log(err)
}
try {
city_id = CITY_ID;
msg += '\ncity_id: ' + city_id;
} catch(err) {
console.log(err)
}
try {
msg += '\nuser_id: ' + USER_ID;
} catch(err) {
console.log(err)
}
if (msg != '') {
alert(msg);
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment