Last modified: 2011-03-13 18:04:38 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T9365, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 7365 - Disabling of user defined CSS/JS via URL command
Disabling of user defined CSS/JS via URL command
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
unspecified
PC Windows XP
: Lowest enhancement with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: css
  Show dependency treegraph
 
Reported: 2006-09-18 19:13 UTC by Marco
Modified: 2011-03-13 18:04 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Marco 2006-09-18 19:13:13 UTC
A user should be able to disable the inclusion of User:XY/monobook.js and
User:XY/monobook.css via a url command like
http://de.wikipedia.org/wiki/Michael_Vanrose?css=off.

Actually it could be done as an if query at the position where the exist of the
2 pages is looked.
Comment 1 Marco 2007-03-27 15:03:18 UTC
In my own monobook I use now

if(location.href.indexOf("disable_css")==-1) {
             document.write('<script type="text/javascript" src="' 
             +
'http://de.wikipedia.org/w/index.php?title=Benutzer:D/monobook/user.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
             document.write('<link rel="stylesheet" type="text/css" href="'
             +
'http://de.wikipedia.org/w/index.php?title=Benutzer:D/monobook/user.css'
             + '&action=raw&ctype=text/css&dontcountme=s"></link>');
}

This should be easily portable.
Marco
Comment 2 Marco 2007-03-27 20:44:14 UTC
Short:

if(location.href.indexOf("disable_css")==-1) {
 ...YOUR MONOBOOK...
}
Comment 3 Platonides 2008-01-26 18:32:33 UTC
Why would you want to do so? As an user, you can blank those pages or include conditional code as proposed above.

You're probably asking for it to avoid people locking to themselves but
a) You can use another skin &useskin= to avoid loading your monobook js/css
b) You can disable CSS and/or Javascript on your browser at will.

If everything fails, admins can still change that page.

It's not that the problem can't be fixed, but people not knowing the right way to do it. Adding a new parameter which only initiated know won't help on that.

What situation would require that parameter?
Comment 4 Marco 2008-07-24 13:47:00 UTC
For example if your monobook radically changes the UI but is buggy in printing. So you may want to attach that parameter so prints look just like normal. Or if you want to save pages, but want them to be saved just like normal.
Comment 5 Platonides 2008-07-24 16:05:16 UTC
> For example if your monobook radically changes the UI but is buggy in printing.
Then you missed some @media screen parameters.

> you want to save pages, but want them to be saved just like normal.
just delete the downloaded monobook.css

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links