[Konachan] Thumbnails: Multicolored Image Borders

Shows multicolored borders on thumbnails when more than one color is applicable.

  1. // ==UserScript==
  2. // @name [Konachan] Thumbnails: Multicolored Image Borders
  3. // @namespace Zolxys
  4. // @description Shows multicolored borders on thumbnails when more than one color is applicable.
  5. // @include /^https?://konachan\.com/(post(/(similar|delete)(/\d+)?)?|(user|pool)/show/\d+|wiki/show)/?($|\?|#)/
  6. // @include /^https?://konachan\.net/(post(/(similar|delete)(/\d+)?)?|(user|pool)/show/\d+|wiki/show)/?($|\?|#)/
  7. // @version 1.4
  8. // ==/UserScript==
  9. var ss = document.createElement('style');
  10. ss.type = 'text/css';
  11. ss.textContent = 'img.has-children {border-top: 3px solid #00FF00;}\n'+
  12. 'img.has-parent {border-top: 3px solid #CCCC00; border-right: 3px solid #CCCC00; border-left: 3px solid #CCCC00;}\n'+
  13. 'img.has-children {border-left: 3px solid #00FF00; border-bottom: 3px solid #00FF00;}\n'+
  14. 'img.flagged {border-right: 3px solid #FF0000; border-bottom: 3px solid #FF0000;}\n'+
  15. 'img.pending {border-right: 3px solid #0000FF; border-bottom: 3px solid #0000FF;}';
  16. document.head.appendChild(ss);