Skip a Listing of the Dates

Skip a listing of the dates on a list page of the urls

Versão de: 30/06/2019. Veja: a última versão.

// ==UserScript==
// @name        Skip a Listing of the Dates
// @namespace   https://greasyforks.org/users/19523
// @description Skip a listing of the dates on a list page of the urls
// @include     http://web.archive.org/web/*/*
// @include     https://web.archive.org/web/*/*
// @version     0.1
// @grant       none
// ==/UserScript==


document.addEventListener('DOMContentLoaded', function () {
  var phrases = location.pathname.split('/');
  if (phrases.slice(-1)[0].slice(-1)[0] !== '*' || 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 });
});
长期地址
遇到问题?请前往 GitHub 提 Issues。