Skip to content

Instantly share code, notes, and snippets.

@aidin36
Created April 19, 2016 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aidin36/f9733d814391d1e5398f4645d86b2719 to your computer and use it in GitHub Desktop.
Save aidin36/f9733d814391d1e5398f4645d86b2719 to your computer and use it in GitHub Desktop.
A Greasemonkey script to tell Google I don't want to trust every machine.
// ==UserScript==
// @name Uncheck Google's Stay Singin
// @description This will uncheck both `Stay Signin' on password page, and `Never ask on this computer again' on challange (Second Step Verification Code) page.
// @namespace com.aidinhut
// @include https://accounts.google.com/ServiceLogin*
// @include https://accounts.google.com/signin*
// @version 1
// @grant none
// ==/UserScript==
//
// This script is published without any Copyright. Use it as you like.
//
var checkBox = document.getElementById('PersistentCookie');
if (checkBox) {
checkBox.checked = false;
};
var checkBox = document.getElementById('trustDevice');
if (checkBox) {
checkBox.checked = false;
};
@aidin36
Copy link
Author

aidin36 commented Apr 19, 2016

Every single day, I have to uncheck both Stay Signin' andNever ask on this computer again'. They should be unchecked by default. If I want them, I can check them myself.

In security world, the default is `Don't trust'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment