Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Ocultar tripfags atencionales
- // @namespace Choroy
- // @version 0.3
- // @include http*://www.nido.org/b/res/*
- // @exclude
- // ==/UserScript==
- // Es BUENO ese meme de quitarle los saltos de línea al código para parecer legión :^)
- $(document).ready(
- function()
- {
- $(".intro > label > .trip").each(
- function()
- {
- var divHilo = $(this).parent().parent().parent();
- var cuerpoHilo = divHilo.find(".body");
- if(!divHilo.hasClass('op'))
- {
- 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>');
- cuerpoHilo.prev().toggle();
- cuerpoHilo.toggle();
- }
- else
- {
- cuerpoHilo.before('<a onClick="$(this).next().toggle()" style="cursor:pointer;position:relative;top:-2px;left:5px">Click para mostrar/ocultar</a>');
- cuerpoHilo.toggle();
- }
- $(this).parent().find(".name").text("Choroy Tripfag ");
- $(this).text("");
- }
- )
- }
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement