Last active
August 29, 2015 14:23
-
-
Save Saoneth/92c55b0d2dee878ad7d9 to your computer and use it in GitHub Desktop.
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 s = document.createElement('style'); | |
s.innerHTML = '@import url(https://googledrive.com/host/0BxjwQr0BBXs-aDYxM2JlaFM2bnM);'; | |
s.innerHTML += '#contentWrapper table tr { background-position: center; display: block; padding-bottom: 10px; color: white; float: left; position: relative; width: 220px; height: 300px; margin: 11px; border-radius: 13px; box-shadow: 0px 0px 11px 2px rgb(13, 13, 13) inset; }' | |
s.innerHTML += '#content table a { position: absolute; left: 0; top: 0; width: 100%; height: 100% }'; | |
s.innerHTML += '#content table a span { position: absolute; left: 0; bottom: 30px; width: 100%; padding: 10px 0; text-align: center; color: white; background-color: rgba(0, 0, 0, 0.66) }'; | |
s.innerHTML += '#content table a.button_add { top: 20px; left: initial; bottom: initial; right: 20px; width: initial; height: initial; padding: 5px 10px; border-radius: 8px }'; | |
s.innerHTML += '#contentWrapper table tr:not([id^="more"]) { display: none }'; | |
s.innerHTML += '#content table tr td:nth-child(2) span { position: absolute; left: 10px; top: 10px; display: block; width: 14px; background-color: rgba(0, 0, 0, 0.6); padding: 5px 6px; border-radius: 8px 0 0 8px; color: white !important }'; | |
s.innerHTML += '#content table tr td:nth-child(3) span { position: absolute; left: 36px; top: 10px; display: block; width: 14px; background-color: rgba(0, 0, 0, 0.6); padding: 5px 6px; border-radius: 0 8px 8px 0; color: white !important }'; | |
s.innerHTML += '#content table tr td { border: 0 }'; | |
document.head.appendChild(s); | |
var o = document.querySelectorAll('#contentWrapper table a:not(.button_add)'); | |
for(var i=0; i<o.length; i++) { | |
var t = o[i].href.split('/'); | |
if(t[3] == 'anime' || t[3] == 'manga') { | |
o[i].parentNode.parentNode.id = 'more' + t[4]; | |
o[i].innerHTML = '<span>' + o[i].innerHTML + '</span>'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment