Advertisement
Farbjodr

Meh mute & user id

Feb 2nd, 2015
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Meh Mute
  3. // @version      0.1
  4. // @description  links meh button to snooze. shows user id when clicking name in chat.
  5. // @author       Ravana
  6. // @match        https://plug.dj/*
  7. // @require http://code.jquery.com/jquery-latest.js
  8. // ==/UserScript==
  9.  
  10. function createId(id){
  11.     $("#id_to_remove").remove();
  12.     $("div[id='user-rollover'][style$='display: block;']").append("<p id='id_to_remove'>User id: "+id+"</p>");
  13. }
  14.  
  15. setTimeout(function() {
  16.     $("#meh").click(function(){
  17.       $(".snooze").click();
  18.     });
  19.     $("#chat-messages").on("click","span[class='un clickable']",function(){
  20.         var idstring=$(this).parent().parent().parent().attr("data-cid").match(/\d+/);setTimeout(function(){createId(idstring);},1);
  21.     });
  22.     $("#audience-canvas").mouseover(function(){$("#id_to_remove").remove();});
  23.     $("#header-panel-bar").mouseover(function(){$("#id_to_remove").remove();});
  24. },10000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement