Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name moderasió
- // @description Un saludo a Enrique y a Yasinator
- // @namespace Violentmonkey Scripts
- // @grant none
- // @include https://www.3djuegos.com/*
- // @version 1.1
- // @author Señor X
- // ==/UserScript==
- /*Leer mensajes moderados*/
- if(window.location.href.includes("zona=moderacion&tipo_moderacion=")){
- var fotos = document.getElementsByClassName("foro_img dib");
- for(i=0; i<fotos.length; i++){
- fotos[i].src = fotos[i].dataset.src;
- }
- }
- else{
- var mensajes_moderados = document.getElementsByClassName("c3 fi");
- var id_mensaje;
- var i;
- for(i=0; i<mensajes_moderados.length; i++){
- id_mensaje = mensajes_moderados[i].parentNode.parentNode.id.substr(7, );
- mensajes_moderados[i].innerHTML = "<a href='https://www.3djuegos.com/foros/index.php?zona=moderacion&tipo_moderacion=&id_mensaje="+id_mensaje+"&accion=ver_mensaje&tipo_msg=foro' target='_blank' style='font-weight: normal; color: #c52f2f'>Mensaje moderado. Click para ver.</a>";
- //$( "#mensaje"+id_mensaje+" > pre > p" ).load( "https://www.3djuegos.com/foros/index.php?zona=moderacion&tipo_moderacion=&id_mensaje="+id_mensaje+"&accion=ver_mensaje&tipo_msg=foro .foro_msg_cuerpo " );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement