ウィキペディアのURLをcurid式に

    @@ -12,5 +12,5 @@ const parser = new DOMParser(); const tmp = parser.parseFromString( await ( ( await fetch( location.href+'?action=info' ) ).text() ), "application/xml"); const curid = tmp.querySelector('#mw-pageinfo-article-id td:nth-child(2)').textContent; - location.href=url.protocol+url.host+'?curid=' + curid; + location.href=location.protocol+location.host+'?curid=' + curid; })()
  • /*
     * @title ウィキペディアのURLをcurid式に
     * @description https://ja.wikipedia.org/?curid= に移動します。
     * @include https://ja.wikipedia.org/wiki/*
     * @license MIT License
     * @require 
     * @javascript_url
    */
    
    
      (async ()=>{
        const parser = new DOMParser();
        const tmp = parser.parseFromString( await ( ( await fetch( location.href+'?action=info' ) ).text() ), "application/xml");
        const curid = tmp.querySelector('#mw-pageinfo-article-id td:nth-child(2)').textContent;
        location.href=location.protocol+location.host+'?curid=' + curid;
      })()
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2020/06/15 13:09:39 - 2020-06-15
  2. 2019/10/30 15:25:58 - 2019-10-30
  3. 2019/10/16 14:00:27 - 2019-10-16
  4. 2019/10/16 13:56:59 - 2019-10-16
  5. 2019/10/16 13:37:38 - 2019-10-16
  6. 2019/04/17 12:32:09 - 2019-04-17
  7. 2019/04/17 12:29:44 - 2019-04-17
  8. 2019/04/17 12:28:49 - 2019-04-17
  9. 2018/11/14 12:06:56 - 2018-11-14
  10. 2018/11/14 12:06:09 - 2018-11-14
  11. 2018/11/14 12:05:56 - 2018-11-14
  12. 2018/11/14 11:59:20 - 2018-11-14
  13. 2018/11/14 11:57:33 - 2018-11-14
  14. 2018/11/14 11:56:18 - 2018-11-14