Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function (e) {
- var f = arguments.callee;
- e || document.addEventListener('DOMNodeInserted', f, 0);
- if (!f.p) f.p = setTimeout(function () {
- f.p = 0;
- var s = document.evaluate('//text()', document.body, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null),
- j, n, r = /[̀-̖̔-̜̚-̠̣-̦̩-̳̹-͎͐-͙͗-͛ͣ-ͯ҃-҆ؐ-ًؚ-ٰٞۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-ܱܳ-ܿ݃-݊ัิ-ู็-๎້ིེ-ཽྀྐ-ྗྙ-ྼ᷀-᷊᷾-⃒᷿]+/g;
- for (j = s.snapshotLength; j-- > 0;) if (r.test(c = (n = s.snapshotItem(j)).nodeValue)) n.nodeValue = c.replace(r, ':P')
- }, 10);
- })()"a"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement