Wayback Machine for Chrome Omnibox Colon Fix

Revert the URL encoding of colons by Chrome %s replacement to make it work with Wayback Machines search

  1. // ==UserScript==
  2. // @name Wayback Machine for Chrome Omnibox Colon Fix
  3. // @description Revert the URL encoding of colons by Chrome %s replacement to make it work with Wayback Machines search
  4. // @author Archangel1C
  5. // @license GPL-3.0-only
  6. // @namespace https://github.com/Archangel1C
  7. // @version 0.4
  8. // @match http*://web.archive.org/web/*
  9. // @run-at document-start
  10. // @grant none
  11. // @compatible chrome
  12. // @contributionURL https://flattr.com/@Archangel1C
  13. // ==/UserScript==
  14. //
  15. // Omnibox Search Engine URL: https://web.archive.org/web/*/%s
  16. //
  17. // Sources/Influences:
  18. // - https://superuser.com/a/302179 for the JavaScript part
  19. // - https://superuser.com/a/364060 for the GreaseMonkey part
  20.  
  21.  
  22. (function() {
  23. // debugger instruction lets Chrome stop here
  24. // debugger;
  25.  
  26. // https://www.w3schools.com/js/js_strict.asp
  27. // https://stackoverflow.com/a/1335881/4423698
  28. 'use strict';
  29.  
  30. // avoid infinite recursion
  31. if(window.location.href.search(/%3A/gi) > -1) {
  32. window.location = window.location.href.replace(/%3A/gi, ":");
  33. }
  34. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址