Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Meh Mute
- // @version 0.1
- // @description links meh button to snooze. shows user id when clicking name in chat.
- // @author Ravana
- // @match https://plug.dj/*
- // @require http://code.jquery.com/jquery-latest.js
- // ==/UserScript==
- function createId(id){
- $("#id_to_remove").remove();
- $("div[id='user-rollover'][style$='display: block;']").append("<p id='id_to_remove'>User id: "+id+"</p>");
- }
- setTimeout(function() {
- $("#meh").click(function(){
- $(".snooze").click();
- });
- $("#chat-messages").on("click","span[class='un clickable']",function(){
- var idstring=$(this).parent().parent().parent().attr("data-cid").match(/\d+/);setTimeout(function(){createId(idstring);},1);
- });
- $("#audience-canvas").mouseover(function(){$("#id_to_remove").remove();});
- $("#header-panel-bar").mouseover(function(){$("#id_to_remove").remove();});
- },10000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement