Skip to content

Instantly share code, notes, and snippets.

@domvo
Created April 13, 2018 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save domvo/5792deca633f4707d001a3fffef5d605 to your computer and use it in GitHub Desktop.
Save domvo/5792deca633f4707d001a3fffef5d605 to your computer and use it in GitHub Desktop.
var _layer_to_blacklist = [
19178,
19487,
19522,
19529,
19566,
19576,
19581,
19582,
19583,
19584,
19585,
19586,
19587,
19588,
19590,
19591,
19592,
19593,
19594,
19595,
19596,
19597,
19598,
19599,
19600,
19602
];
var _TR_DEBUG = 1;
var _tr_remove_blacklist = 0;
var own_layer_id = (_TR_DEBUG == 0) ? trboModule_12903_16719_21_instance.layer.getModuleId() : 19593;
if (document.location.search.match(/trbo=removeblacklist/i)) _tr_remove_blacklist = 1;
if (_tr_remove_blacklist != 1) {
for (var i=0; i<_layer_to_blacklist.length; i++) {
if (_layer_to_blacklist[i] != own_layer_id) {
console.log(_layer_to_blacklist[i], "auf der Blacklist.");
if (_TR_DEBUG == 0) module.blackList.add(_layer_to_blacklist[i]);
} else {
console.log(_layer_to_blacklist[i], "ist die eigene ID.");
}
}
} else {
for (var i=0; i<_layer_to_blacklist.length; i++) {
console.log(_layer_to_blacklist[i], "von der Blacklist gestrichen.");
if (_TR_DEBUG == 0) module.blackList.remove(_layer_to_blacklist[i]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment