Skip to content

Instantly share code, notes, and snippets.

@Haraldson
Created March 10, 2017 13:05
Show Gist options
  • Save Haraldson/63755c9cfd6b272db5674408654b6184 to your computer and use it in GitHub Desktop.
Save Haraldson/63755c9cfd6b272db5674408654b6184 to your computer and use it in GitHub Desktop.
Couchsurfing: Just a reply!
// ==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