Skip to content

Instantly share code, notes, and snippets.

@mikhailbot
Created February 1, 2017 19:56
Show Gist options
  • Save mikhailbot/23f32b207783a8ae88154371e610b5b8 to your computer and use it in GitHub Desktop.
Save mikhailbot/23f32b207783a8ae88154371e610b5b8 to your computer and use it in GitHub Desktop.
Remove "Dining" option for residence tour
$(document).ready(function () {
$('iframe').ready(function () {
var interval = setInterval(function () {
var menuItem = $('iframe').contents().find('.kolorMenuItem')[3];
// Remove dining option if present and clear interval
if (menuItem) {
menuItem.remove();
clearInterval(interval);
}
}, 100);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment