Created
March 10, 2017 13:05
-
-
Save Haraldson/63755c9cfd6b272db5674408654b6184 to your computer and use it in GitHub Desktop.
Couchsurfing: Just a reply!
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 Couchsurfing: Just a reply! | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Sometimes, even saying ’Maybe’ is too much of a commitment. There might be too little information, or you just don’t want to get their hopes up. | |
// @author Hein Haraldson Berg | |
// @match https://www.couchsurfing.com/messages/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var styles = document.createElement('style'); | |
styles.innerHTML = ` | |
.inbox-thread__message-form > form > .u-hidden { | |
display: block !important; | |
visibility: visible !important; | |
} | |
`; | |
document.head.appendChild(styles); | |
var submitButton = document.querySelector('.inbox-thread__message-form > form > .u-hidden > .inbox-thread__form-actions > button[name="send"]'); | |
submitButton.removeAttribute('disabled'); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment