23 March 2015

greasemonkey scripts not doing anything at all


This is what I did

In Iceweasel (Firefox) in Linux Debian, I added the greasemonkey add-on. Created some simple scripts, imported some simple scripts but NOTHING happened.

I could see that greasemonkey (GS) was saying that it was running the scripts I expected but nothing happened.

If I run the same code on the console it was fine, but not inside GM.


==== Troubleshooting

I added things like:
GM_log("Hello, GM_log");
console.log("on console");
alert('"Hello World!"');


I opened the browser console (Ctrl+Shift+J) but still nothing.


However I could see something not related with the page or my scripts.
"NS_ERROR_XPC_BAD_OP_ON_WN_PROTO: Illegal operation on WrappedNative prototype object"
and it was coming from a script related with greasemonkey internal scripts (not my scripts).



In synaptic (apt-get) I saw a package related with GS and installed it. No changes.


Searching led me to a bug and not much more, but no workaround nor many people with that problem.


Creating a fresh profile and installing GS again did not produce any change.



==== Solution

In synaptic, selected the iceweasel and greasemonkey packages for re-installation.

Problem fixed.



Hopefully someone with the same problem can find this.

07 March 2015

Unable to turn off auto-sync on android


That is what I was looking for but couldn't find the answer on Internet.

Finally I found it myself, so I put it here just in case someone needs it.


Problem:
Auto-sync is turned ON and you can't turn it off.


Solution:
1. Turn on "Background data"
2. Now you can turn off "Auto-sync"
3. Turn off "Background data"


Too Cool for Internet Explorer