Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Hide Message
- // @version 0.2
- // @description Works for messages that have cid, or extplug notifications
- // @author Ravana
- // @match https://plug.dj/*
- // @require http://code.jquery.com/jquery-latest.js
- // ==/UserScript==
- setTimeout(function() {
- API.on(API.CHAT,function(data){
- if(data.cid){
- $("[data-cid="+data.cid+"]> > .bdg").click(function(e){
- if(e.ctrlKey){
- if($(this).parent().parent().hasClass("extplug-deleted")){
- $(this).parent().parent().remove();
- } else {
- $(this).parent().parent().css("opacity","0.8");
- $(this).click(function(e){
- if(e.ctrlKey){
- $(this).parent().parent().remove();
- }
- });
- }
- }
- });
- } else {
- $(".extplug-notification").last().click(function(e){
- if(e.ctrlKey){
- $(this).remove();
- }
- });
- }
- })
- },10000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement