On Dec 19, 2007 7:42 PM, Steve Bennett <stevagewp(a)gmail.com> wrote:
On 12/20/07, Bryan Derksen
<bryan.derksen(a)shaw.ca> wrote:
I use the Classic skin rather than the default
Monobook skin, which
makes Wikipedia look freakishly different when I'm not logged in.
Perhaps picking some other different skin would have the same effect, if
you don't like Classic in particular.
Along these lines, it's very simple to edit your monobook.css so that
the background is a very different colour when you're logged in. And
you can keep the same skin. On the downside, you have to do it for
every mediawiki site.
Another solution would be to use greasemonkey to hack a simple script
that would remove the [edit] link from any WMF site if you're not
logged in. Presumably there is a way to determine logged-in status.
Steve
Greasemonkey script that can be enabled on
http://en.wikipedia.org/w/index.php?*
if (/[?&]action=(edit|submit)($|&)/.test(document.location.href)) {
window.addEventListener("load", function() {
if (window.wgUserName) return;
var save = document.getElementById("wpSave");
if (!save) return;
save.disabled = true;
}, false);
}
It disables the save button, so you can
still view the source of the page, just not
submit it.
Unfortunately, Greasemonkey loads even
before wg* variables are available, and I
can't seem to convince it to do
otherwise <.<
-Gracenotes