Skip to content

Instantly share code, notes, and snippets.

@nhanb
Last active August 29, 2015 13:56
Show Gist options
  • Save nhanb/8826326 to your computer and use it in GitHub Desktop.
Save nhanb/8826326 to your computer and use it in GitHub Desktop.
Kissmanga Userscript - Show thumbnails in /MangaList
// ==UserScript==
// @name Kissmanga show thumbs
// @namespace http://nerdyweekly.com
// @version 0.1
// @description It's obvious
// @match http://kissmanga.com/MangaList*
// @match http://kissmanga.com/Genre*
// @copyright public domain
// ==/UserScript==
// They've already included jQuery so I thought, why not use it?
// <a> tags of manga titles
var aTags = $('.listing tbody tr td:first-child a');
// Activate hover states so the tooltip divs are built
aTags.each(function() {
$(this).trigger('mouseenter');
$(this).trigger('mouseleave');
});
// Get images from the generated tooltips
var imgs = $('.tooltip img');
// Go wild!
aTags.each(function(index, element) {
$(this).append(imgs[index]);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment