User talk:Nx/Scripts/Botswitch greasemonkey.js

From RationalWiki
Jump to navigation Jump to search

I am having some problems; the script doesn't seem to work at all. I'm using the Safari version of Greasemonkey on the Safari 4 beta, and can see no "switch" button. Bastard cubic Phantom Hoover! 07:47, 7 March 2009 (EST)

Is there a debug console or something on Safari? I'll try it out, but I have to boot windows first. --  Nx/talk  07:50, 7 March 2009 (EST)
No good; the Safari version of Greasemonkey only works on a Mac, as far as I can tell. You dual-boot Windows? I use VirtualBox. Bastard cubic Phantom Hoover! 07:52, 7 March 2009 (EST)
I had a virtual windows on linux, but I deleted it because I didn't really use it. And yeah, no greasemonkey on windows, but I'll try the standard version. --  Nx/talk  07:56, 7 March 2009 (EST)
Doesn't work with FireFox either. Bastard cubic Phantom Hoover! 07:59, 7 March 2009 (EST)
Working on safari 4 here, however I had to refresh a few times. On firefox, go to tools-error console, click clear, then reload a rationalwiki page, and see if there are any errors. You'll likely see a few warnings, but those are usually not a problem, just click the red stop sign in the toolbar to only show the errors. --  Nx/talk  08:04, 7 March 2009 (EST)
It works fine with the in-wiki version, but I would prefer the Greasemonkey version, for obvious reasons. Bastard cubic Phantom Hoover! 08:16, 7 March 2009 (EST)
Could you check the debug console under firefox for the greasemonkey version (see previous comment)? --  Nx/talk  08:21, 7 March 2009 (EST)
"Error: Not well-formed
Source File: file:///Users/PhantomHoover/Documents/botswitch.user.js
Line: 1
{\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf430"
Wait, did you save it as an rtf file? --  Nx/talk  08:36, 7 March 2009 (EST)
Originally, because TextEdit doesn't let me save things as .js, but I changed the suffix to .js later and it's definitely not a .rtf. Bastard cubic Phantom Hoover! 08:39, 7 March 2009 (EST)

But if you save it as an rtf, it won't work, since it's not plain text. It doesn't matter if you rename it. Can you save it as plain text? --  Nx/talk  08:41, 7 March 2009 (EST)

Right. I created the file using vim, then fixed the code with TextEdit, but you could have made it clearer. Bastard cubic Phantom Hoover! 08:52, 7 March 2009 (EST)
No, wait, it still doesn't work with Safari. I'll try Safari 3.2.1. Bastard cubic Phantom Hoover! 13:56, 7 March 2009 (EST)
It works in FF, but not Safari? --  Nx/talk  13:58, 7 March 2009 (EST)
Yes, and it's not a bug specific to the Safari 4.0 public beta, because I uninstalled it and the problem persists. Bastard cubic Phantom Hoover! 14:04, 7 March 2009 (EST)
The nature of the problem is that the "switch" button still appears to the right of the "log out" button, but clicking on it does nothing. Bastard cubic Phantom Hoover! 14:05, 7 March 2009 (EST)
Did you try the non-greasemonkey version on Safari? That one worked here. Also, if you go into options-advanced (Safari 4) and enable developer features, then unhide the menu bar, you can select Developer-Error console to show something like Firefox's error console. Then reload a rationalwiki page and try clicking on switch again, and check if there are any errors. --  Nx/talk  14:13, 7 March 2009 (EST)
"ReferenceError: Can't find variable: GM_getValue" Bastard cubic Phantom Hoover! 04:24, 8 March 2009 (EDT)
That stuff was removed from Greasekit because of a security vulnerability. More info here. There's a workaround which uses cookies, but then that's not safe again. --  Nx/talk  04:36, 8 March 2009 (EDT)