Greentext

Make greentext actually green!

  1. // ==UserScript==
  2. // @name Greentext
  3. // @namespace http://pastebin.com/
  4. // @version 0.1
  5. // @description Make greentext actually green!
  6. // @author Wolvan
  7. // @match *://pastebin.com/*
  8. // @grant none
  9. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
  10. // @icon http://i.imgur.com/d9FGWV5.png
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. var $ = jQuery.noConflict(true);
  16.  
  17. $("ol.text > li > div").each(function() {
  18. if ($(this).text().trim().startsWith(">")) $(this).attr("style", "color: #8ba446 !important;");
  19. });
  20. // Your code here...
  21. })();