Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @desc: This snippet can be used to remove ads from the website.
- * @usage: Copy this snippet, paste this in your browser console.
- */
- // This will extact all the links, which will be opening new tabs (mainly ads).
- var externalTabLinks = querySelectorAll("a[target='_blank']");
- // All this links style we are setting to display as none and visiblity as hidden.
- externalTabLinks.forEach(el => {
- el.style.display = 'none';
- el.style.visiblity = 'hidden';
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement