// ==UserScript== // @name iloveck101 // @namespace http://ck101.com/ // @description iloveck101 // @author tomin // @include http://ck101.com/* // @updateURL https://raw.github.com/tomin/iloveck101/master/iloveck101.user.js // @version 1.0.0 // @grant none // ==/UserScript== var imgs = document.getElementsByTagName("img"), imghtml = '', breadcrumb = document.getElementsByClassName("z")[1].innerHTML; //blacklist, skip this user script if (window.location.search.match(/action=printable/) !== null) { return; } for (var i = 0; i < imgs.length; i++) { var link = imgs[i].getAttribute("file"); if (link !== null) { imghtml += ""; } } if (imghtml !== '') { breadcrumb = "
" + breadcrumb.replace("nvhm", "") + "
";//avoid origin CSS margin document.body.innerHTML = breadcrumb + imghtml; }