SaberYamasaki / mymoe.moe r-18

// ==UserScript==
// @name         mymoe.moe r-18
// @namespace    https://openuserjs.org/
// @version      0.4
// @description  unblock mymoe.moe r-18
// @author       Komica Fat Otaku
// @match        https://*.mymoe.moe/*
// @grant        none
// ==/UserScript==

var images = document.getElementsByClassName("img_src");
for ( var i = 0;i < images.length; i++) {
    var image = images[i].querySelector("img");
    if (image.alt && image.title && image.alt.match(/^[\d\w\/\.:]+\.\w+$/) && image.title.match(/^[\d\w\/\.:]+\.\w+$/)) {
        var a = document.createElement('a');
        a.href = image.title;
        a.target = "_blank";
        a.appendChild(image);
        image.src = image.alt;
        image.style.width = "auto";
        image.style.height = "auto";
        images[i].appendChild(a);
    }
}