sanitysama

E-Hentai Show Filenames 1.2

Mar 10th, 2018
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name        E-Hentai Show Filenames
  3. // @namespace   95.211.209.53-e85f8079-b847-455f-b080-8467e2977711@sanitysama
  4. // @include     *://exhentai.org/g/*/*/*
  5. // @include     *://e-hentai.org/g/*/*/*
  6. // @description Shows filenames under images in galleries
  7. // @require     http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js
  8. // @version     1.2
  9. // ==/UserScript==
  10.  
  11. $(document).ready(function() {
  12.  
  13.     $('.gdtl').attr('style','height: 327px');
  14.     $('.gdtl a').attr('style','word-wrap: break-word').each(function() {
  15.         var fn = $(this).find('img').map(function() {
  16.             return this.title;
  17.         }).get();
  18.         $(this).append('<br>' + fn);
  19.     });
  20.  
  21. });
Advertisement
Add Comment
Please, Sign In to add comment