Advertisement
Guest User

Untitled

a guest
Feb 18th, 2016
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. "use strict";function _toConsumableArray(e){if(Array.isArray(e)){for(var r=0,t=Array(e.length);r<e.length;r++)t[r]=e[r];return t}return Array.from(e)}function checkIgnore(e){return $.post("/users/thumbs/"+e,fkey({showUsage:!0}))}function parseNode(e){if(e.classList&&e.classList.contains("user-container")){var r=e.className.match(/user-[0-9]+/g)[0].split("-")[1];checkIgnore(r).then(function(e){var r=!e.may_pairoff&&e.id!==me;r&&(ignoreStyleSheet.textContent+=".user-"+e.id+" .avatar { background-color: red; } .user-"+e.id+" .avatar img { opacity: 0.3; } ")})}}var ignoreStyleSheet=document.createElement("style"),getStyle=function(e){return".user-"+e+" .avatar::after {background: red;}"},me=Number(document.getElementById("active-user").className.match(/user-[0-9]+/g)[0].split("-")[1]);document.head.appendChild(ignoreStyleSheet),[].concat(_toConsumableArray(document.querySelectorAll("#chat .user-container"))).forEach(parseNode),new MutationObserver(function(e){e.forEach(function(e){[].forEach.call(e.addedNodes,parseNode)})}).observe(document.getElementById("chat"),{childList:!0,subtree:!0});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement