Post
Topic
Board Bitcoin Wiki
Re: Enable user javascript?
by
bernard75
on 25/10/2014, 23:23:34 UTC
Hey guys - I'm a relatively new editor to the wiki, and would like to work with appropriately tagging images with their appropriate licensing.

By the looks of it, custom user javascript isn't enabled (eg. I can't run https://en.bitcoin.it/wiki/User:SuperHamster/vector.js). Any chance we could get it enabled? The custom script I'd run lets me quickly tag images with appropriate licensing. Thanks!

I don't see why not, will talk to the others about it and then maybe get it enabled Smiley

Thank you!

But yea, we're digressing; still curious if user javascript could be made an option? Thanks!
I think all major browsers support client-side user javascript these days.
Any reason that wouldn't work for you?

Good idea, and I suppose not, but that doesn't mean it shouldn't be available on-wiki. It'll be much easier to run scripts from any computer with it associated with your account.

I'd be concerned about XSS attacks if user JS was added to the wiki, depending on how it works (I'm not too familiar with wikis). If there's some way to mitigate this, then I don't see a problem with it, though I don't have much authority on the topic.

I was wondering about that...it is an official extension built by Wikimedia, and most other wikis I've been on use it with no problem (namely Wikipedia) so it's pretty well safeguarded, but I don't know any technical details beyond that.
You can look at the source code here:
http://svn.organicdesign.co.nz/filedetails.php?repname=extensions&path=%2FJavaScript%2FJavaScript.php