Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tokada/39341 to your computer and use it in GitHub Desktop.
Save tokada/39341 to your computer and use it in GitHub Desktop.
pixivのサムネイル画像をmediumサイズに展開するbookmarklet
javascript:(function(){d=document;r=new RegExp(/http:\/\/img\d{2}\.pixiv\.net\/img\/[^\/]+\/\d+_s.\w+/);for(i in d.images){i=d.images[i];if(i.src&&i.src.match(r))i.src=i.src.replace(/_s/,'_m');}p=d.getElementById('pixiv');if(p!=null)p.style.overflow='visible';c=d.getElementById('content2');if(c!=null){c.style.overflow='visible';c.style.width='100%';}l=d.getElementsByTagName('li');for(i in l){if(l[i].style!=undefined)l[i].style.cssFloat='none';}})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment