Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name PCInpact V5
- // @namespace http://www.w3.org/1999/xhtml
- // @description mettre les modos en vert et vert clair - mettre mes posts en bleu
- // @include http://v5.pcinpact.com/news/*
- // @author geek85
- // ==/UserScript==
- (function () {
- var moi=/((geekounet85)|(geek85))/i
- var color_admin="#8F0000";
- var color_admin_quote="#6F0000";
- var color_moi="dodgerblue";
- var admins=/((David_L)|(labdam)|(P-A)|(Vincent_H)|(MarcRees)|(NilSanyas)|(Teuf)|(Titia))/i
- var commentaires = document.getElementsByClassName('commentaire');
- var com = null;
- for (var i=0; i<commentaires.length; i++)
- {
- com = commentaires[i];
- {
- admin=com.getElementsByClassName('commentaire_entete_team')
- if (admin.length!=0)
- {
- admin_content=com.getElementsByClassName('commentaire_content')
- admin_content[0].style.cssText = 'background-color:'+color_admin+';';
- }
- }
- }
- // presque pas commencé, juste essayé d'adapter
- var citation = document.getElementsByClassName('quote_bloc');
- var a = null;
- for (var i=0; i<citation.length; i++)
- {
- a = citation[i].getElementsByTagName('a')[0];
- if (a)
- {
- quote=citation[i].getElementsByClassName('bg_form_commentaires');
- if (a.firstChild.data.search(moi)>0)
- {
- quote[0].style.cssText = 'background-color:'+color_moi+';';
- }
- if (a.firstChild.data.search(admins)>0)
- {
- quote[0].style.cssText = 'background-color:'+color_admin_quote+';';
- }
- }
- }
- }
- )()
Advertisement
Add Comment
Please, Sign In to add comment