Skip to content

Instantly share code, notes, and snippets.

@sb4m
Created May 4, 2016 12:37
Show Gist options
  • Save sb4m/a449189841558eda91909a512b8f812b to your computer and use it in GitHub Desktop.
Save sb4m/a449189841558eda91909a512b8f812b to your computer and use it in GitHub Desktop.
alert($('#thirdLevelContent table table input:checked').length + ' Zone checked');
var match = prompt("Please enter a match query to check", "zone 1");
if (match != null) {
// match = (match + '').replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
$('#thirdLevelContent table table').each(function() {
if ($(this).find('a').text().match(new RegExp(match))) {
if ($(this).find('input').length == 1) {
$(this).find('input').attr("checked", "checked");
}
}
})
}
@Yoshyn
Copy link

Yoshyn commented May 4, 2016

To add a bookmarklet : http://mrcoles.com/bookmarklet/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment