Skip to content

Instantly share code, notes, and snippets.

@larvata
Last active May 25, 2016 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larvata/8244618 to your computer and use it in GitHub Desktop.
Save larvata/8244618 to your computer and use it in GitHub Desktop.
oricon Large Cover download
// ==UserScript==
// @name oricon Large Cover
// @namespace http://use.i.E.your.homepage/
// @version 0.1
// @description enter something useful
// @match http://www.oricon.co.jp/rank/*
// @copyright 2012+, You
// ==/UserScript==
$.each($(".item_img>div:first-child>a"),function(i,obj){
$(obj).attr("target","_blank");
$(obj).attr("download",$(obj).find("img").attr("alt"));
$(obj).attr("href",$(obj).find("img").attr("src").replace("SL160","SL500"));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment