quick hack fix, done right

niantic removed the list of protected methods - all methods are protected
there's still a short list of group-a protected, with the rest being group-b
This commit is contained in:
Jon Atkins
2014-11-07 20:33:47 +00:00
parent 33c158b194
commit e2e2f09e94
2 changed files with 19 additions and 20 deletions

View File

@ -139,15 +139,15 @@ iitc_bg.get_method_group = function(method) {
//NOTE: stock site has separate test for 'is any group' - IITC combines it into this one function that returns
// undefined for no group
if (window.niantic_params.botguard_protected_methods.indexOf(method) != -1) {
// if (window.niantic_params.botguard_protected_methods.indexOf(method) != -1) {
if (window.niantic_params.botguard_group_a_methods.indexOf(method) != -1) {
return "group-a-actions";
} else {
return "group-b-actions";
}
}
// method is not of any group
return undefined;
// }
// // method is not of any group
// return undefined;
};