Redirect to imgur

Seaching for imgur on google auto redirects to https://imgur.com/upload/

目前为 2022-08-15 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Redirect to imgur
  3. // @namespace https://greasyfork.org/en/users/670188-hacker09?sort=daily_installs
  4. // @version 2
  5. // @description Seaching for imgur on google auto redirects to https://imgur.com/upload/
  6. // @author hacker09
  7. // @include *://www.google.*
  8. // @icon https://t3.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=http://www.google.com&size=64
  9. // @run-at document-start
  10. // @grant none
  11. // @noframes
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16. if (location.href.match('imgur') !== null) { //Starts the if condition
  17. location.href = 'https://imgur.com/upload/'; //Redirect to https://imgur.com/upload/
  18. } //Finishes the if condition
  19. })();