Created
June 1, 2021 06:24
-
-
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
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 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