SHOW:
|
|
- or go back to the newest paste.
1 | // ==UserScript== | |
2 | // @name Ocultar tripfags atencionales | |
3 | // @namespace Choroy | |
4 | - | // @version 0.2 |
4 | + | // @version 0.3 |
5 | // @include http*://www.nido.org/b/res/* | |
6 | // @exclude | |
7 | // ==/UserScript== | |
8 | ||
9 | ||
10 | // Es BUENO ese meme de quitarle los saltos de línea al código para parecer legión :^) | |
11 | ||
12 | $(document).ready( | |
13 | function() | |
14 | { | |
15 | - | var i = 0; |
15 | + | |
16 | function() | |
17 | { | |
18 | var divHilo = $(this).parent().parent().parent(); | |
19 | var cuerpoHilo = divHilo.find(".body"); | |
20 | ||
21 | if(!divHilo.hasClass('op')) | |
22 | { | |
23 | cuerpoHilo.prev().before('<a onClick="$(this).next().toggle(); $(this).next().next().toggle()" style="cursor:pointer;position:relative;top:3px;left:5px">Click para mostrar/ocultar</a>'); | |
24 | cuerpoHilo.prev().toggle(); | |
25 | cuerpoHilo.toggle(); | |
26 | } | |
27 | else | |
28 | { | |
29 | cuerpoHilo.before('<a onClick="$(this).next().toggle()" style="cursor:pointer;position:relative;top:-2px;left:5px">Click para mostrar/ocultar</a>'); | |
30 | cuerpoHilo.toggle(); | |
31 | } | |
32 | $(this).parent().find(".name").text("Choroy Tripfag "); | |
33 | $(this).text(""); | |
34 | } | |
35 | - | i++; |
35 | + | |
36 | } | |
37 | ); |