日付選択ページを飛ばす

インターネットアーカイブでURLのワイルドカード検索で出た一覧から選択すると直接そのページへアクセスできる

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name            Skip a Listing of the Dates
// @name:ja         日付選択ページを飛ばす
// @namespace       https://greatest.deepsurf.us/users/19523
// @description     on a list page of the urls on Internet Archive
// @description:ja  インターネットアーカイブでURLのワイルドカード検索で出た一覧から選択すると直接そのページへアクセスできる
// @include         http://web.archive.org/web/*/*
// @include         https://web.archive.org/web/*/*
// @version         0.1.3
// @grant           none
// ==/UserScript==


  if (location.href.slice(-1) !== '*') {
    return;
  }

  var phrases = location.pathname.split('/');
  if (phrases[2].indexOf('*') < 0) {
    return;
  }

  var observer = new MutationObserver(function (mutations) {
    var aElements = document.querySelectorAll('#resultsUrl_wrapper td.url > a');
    for (var i = 0, a; a = aElements[i]; i++) {
      var names = a.pathname.split('/');
      names[2] = '99999999999999';
      a.pathname = names.join('/');
    }
  });

  observer.observe(document.getElementById('resultsUrl').getElementsByTagName('tbody')[0], { childList: true });