NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name KucingSemprul bcy Downloader // @version 1.2 // @author Kucingsemprul // @grant none // @include * // @match https://bcy.net/* // @match https://*.bcy.net/* // @copyright 2018, kucingsemprul (https://openuserjs.org/users/kucingsemprul) // @license MIT // ==/UserScript== function ks_img() { var imgs = document.getElementsByClassName("detail_std"); var imgSrcs = []; var srcs = ""; for (var i = 0; i < imgs.length; i++) { srcs = imgs[i].src.slice(0, -5); imgSrcs.push(srcs); } return imgSrcs; } let datas = ks_img(); var imgs = document.getElementsByClassName("content-img-wrap-inner"); for (var j = 0; j < datas.length; j++) { imgs[j].innerHTML += '<a href="' + datas[j] + '" target="_blank"><h2>Download</h2></a>'; }