E-Hentai Show Filenames

Shows filenames under images in galleries

  1. // ==UserScript==
  2. // @name E-Hentai Show Filenames
  3. // @description Shows filenames under images in galleries
  4. // @author sanitysama
  5. // @namespace 95.211.209.53-e85f8079-b847-455f-b080-8467e2977711@sanitysama
  6. // @include https://exhentai.org/g/*/*/*
  7. // @include https://e-hentai.org/g/*/*/*
  8. // @description Shows filenames under images in galleries
  9. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js
  10. // @version 1.1.1
  11. // ==/UserScript==
  12.  
  13. // This script is from:
  14. // https://userscripts-mirror.org/scripts/show/171622
  15.  
  16. $(document).ready(function() {
  17.  
  18. $('.gdtl').attr('style','height: 327px');
  19. $('.gdtl a').attr('style','word-wrap: break-word').each(function() {
  20. var fn = $(this).find('img').map(function() {
  21. return this.title;
  22. }).get();
  23. $(this).append(' - ' + fn);
  24. });
  25.  
  26. });