SHOW:
|
|
- or go back to the newest paste.
1 | // ==UserScript== | |
2 | // @name SO ClearChat | |
3 | // @namespace com.onosendai | |
4 | - | // @version 0.3.1 |
4 | + | // @version 0.3.2 |
5 | // @author OnoSendai | |
6 | // @match http://chat.stackexchange.com/rooms/11910/estouro-de-pilha | |
7 | // @grant none | |
8 | // @run-at document-start | |
9 | // ==/UserScript== | |
10 | - | |
10 | + | |
11 | setTimeout(function(){ | |
12 | console.log('Hooking up!'); | |
13 | ||
14 | $(function(){ | |
15 | var r= $('<br/><a id="clsBtn" class="tag">Limpar Chat</a><a id="clsiBtn" class="tag">Remover Imagens/Videos</a>'); | |
16 | $("#room-tags").append(r); | |
17 | ||
18 | $("#clsBtn").click(function (e) { | |
19 | - | $("div.monologue").remove (); event.preventDefault(); |
19 | + | $("div.monologue").remove (); |
20 | $("div.system-message").remove (); | |
21 | event.preventDefault(); | |
22 | }); | |
23 | ||
24 | $("#clsiBtn").click(function (e) { | |
25 | $("div.ob-image > a").addClass('deleted').text('(Image removed)'); | |
26 | $("div.ob-youtube > a").addClass('deleted').text('(Video removed)'); | |
27 | }); | |
28 | }); | |
29 | }, 1000); |