Skip to content

Instantly share code, notes, and snippets.

@cfg
Last active July 10, 2021 20:19
Show Gist options
  • Save cfg/3f3232d10bbf8a20a52f28d1742ba50b to your computer and use it in GitHub Desktop.
Save cfg/3f3232d10bbf8a20a52f28d1742ba50b to your computer and use it in GitHub Desktop.
Anti-Adblock Removal Scripts
javascript:(function(){
document.querySelector('.article__body.article__overlay') && document.querySelector('.article__body.article__overlay').classList.remove('article__overlay');
document.getElementById('checkout-container') && document.getElementById('checkout-container').remove();
document.querySelector('div.piano-article-overlay') && document.querySelector('div.piano-article-overlay').remove();
})();
javascript:(function(){
document.getElementById('checkout-container') && document.getElementById('checkout-container').remove();
document.getElementsByClassName('chart-piano-overlay__attachment-point').length && document.getElementsByClassName('chart-piano-overlay__attachment-point').item(0).remove();
document.getElementById('main') && document.getElementById('main').classList.remove('piano-content-overlay');
[].forEach.call(document.querySelectorAll('.piano-content-overlay__gated-item'), function (el) {
el.classList.remove('hidden');
el.classList.remove('piano-content-overlay__gated-item');
});
[].forEach.call(document.querySelectorAll('.hidden'), function (el) {
el.classList.remove('hidden');
});
})();
javascript:(function(){
/* bizjournals.com */
document.querySelector('div[data-ct="OPT:AdBlocker:CloseWindow"]').remove();
document.body.classList.remove('is-overlaid');
document.documentElement.classList.remove('is-overlaid');
})();
javascript:(function(){
document.documentElement.removeAttribute('data-paywall-overlay-status');
document.body.removeAttribute('data-paywall-overlay-status');
document.getElementById('graphics-paywall-overlay').remove();
})();
javascript:(function(){
document.body.classList.remove('overflow_x_hidden');
document.body.style.overflow='';
document.getElementsByClassName('meter-social-connect').item(0).remove()
})();
javascript:(function(){
document.querySelector('div.connext-modal-backdrop').remove();
document.querySelector('div.modal-scrollable').remove();
document.getElementById('TestAdBlock').remove();
document.body.classList.remove('modal-open');
})();
javascript:(function(){
document.body.classList.remove('tp-modal-open');
document.querySelector('div[class*=tp-backdrop]') && document.querySelector('div[class*=tp-backdrop]').remove();
document.querySelector('div[class*=tp-modal]') && document.querySelector('div[class*=tp-modal]').remove();
document.querySelector('h4.piano-freemium') && document.querySelector('h4.piano-freemium').remove();
document.querySelector('section.post-content-more') && document.querySelector('section.post-content-more').remove();
if ( document.getElementById('piano-inline-content-wrapper') ) { document.getElementById('piano-inline-content-wrapper').style.display=''; }
})();
javascript:(function(){
document.documentElement.classList.remove('mdl-js');
document.body.classList.remove('adblock-on');
document.body.classList.remove('body--no-scroll');
document.getElementsByClassName('fbs-auth__adblock').length && document.getElementsByClassName('fbs-auth__adblock')[0].remove();
})();
javascript:(function(){
document.getElementsByClassName('fc-ab-root').length && document.getElementsByClassName('fc-ab-root').item(0).remove();
document.getElementsByClassName('fc-whitelist-root').length && document.getElementsByClassName('fc-whitelist-root').item(0).remove();
document.getElementsByTagName('metering-modal').length && document.getElementsByTagName('metering-modal').item(0).remove();
document.body.style.overflow='';
document.body.style.height='';
document.body.style.position='';
})();
javascript:(function(){
document.querySelector('div[class*=unblockplease-overlay]').remove();
document.querySelector('div[class*=unblockplease]').style.opacity=1;
})();
javascript:(function(){
/* usatoday.com, cincinnati.com */
document.querySelector('div[class^=sp_veil]').remove();
document.querySelector('div[class^=sp_message]').remove();
document.documentElement.classList.remove('sp-message-open');
document.body.style.overflowY='';
document.body.style.height='';
document.documentElement.style.overflowY='';
document.documentElement.style.height='';
})();
javascript:(function(){
Wallkit.isAuthenticated = window.WallKitGated.userCanEditPosts = window.Wallkit.checkAccess=function(){return true;};
window.WallKitGated.launched = true;
window.removeEventListener('scroll', window.WallKitGated.scrollEvent);
window.WallKitGated.hideOverlay();
document.body.classList.remove('wrap-pro-article');
document.body.classList.add('single-format-standard');
document.body.classList.add('boxed-layout');
document.body.classList.add('two-col-left');
})();
javascript:(function(){
document.getElementsByClassName('wallkit-paywall-block').length && document.getElementsByClassName('wallkit-paywall-block').item(0).remove();
[].forEach.call(document.querySelectorAll('.wrappro-paywall.not-logged-in'), function (el) {
el.classList.remove('not-logged-in', 'wrappro-paywall');
el.classList.add('logged-in', 'wrappro-non-paywall');
el.style.filter = '';
el.style.transitionProperty = '';
el.style.transitionDuration = '';
});
})();
javascript:(function(){
document.getElementById('modal-portal-regiwall') && document.getElementById('modal-portal-regiwall').remove();
document.body.style.overflow='auto';
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment