Re: [Wikitech-l] Need example code in Javascript to login API

2016-11-04 Thread Nick Wilson (Quiddity)
On Thu, Nov 3, 2016 at 9:24 PM, Sam Wilson wrote: > > [...] For example, the PGDP WordCheck > system presents the user with a syntax-highlighted view of each page prior > to saving, highlighting *all* punctuation and spaces and newlines, and > making each miss-spelled word

Re: [Wikitech-l] Need example code in Javascript to login API

2016-11-03 Thread Sam Wilson
Yes, I'm not sure about the automatic replacement of words in pages other than the current one — something more along the lines of a spelling-checker, maybe? Where the dictionary can be customised per-work. Is Extension:SpellingDictionary

Re: [Wikitech-l] Need example code in Javascript to login API

2016-11-03 Thread Thomas PT
Thank you very much for this idea! +1 for a gadget or maybe, in the future, a part of the ProofreadPage extension. An issue that we probably need to tackle when designing this tool: what about not-existing words that could be a typo of two different words? If we replace all instances of the

Re: [Wikitech-l] Need example code in Javascript to login API

2016-11-02 Thread Sam Wilson
This sounds like a great idea (something akin to PGDP's WordCheck tool ?) But I wonder if implementing it as a Gadget would be easier? That way, the user is already logged in, and can access all the normal APIs etc. The word lists (both good and bad?) could be

Re: [Wikitech-l] Need example code in Javascript to login API

2016-11-02 Thread Shrinivasan T
Gergo Tisza, Recently, we added more then 2000 books to Tamil WikiSource using Google OCR with OCR4WikiSource https://github.com/tshrinivasan/OCR4wikisource Most of the books have 30-40% spell errors. To fix them, editing the pages manually is not easy. I am thinking of a browser plugin with

Re: [Wikitech-l] Need example code in Javascript to login API

2016-10-28 Thread Moriel Schottlender
As a side note, chrome extensions can authorize a domain and use it as if they're requesting while on the site, it seems, to prevent cors errors. https://developer.chrome.com/extensions/declare_permissions That may require that your user login directly in Wikipedia rather than through your

Re: [Wikitech-l] Need example code in Javascript to login API

2016-10-27 Thread Gergo Tisza
On Wed, Oct 26, 2016 at 12:26 PM, Bartosz Dziewoński wrote: > Firstly, I'm afraid that page might not be up to date; there have been > some changes to modernize the login API recently, and that page was last > updated in 2013. The canonical documentation is < >

Re: [Wikitech-l] Need example code in Javascript to login API

2016-10-26 Thread Bartosz Dziewoński
Firstly, I'm afraid that page might not be up to date; there have been some changes to modernize the login API recently, and that page was last updated in 2013. The canonical documentation is (in English). Secondly, login API is mostly intended for

[Wikitech-l] Need example code in Javascript to login API

2016-10-26 Thread Shrinivasan T
Hello all, I am trying to develop a chrome extension to work with wikipedia. Started exploring javascript for login api. Got this example. https://www.mediawiki.org/wiki/Example_login_code_in_JS_%28using_JQuery%29 Stored the code as test.html and opened in chrome. Got the following error.