Created
July 27, 2015 03:34
-
-
Save lv7777/74acc25bb61157e6f5e4 to your computer and use it in GitHub Desktop.
MdN翻訳した時に移動させない奴
This file contains hidden or 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 移動させない | |
// @namespace lv7777 | |
// @description せっかくMdNで翻訳したのにミスって移動してしまう悲しみを君はもう背負わなくていいんだよ | |
// @include https://developer.mozilla.org/ja/*$edit | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
window.onbeforeunload = function(event){ | |
event = event || window.event; | |
event.returnValue = 'ページから移動しますか?'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment