I created this Greasemonkey for batch following/unfollowing Twitter users. The script works just fine. However, it won't always (almost never) load the first time I go to one of the pages on the include list.
For instance, if I go to twitter.com/followers, the script won't load unless I use CTRLF5 (which refreshes the page contents from the server).
I am not sure whether this is how Greasemonkey scripts are supposed to run, or there is something in my code that I need to change?
My GM script:
// ==UserScript==
// @name Brainstack.net "YOU Follow (Beta)"
// @namespace net.brainstack.gm
// @description Script for automating the following of users from the Twitter Followers page
// @require http://gm.brainstack.net/tasa/tasa.js
// @resource tasa_CSS http://gm.brainstack.net/tasa/tasa.css
// @downloadURL http://gm.brainstack.net/tasa/Brainstack.net_tasa.user.js
// @updateURL http://gm.brainstack.net/tasa/Brainstack.net_tasa.meta.js
// @include https://twitter.com/followers*
// @include https://www.twitter.com/followers*
// @include https://twitter.com/*/followers*
// @include https://www.twitter.com/*/followers*
// @include https://twitter.com/*/following*
// @include https://www.twitter.com/*/following*
// @include https://twitter.com/following*
// @include https://www.twitter.com/following*
// @include https://twitter.com/search/users?*
// @run-at document-end
// @grant GM_getResourceText
// @grant GM_addStyle
// @version 1.14
// ==/UserScript==
//add CSS to head
var CSS = GM_getResourceText("tasa_CSS");
GM_addStyle(CSS);
//hook to the page load
bsnet_app_page_load();
You can download and/or install the script at gm.brainstack.net.
Thanks!