Skip to content

Instantly share code, notes, and snippets.

@carmelyne
Last active December 17, 2015 09:38
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 carmelyne/5588510 to your computer and use it in GitHub Desktop.
Save carmelyne/5588510 to your computer and use it in GitHub Desktop.
Requires TamperMonkey http://goo.gl/EAp4d - Auto loads new posts for New G+ Layout - Copy script below as a new script
// ==UserScript==
// @name Auto Load G+
// @include https://plus.google.com*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @grant GM_addStyle
// @copyright 2013+, Carmelyne Thompson
// ==/UserScript==
/*- The @grant directive is needed to work around a major design
change introduced in GM 1.0.
It restores the sandbox.
*/
waitForKeyElements (".Ri07Rc", clickTargetButton);
function clickTargetButton (jNode) {
var clickEvent = document.createEvent ('MouseEvents');
clickEvent.initEvent ('click', true, true);
jNode[0].dispatchEvent (clickEvent);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment