I have this problem with a script not executing on mobile twitter. I have tried it on many versions of Firefox including FF5, FF8, and FF9.
I have used the latest versions of Greasemonkey. Right now I have FF9 with GM 0.9.10. I do not have any problems executing the script on the normal twitter but on mobile it does not work. Maybe has something to do with HTTPS?
Here is the script:
// ==UserScript==
// @name Twitter Mobile
// @namespace http://www.test.com
// @include https://mobile.twitter.com/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
// ==/UserScript==
function MainLoop() {
if(typeof unsafeWindow.jQuery == 'undefined') {
window.setTimeout(MainLoop, 100);
return;
}
var $ = unsafeWindow.jQuery;
$(document).ready(function(){
//do something here
});
window.setTimeout(MainLoop, 2000);
}
MainLoop();
I have tried everything possible. Also, checked the @require
alternatives and tried them. I do not know why it refuses to execute.