Bypass LiveJournal External Link Warning

Automatically bypass LiveJournal's external link warning page

当前为 2024-09-14 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Bypass LiveJournal External Link Warning
  3. // @namespace https://github.com/dear-clouds/mio-userscripts
  4. // @version 1.0
  5. // @description Automatically bypass LiveJournal's external link warning page
  6. // @author Mio.
  7. // @supportURL https://github.com/dear-clouds/mio-userscripts/issues
  8. // @match https://www.livejournal.com/away?to=*
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. var urlParams = new URLSearchParams(window.location.search);
  16. var redirectUrl = urlParams.get('to');
  17.  
  18. if (redirectUrl) {
  19. window.location.href = decodeURIComponent(redirectUrl);
  20. }
  21. })();