On Thu, 20 Dec 2007 22:13:25 -0500, Gracenotes wrote:
On Dec 19, 2007 7:42 PM, Steve Bennett stevagewp@gmail.com wrote:
On 12/20/07, Bryan Derksen bryan.derksen@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
I've been meaning to check out greasemonkey; it looks like that should work. Try adding script like
// ==UserScript== // @name block anon edits // @namespace wikipedia // @description script to prevent anonymous wiki edits. // @exclude http://*/index.php?title=*&action=edit&assert=user // ==/UserScript== window.location.href = window.location.href + "&assert=user";
with the include set to http://en.wikipedia.org/w/index.php?title=*&action=edit
or whatever project(s) you want this to apply to.
The exclude expression should be loosened up a bit to prevent possible redirect loops, but the idea should work.