Last active
February 21, 2019 17:51
-
-
Save jyhsu2000/adb8bdbb0a68308fbbf8c74e62ebe7a5 to your computer and use it in GitHub Desktop.
BukkitDev Redirect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name BukkitDev Redirect | |
// @namespace https://gist.github.com/jyhsu2000 | |
// @version 1.0 | |
// @description Redirect old url of bukkit to new one | |
// @author KID | |
// @include http://dev.bukkit.org/server-mods/* | |
// @include https://dev.bukkit.org/server-mods/* | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
// 偵測到舊版 BukkitDev 網址 | |
if(window.location.href.match("https?://dev.bukkit.org/server-mods/")){ | |
// 跳轉至新版網址 | |
window.location.href = window.location.href.replace("dev.bukkit.org/server-mods/", "dev.bukkit.org/projects/") | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment