nishino_img

    @@ -16,7 +16,7 @@ img_pic_url[m]=$(".img_pic").eq(m).attr("src"); } for (m = 0; m < $(".a_pic").length; m++) { - $(".skin-entryBody").append("<a class='a_list' href='"+a_pic_url[m]+"'><img src='"+img_pic_url[m]+"'</a>"); + $(".skin-entryBody").append("<a class='a_list' href='"+a_pic_url[m]+"'><img src='"+img_pic_url[m]+"'></a>"); } $(".skin-entryBody").contents().filter(function () { return this.nodeType === 3;
  • // ==UserScript==
    // @name         nishino_img
    // @namespace    http://tampermonkey.net/
    // @version      0.1
    // @description  try to take over the world!
    // @author       You
    // @match        https://ameblo.jp/nishino-akihiro/*
    // @grant        none
    // ==/UserScript==
    $('.skin-entryBody a:has(img)').addClass("a_pic");
    $('.skin-entryBody img').addClass("img_pic");
    var a_pic_url=[];
    var img_pic_url=[];
    for (var m = 0; m < $(".a_pic").length; m++) {
        a_pic_url[m]=$(".a_pic").eq(m).attr("href");
        img_pic_url[m]=$(".img_pic").eq(m).attr("src");
    }
    for (m = 0; m < $(".a_pic").length; m++) {
        $(".skin-entryBody").append("<a class='a_list' href='"+a_pic_url[m]+"'><img src='"+img_pic_url[m]+"'></a>");
    }
    $(".skin-entryBody").contents().filter(function () {
       return this.nodeType === 3;
    }).wrap("<span class='n_text'></span>");
    $('.a_list').eq(0).prevAll().remove();
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2020/05/17 12:40:42 - 2020-05-17
  2. 2020/05/17 12:36:19 - 2020-05-17
  3. 2020/05/17 12:35:17 - 2020-05-17