Skip a Listing of the Dates

on a list page of the urls on Internet Archive

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

  1. // ==UserScript==
  2. // @name Skip a Listing of the Dates
  3. // @name:ja 日付選択ページを飛ばす
  4. // @namespace https://greatest.deepsurf.us/users/19523
  5. // @description on a list page of the urls on Internet Archive
  6. // @description:ja インターネットアーカイブでURLのワイルドカード検索で出た一覧から選択すると直接そのページへアクセスできる
  7. // @include http://web.archive.org/web/*/*
  8. // @include https://web.archive.org/web/*/*
  9. // @version 0.1.3
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13.  
  14. if (location.href.slice(-1) !== '*') {
  15. return;
  16. }
  17.  
  18. var phrases = location.pathname.split('/');
  19. if (phrases[2].indexOf('*') < 0) {
  20. return;
  21. }
  22.  
  23. var observer = new MutationObserver(function (mutations) {
  24. var aElements = document.querySelectorAll('#resultsUrl_wrapper td.url > a');
  25. for (var i = 0, a; a = aElements[i]; i++) {
  26. var names = a.pathname.split('/');
  27. names[2] = '99999999999999';
  28. a.pathname = names.join('/');
  29. }
  30. });
  31.  
  32. observer.observe(document.getElementById('resultsUrl').getElementsByTagName('tbody')[0], { childList: true });