Bypass LiveJournal External Link Warning

Automatically bypass LiveJournal's external link warning page

目前为 2024-10-24 提交的版本。查看 最新版本

  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. // @license GPL-3.0
  9. // @match *://*.livejournal.com/away?to=*
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. var urlParams = new URLSearchParams(window.location.search);
  17. var redirectUrl = urlParams.get('to');
  18.  
  19. if (redirectUrl) {
  20. window.location.href = decodeURIComponent(redirectUrl);
  21. }
  22. })();