Advertisement
Johnnyx8

Pastebin Greentext

May 19th, 2014
954
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Pastebin Greentext
  3. // @namespace PastebinGreentext
  4. // @include http://pastebin.com/*
  5. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
  6. // @version 1
  7. // @grant none
  8. // ==/UserScript==
  9.  
  10. $(document).ready(function(){
  11. $(".de1, .de2").each(function()
  12. {
  13. var text = $(this).text();
  14. var regex = /^>/;
  15. if(regex.test(text))
  16. {
  17. $(this).css('color', '#789922');
  18. }
  19. });
  20. });
  21.  
  22.  
  23.  
  24.  
  25.  
  26. >testing here
  27. >implying this works
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement