Created
November 13, 2017 20:11
-
-
Save sdfsdhgjkbmnmxc/3d3f8a4ddb77d12ae4b8f0e58a3cef06 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// увидишь советника — убей советника | |
document.body.addEventListener('DOMNodeInserted', function (e) { | |
if (e.target.innerHTML && e.target.innerHTML.indexOf('Советник Яндекс.Маркета') > -1) { | |
console.log('svt.killed:', e.target.id); | |
localStorage['svt.killed'] = true; | |
e.target.remove(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment