Skip to content

Instantly share code, notes, and snippets.

@Makaze
Created December 20, 2017 02:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Makaze/2a0d03a4b32c19b5810d717b6d9d85e6 to your computer and use it in GitHub Desktop.
Save Makaze/2a0d03a4b32c19b5810d717b6d9d85e6 to your computer and use it in GitHub Desktop.
Force reloads after submitting a post.
// ==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