12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- /*
- DESCRIPTION: This is a file that after installing a greasemonkey
- extension can be used to convert imgur to any rimgo instance.
- NOTE: I might change this really often because instances may fail.
- ----
- Copyright (C) 2021 Zortazert and other contributors
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or (at
- your option) any later version.
- This program is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <https://www.gnu.org/licenses/>.
- */
- // ==UserScript==
- // @name imgur to rimgo
- // @namespace Zera's userscripts
- // @match http://imgur.com/*
- // @match https://imgur.com/*
- // @match http://i.imgur.com/*
- // @match https://i.imgur.com/*
- // @match http://www.imgur.com/*
- // @match https://www.imgur.com/*
- // @grant none
- // @run-at document-start
- // ==/UserScript==
- url = location.href
- url = url.replace(/\bwww\.\b/, "")
- if (url.includes("i.imgur.com")){
- url = url.replace("i.imgur.com","rimgo.totaldarkness.net")
- location.href = url
- }
- else{
- url = url.replace("imgur.com","rimgo.totaldarkness.net")
- location.href = url
- }
|