Last active
December 17, 2015 09:38
-
-
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
This file contains hidden or 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 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