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
;(function () { | |
let findAttackerLinks = () => { | |
const ATTACKER_NAME = 'gaychik_monster'; | |
let playerNameLinks = document.querySelectorAll('a[class*="profile"][href^="/profile"]'); | |
if (playerNameLinks.length === 0) return []; | |
let playerNameLinksArr = Array.prototype.slice.call(playerNameLinks); | |
let attackerLinks = []; |
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
var a; | |
var w = document.createTreeWalker( | |
document, | |
NodeFilter.SHOW_TEXT | |
); | |
while(a = w.nextNode()) { | |
if(a.textContent.trim().length) { | |
a.textContent = 'Одиннадцатиклассница пошла посмотреть на достопримечательность, она шла долго, несколько строчек, пока не пришла' | |
} |
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
// It was taken from https://habrahabr.ru/company/2gis/blog/246831/ | |
var a, w = document.createTreeWalker( | |
document, | |
NodeFilter.SHOW_TEXT | |
); | |
while(a = w.nextNode()) { | |
if (a.textContent.trim().length) | |
a.textContent = 'Одиннадцатиклассница пошла посмотреть на достопримечательность, она шла долго, несколько строчек, пока не пришла' | |
} |