r25_newworld_index

    @@ -1,4 +1,5 @@ // ==UserScript== +// @title r25_newworld_index // @name r25_newworld_index // @namespace http://tampermonkey.net/ // @version 0.1
  • // ==UserScript==
    // @title        r25_newworld_index
    // @name         r25_newworld_index
    // @namespace    http://tampermonkey.net/
    // @version      0.1
    // @description  try to take over the world!
    // @author       You
    // @match        https://r25.jp/article/621586962847256237*
    // @grant        none
    // ==/UserScript==
    var result2 = document.evaluate('//link[@rel="canonical"]', document, null, 7, null);
    if(location.href!=result2.snapshotItem(0).href){
        history.pushState(null, null, "https://r25.jp/article/621586962847256237");
    }
    var result = document.evaluate('//h2[@id]', document, null, 7, null);
    for (var i = 0; i < result.snapshotLength; i++) {
        result.snapshotItem(i).id=i+1;
        result.snapshotItem(i).insertAdjacentHTML('beforeend', '<a href="#'+(i+1)+'">#'+(i+1)+'</a>');
    }
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2018/12/21 14:35:02 - 2018-12-21
  2. 2018/12/21 14:16:14 - 2018-12-21