Author

Topic: Enable user javascript? (Read 6075 times)

full member
Activity: 168
Merit: 100
Yoohoo
February 13, 2015, 12:34:42 PM
#12
Just using MediaWiki:Common.js is enough for site-wide javascript. Personal script is to be listed at User:{{USERNAME}}/*.js.

(ps. *.js and *.css pages in userspace are protected by the system so the only the user or admins can modify. And all MediaWiki: namespace is protected by mw core, so only admins can edit them. Unrpotection is impossible.)
legendary
Activity: 1316
Merit: 1003
October 25, 2014, 06:23:34 PM
#11
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
newbie
Activity: 5
Merit: 0
June 25, 2014, 04:59:35 PM
#10
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.
hero member
Activity: 508
Merit: 500
Techwolf on #bitcoin and Reddit
June 25, 2014, 01:40:12 AM
#9
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.
newbie
Activity: 5
Merit: 0
June 23, 2014, 12:23:32 AM
#8
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.
legendary
Activity: 2576
Merit: 1186
June 22, 2014, 04:09:46 AM
#7
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?
hero member
Activity: 700
Merit: 500
June 22, 2014, 03:35:24 AM
#6
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
newbie
Activity: 5
Merit: 0
June 17, 2014, 06:43:30 AM
#5
Everything contributed is Creative Commons Attribution 3.0 licensed.

Text, yes, but not images (or at least, that's how it should be). The strong majority of images are fully copyrighted and haven't been released under a free license; they should either be tagged as being used under fair use, or deleted if the wiki's policy is to only accept free images (which wouldn't make sense, considering that the nature of most articles requires copyrighted images, such as website screenshots, logos, etc.).

Pretty much every wiki runs this way; their text is freely licensed, but images are independently licensed as needed.
I don't see any exception for images.

Pretty sure website screenshots aren't copyrightable.
Similarly, logos may be trademarked, but I don't think copyrighted.

The wiki states "Content is available under Creative Commons Attribution 3.0 unless otherwise noted"; that "otherwise noted" consists of images, and pretty much every wiki functions this way (Wikipedia, Wikias, etc.).

And both screenshots and logos are definitely copyrightable. If the website consists of copyrighted work, so are any screenshots of it, as it's considered a derivative. Same goes for logos, save for the common exception when the logo is something simple, such as text (eg. Sony or Coca-Cola logos).

Edit: If you don't want to take my word for it

But yea, we're digressing; still curious if user javascript could be made an option? Thanks!
legendary
Activity: 2576
Merit: 1186
June 17, 2014, 04:00:06 AM
#4
Everything contributed is Creative Commons Attribution 3.0 licensed.

Text, yes, but not images (or at least, that's how it should be). The strong majority of images are fully copyrighted and haven't been released under a free license; they should either be tagged as being used under fair use, or deleted if the wiki's policy is to only accept free images (which wouldn't make sense, considering that the nature of most articles requires copyrighted images, such as website screenshots, logos, etc.).

Pretty much every wiki runs this way; their text is freely licensed, but images are independently licensed as needed.
I don't see any exception for images.

Pretty sure website screenshots aren't copyrightable.
Similarly, logos may be trademarked, but I don't think copyrighted.
newbie
Activity: 5
Merit: 0
June 16, 2014, 04:11:58 PM
#3
Everything contributed is Creative Commons Attribution 3.0 licensed.

Text, yes, but not images (or at least, that's how it should be). The strong majority of images are fully copyrighted and haven't been released under a free license; they should either be tagged as being used under fair use, or deleted if the wiki's policy is to only accept free images (which wouldn't make sense, considering that the nature of most articles requires copyrighted images, such as website screenshots, logos, etc.).

Pretty much every wiki runs this way; their text is freely licensed, but images are independently licensed as needed.
legendary
Activity: 2576
Merit: 1186
June 16, 2014, 04:04:20 PM
#2
Everything contributed is Creative Commons Attribution 3.0 licensed.
newbie
Activity: 5
Merit: 0
June 16, 2014, 03:59:06 PM
#1
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!
Jump to: