Skip to content

Instantly share code, notes, and snippets.

@gprasanth
Created June 1, 2021 06:24
Show Gist options
  • Save gprasanth/62261a979826bb271f742e719e824254 to your computer and use it in GitHub Desktop.
Save gprasanth/62261a979826bb271f742e719e824254 to your computer and use it in GitHub Desktop.
A simple script to click "Sign in to your account" automatically for you when you navigate to basecamp.com
// ==UserScript==
// @name AwayWeGo
// @namespace https://gprasanth.in/
// @version 1.0
// @description clicks the "Sign in to your account" for you
// @author gprasanth92
// @match https://basecamp.com/welcome-back
// @icon https://www.google.com/s2/favicons?domain=basecamp.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
const next = 'https://launchpad.37signals.com/signin';
try {
document.querySelector(".button[href='${next}']").click();
} catch(e) {
window.location.href = next;
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment