sanitysama

E-Hentai Show Flagged Tags 1.3

Mar 10th, 2018
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. // ==UserScript==
  2. // @id exhentai.org-cd0977bf-121a-455f-8c5e-be693c2a4600@sanitysama
  3. // @name E-Hentai Show Flagged Tags
  4. // @version 1.3
  5. // @namespace sanitysama
  6. // @author sanitysama
  7. // @description Shows the flagged tags' text under the gallery thumbnail
  8. // @include /^https?://(g\.e-|ex)hentai\.org/$/
  9. // @include /^https?://(g\.e-|ex)hentai\.org/\?.*/
  10. // @include /^https?://(g\.e-|ex)hentai\.org/tag*/
  11. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js
  12. // @run-at document-end
  13. // ==/UserScript==
  14.  
  15. $(document).ready(function() {
  16.  
  17. $('.id4').each(function() {
  18. var tags = $(this).find('.tft').map(function() {
  19. return this.title.replace(/(female:|male:)/g,"");
  20. }).get();
  21.  
  22. $('<div>', {
  23. 'class': 'tags',
  24. 'text': tags.join(', ')
  25. }).insertAfter(this);
  26.  
  27. });
  28. $(".tags").css({'padding':'2px 4px','text-align':'center','min-height':'3em'});
  29. $(".id1").attr("style","height:370px");
  30. });
Advertisement
Add Comment
Please, Sign In to add comment