Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var doFilter = function(textNode) {
- textNode.data = textNode.data.replace('Зеленського', 'Пусте місце');
- textNode.data = textNode.data.replace('Зеленському', 'Пусте місце');
- textNode.data = textNode.data.replace('Зеленському', 'Пусте місце');
- textNode.data = textNode.data.replace('Зеленський', 'Пусте місце');
- textNode.data = textNode.data.replace('Зеленську', 'Пусте місце');
- textNode.data = textNode.data.replace('Зеленській', 'Пусте місце');
- textNode.data = textNode.data.replace('ЗЕ!', 'Пусте місце');
- textNode.data = textNode.data.replace('Зе!команда', 'Пусте місце');
- //на мокшанській
- textNode.data = textNode.data.replace ( 'Зеленского', 'Пустое место');
- textNode.data = textNode.data.replace ( 'Зеленскому', 'Пустое место');
- textNode.data = textNode.data.replace ( 'Зеленский', 'Пустое место');
- textNode.data = textNode.data.replace ( 'Зеленская', 'Пустое место');
- }
- var observer = new MutationObserver(function(mutations) {
- mutations.forEach(function(mutation) {
- if (mutation.addedNodes) {
- [].slice.call(mutation.addedNodes).forEach(function(node) {
- if (node.nodeName.toLowerCase() == "#text") {
- doFilter(node);
- }
- });
- }
- });
- });
- observer.observe(document, {
- childList: true,
- subtree: true
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement