Created
June 25, 2015 13:14
-
-
Save hakatashi/6bf0c6be07df6e7a7e21 to your computer and use it in GitHub Desktop.
Unidentified Scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ._image-items { | |
| text-align: center; | |
| } | |
| .image-item { | |
| display: inline-block; | |
| height: 350px; | |
| width: auto; | |
| padding: 0; | |
| margin: 2px; | |
| overflow: hidden; | |
| } | |
| .image-item > a:nth-of-type(2) { | |
| position: absolute; | |
| bottom: 0; | |
| left: 0; | |
| z-index: 2; | |
| padding: 3px; | |
| background: black; | |
| color: white; | |
| opacity: 0.5; | |
| border-radius: 2px; | |
| } | |
| .image-item:hover > a:nth-of-type(2) { | |
| opacity: 0.8; | |
| } | |
| .image-item > a:nth-of-type(3) { | |
| display: none; | |
| } | |
| .image-item > .input-container { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: auto; | |
| } | |
| .image-item > .count-list { | |
| position: absolute; | |
| top: 0; | |
| right: 0; | |
| margin: 0; | |
| z-index: 1; | |
| } | |
| .image-item ._layout-thumbnail > img { | |
| height: 350px; | |
| } | |
| .autopagerize_page_separator { | |
| display: none; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var beautify = function () { | |
| Array.prototype.forEach.call(document.querySelectorAll('.image-item ._layout-thumbnail > img'), function (el) { | |
| el.setAttribute('src', el.getAttribute('src').replace('150x150', '480x960')); | |
| }); | |
| }; | |
| window.addEventListener('load', beautify); | |
| var observer = new MutationObserver(beautify); | |
| observer.observe(document.querySelector('._image-items'), { | |
| childList: true, | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment