Last active
October 25, 2018 22:41
-
-
Save likuilin/afbf0351024414844d8445c78ba44df2 to your computer and use it in GitHub Desktop.
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 Pardus Disable OC Retreat | |
// @author Kui | |
// @match https://*.pardus.at/ship2opponent_combat.php?* | |
// @updateURL https://gist.github.com/likuilin/afbf0351024414844d8445c78ba44df2/raw/disable_oc_retreat.user.js | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
if (Array.from(document.querySelectorAll("font")).some(e=>e.innerText=="OFFENSIVE")) | |
document.querySelector('input[value="Retreat"]').onclick = ()=>confirm("Are you absolutely sure you want to retreat on OC?"); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment