Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // @match https://teamtreehouse.com/*
- function loginToTreehouse () {
- if ( !document.body.classList.contains("logged-in") ) {
- if ( window.location.href.indexOf("signin") == -1 ) {
- window.location.href = "https://teamtreehouse.com/signin?return_to=%2F";
- }
- }
- }
- loginToTreehouse();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement