Commons:User scripts/talk/Archive 1

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Problem with IE 7

Since a few days IE 7 has problems with our website.

It throws JS-error "Access denied" on each page containing script that uses the XMLHttpRequest (XHR) / API. IE 6 and IE 8 are not affected. Lupo thinks, it is related to the activation of protocol-relative URIs. wgServer is now "//commons.wikimedia.org" -- RE rillke questions? 17:06, 7 September 2011 (UTC)

I can confirm: Setting wgServer to "http(s)://commons.wikimedia.org" works in IE7. -- RE rillke questions? 17:50, 7 September 2011 (UTC)
For AjaxQuickDelete, I suggested replacing with
apiURL: (/^\/\//.test(mw.config.get("wgServer")) ? document.location.protocol : '') + mw.config.get("wgServer") + mw.util.wikiScript( 'api' ),
Any concerns? -- RE rillke questions? 12:30, 8 September 2011 (UTC)

Scripts containing AJAX

Done

  • AjaxQuickDelete.js

Changed on the server-side at least for the jQuery installation.

This section was archived on a request by: RE rillke questions? 10:27, 4 November 2011 (UTC)

IE 8 crashing on jQuery 1.6.2.

bugzilla:31424 -- RE rillke questions? 19:00, 7 October 2011 (UTC)

We are now using jQuery 1.6.4 -- RE rillke questions? 21:13, 8 October 2011 (UTC)

This section was archived on a request by: RE rillke questions? 10:28, 4 November 2011 (UTC)

Google Calendar extension causing script error

JFYI:

If you get an error like

Uncaught TypeError: Cannot call method 'match' of undefined chrome-extension://gmbgaklkmjakoegficnlkhebmhkjfich/calendar_utils.js:78

on each file description page, nothing is wrong with our scripts, it's because there is a vevent class on our {{Information}} confusing this extension. -- RE rillke questions? 19:52, 6 May 2012 (UTC)

the text-diff tool which is used by default needs really improvements

  • Only a small improvement for "identifying identical text fragments in two versions" would be of much help / support, regarding its extremly often usage on wikipedia.
  • And there can MUCH be done / improved! I observed that the current diff is very often unable to match identical text fragments which are shifted to the next section or other logical substructure in the same section which is nearby. :-/ The user has to check word-by-word with his eyes, whether small changes had happened in theses shifted text-block or failed to recognize the change. :-( Achim1999 (talk) 10:34, 22 June 2012 (UTC)
There are JS-text-diff modules available. But if you want to have something changed in MediaWiki (all wikis) then, you have to request this at bugzilla:. It is more common to highlight differences than identical text so I don't think we will ever get this. And when coming to bugzilla it is alwas good when requesting features to show an example application that is doing a better job.
In Notepad++, identical text is highlighted in blue. -- RE rillke questions? 11:25, 22 June 2012 (UTC)
  • default installed diff-tools. Almost no user will look to changes what can be possible done internal with this automatic diffs :-(
  • Request at bugzilla? From own expirience I am still waiting since about 2 weeks of any reaction for another request / subject (you should know it) :-(
  • I only want to be sure that certain not matched text-blocks in two versions are identical, to save time of intensive checking / focus by my eye / mind!
  • Well, I can come up with a typical example, but surely not with an application which I don't know or which maybe not exists!
Thanks for moving this subject/topic to its proper place. Achim1999 (talk) 14:33, 22 June 2012 (UTC)

SVG help button

Hello!

I'm trying to improve usability of SVG contribution to Wikipedia. Since SVG is troublesome and buggy as I explained here, I wanted to improve this by adding a "SVG help" button to file description pages in case of SVG. Additionally it will only be used if a loggedin user is visiting this page so it will have a small impact to the majority of visitors on commons. Since it is overall a simple task I've hacked a prototype of it: User:Menner/svg-button.js. It is a button with a pull down menu and four options to choose.

Can such a script be embedded on Commons by default? --Menner (talk) 16:47, 22 August 2015 (UTC)

Discussion moved here: Commons:Village_pump/Proposals#SVG_help_button --Menner (talk) 08:36, 23 August 2015 (UTC)

Commons SVG Checker

Hello

I've programmed the Commons SVG Checker as an advanced replacement of Commons:SVG Check. I'm using withJS to execute code for everybody. For this reason it needs to be placed under MediaWiki:.

The Checker consist of the code itself and an user interface. The code is currently placed in User:Menner/CommonsSvgChecker.js and the user interface can be found in User:Menner/Commons SVG Checker.

So I need a way/clearance to place this code under MediaWiki: and an "official" location to place my UI.

-- Menner (talk) 15:39, 6 November 2015 (UTC)

@Menner: Nice tool. I also suggest to move User:Menner/Commons SVG Checker to Commons SVG Checker. If the tool is using a third party service please add a disclaimer. --Steinsplitter (talk) 10:00, 7 November 2015 (UTC)
@Steinsplitter: ok I will add a disclamer before release. Third party tools are User:Rillke/MwJSBot.js and Wikimedia tool server. Prefered place for UI is Commons:Commons SVG Checker. -- Menner (talk) 10:37, 7 November 2015 (UTC)
@Menner: Done. Please add a disclaimer similar to Commons:User scripts/File_Analyzer --Steinsplitter (talk) 11:03, 7 November 2015 (UTC)
@Steinsplitter: Thanks so far. I think I'll bring an update till end of 2015. I'll need to contact someone which is an admin for this, right? -- Menner (talk) 12:21, 7 November 2015 (UTC)
@Menner: Exactly. Just ping me (or someone else) if you need the MW page modified. --Steinsplitter (talk) 12:22, 7 November 2015 (UTC)

Gadget: Sortable tables for textual metadata of files

Hi, I am currently considering to develop a gadget, but I would like to avoid re-inventing the wheel if this is already available. Does anybody know an existing solution?

Purpose: Sortable tables for textual metadata of files, avoiding large number of images and galleries and thumbnails.

The media files listed at the following locations should be presented as sortable table:

The generated table (collecting via API) should have the following customizable columns:

  • linked page name (not abbreviated by ellipsis)
  • (optional) Timestamp (created or last upload)
  • (optional) Size (pixel)
  • (optional) Size (bytes)
  • (optional) User (created or last upload)
  • (optional) Extension (or MIME)
  • (optional) Single thumbnail to be inserted on interactive request
  • (optional) Description (requested number of characters)
  • (optional) Pages using (Mostimages)

Greetings --PerfektesChaos (talk) 08:23, 22 May 2018 (UTC)