Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function(w){
- let urls = [ // URLs array to remove ad units from
- '/estaticas/que-jugador-del-lugo-ha-sido-tu-favorito.html'
- ];
- let adUnits = [ // Ad units to remove from URLs in previous array
- '_663008',
- '_660209'
- ];
- function checkUrl(url){
- return urls.some(function(urls) {
- return url.indexOf(urls) !== -1;
- });
- }
- if(checkUrl(document.location.href))
- {
- try {
- Array.from(adUnits).forEach(function(adUnit) {
- delete w.__lxGr__[adUnit];
- });
- } catch (e) {
- console.log("NO AD UNIT!");
- }
- }
- })(window);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement