Bypass the redirection notice

Bypass the redirection notice displayed by Google when clicking a link on custom clients

当前为 2023-02-21 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Bypass the redirection notice
  3. // @name:fr Outrepasser l'alerte de redirection
  4. // @description Bypass the redirection notice displayed by Google when clicking a link on custom clients
  5. // @description:fr Outrepasser l'alerte de redirection affichée par Google lorsque l'on clique sur un lien dans un client non-officiel
  6. // @author Deuchnord
  7. // @version 1.0.1
  8. // @namespace https://deuchnord.fr/userscripts#google.com/bypass-redirection
  9. // @match https://www.google.com/url?*
  10. // @icon https://www.google.com/favicon.ico
  11. // @license AGPL-3.0
  12. // @grant none
  13. // ==/UserScript==
  14.  
  15. (function() {
  16.  
  17. const url = new URL(document.location.href);
  18. let redirectTo = url.searchParams.get("url");
  19. document.location.href = redirectTo;
  20. })();