Created
December 20, 2017 02:12
-
-
Save Makaze/2a0d03a4b32c19b5810d717b6d9d85e6 to your computer and use it in GitHub Desktop.
Force reloads after submitting a post.
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 Serenes Forest - Fix Double Posting Bug | |
// @namespace Makaze | |
// @description See title. | |
// @include *serenesforest.net/forums/* | |
// @grant none | |
// @version 1.0.0 | |
// ==/UserScript== | |
if (document.getElementsByClassName('ipsComposeArea')[0] != null) { | |
document.addEventListener('click', function(event) { | |
if (event.target == document.getElementsByClassName('ipsComposeArea')[0].getElementsByClassName('ipsButton_primary')[1]) { | |
setTimeout(function() { | |
window.stop(); | |
location.reload() | |
}, 500); | |
} | |
}, false); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment