fix RE used to match minified names - they can include $
change botguard-related group names to match stock site change
This commit is contained in:
parent
9f9609f7e9
commit
b784da3b0f
@ -144,9 +144,9 @@ iitc_bg.get_method_group = function(method) {
|
||||
//}
|
||||
|
||||
if (window.niantic_params.botguard_group_a_methods.indexOf(method) != -1) {
|
||||
return "group-a-actions";
|
||||
return "ingress-a-actions";
|
||||
} else {
|
||||
return "group-b-actions";
|
||||
return "ingress-b-actions";
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -12,7 +12,7 @@ window.extractFromStock = function() {
|
||||
// we also extract all top-level arrays of strings, for botguard
|
||||
var arrays = [];
|
||||
|
||||
var minified = new RegExp('^[a-zA-Z][a-zA-Z0-9]$');
|
||||
var minified = new RegExp('^[a-zA-Z$][a-zA-Z$0-9]$');
|
||||
|
||||
for (var topLevel in window) {
|
||||
if (minified.test(topLevel)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user