Wikipedia:User scripts/Requests/Archive 4: Difference between revisions
Content deleted Content added
m Archiving 1 discussion(s) from Wikipedia:User scripts/Requests) (bot |
m Archiving 1 discussion(s) from Wikipedia:User scripts/Requests) (bot |
||
Line 275:
::{{small|1=Ping {{Ping|Zackmann08}} - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 01:12, 20 November 2019 (UTC)}}
:Alternatively we could just stop bothering with the <code>delete=1</code> business since it's completely useless anyway. ‑‑[[User:Trialpears|Trialpears]] ([[User talk:Trialpears|talk]]) 13:07, 3 December 2019 (UTC)
== Extract data from a frozen VisualEditor ==
Often VisualEditor ends up frozen and won't allow me to save or switch to markup-mode, giving instead a "docserver-http-error", "500", or "404" error (when the article has been renamed while I was editing). This happens about once a day.
It seems VisualEditor's API doesn't allow for extracting the markup data without connecting to the server.
I have two ugly ideas for how to solve this:
'''1. Regularly log wikimarkup when using VisualEditor to prevent loss of data when it freezes'''
* Every 30 seconds, generate wiki-markup and console.log it.
* If the connection to the server is broken, alert() me so that I may retrieve my markup from the console and reload the editor.
'''2. Extract the data model'''
* Extract the data model, copy it to my clipboard
* Reload the window
* Paste the data model, and the user script applies it to the new instance of VisualEditor
Or if anyone knows a better way to retrieve data from a frozen VisualEditor, that'd be good to know.
With thanks, – '''[[User:Þjarkur|Thjarkur]]''' [[User talk:Þjarkur#|(talk)]] 22:40, 3 August 2019 (UTC)
:{{re|Whatamidoing (WMF)}} Any ideas/comments? [[User:SD0001|SD0001]] ([[User talk:SD0001|talk]]) 04:58, 21 October 2019 (UTC)
:{{u|Þjarkur}}, the data model is actually already saved to <s>local</s>session storage in your browser. If you randomly refresh the page during an editor session, you will note a small notification top right: "Changes recovered; Your unsaved changes have been automatically recovered". No idea however what happens when the page is moved during that time. It probably wasn't designed with that in mind. You might consider opening a phabricator ticket on that feature request, as it is not an uncommon situation I'd think. —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 09:22, 21 October 2019 (UTC)
::[[User:SD0001|SD0001]], thanks for the ping. I really appreciate it when editors let me know about conversations. [[User:Þjarkur|Thjarkur]], thanks for posting about the problems you were having. I apologize for the delay in finding it. Inside the visual editor, there's a <code>?</code> menu. At the end of that menu is an item for leaving feedback on the software. That posts your note over on MediaWiki.org, where the devs are likely to find it faster.
::Yes, the ability to (usually) recover unsaved changes already exists. If the visual editor crashes, but your web browser doesn't, then you should be able to select-all and copy everything (or just the changes you were making) and then paste them back in. It won't work in 100% of the cases, but it usually works for me.
::There was a spate of 404 problems recently. That's a separate thing (all about [[mw:RESTBase]], and supposedly it's finally fixed now (as of last [[WP:THURSDAY]]?). Hopefully you're already seeing fewer of these problems. [[User:Whatamidoing (WMF)|Whatamidoing (WMF)]] ([[User talk:Whatamidoing (WMF)|talk]]) 17:10, 23 October 2019 (UTC)
:::The Restbase improvements did lessen the problem but I still run in to this way too often. The cookie-autosave is cleared if you accidentally clicked on Escape or clicked out of the VisualEditor, I think the cookie has only saved me in about 5% of cases. Does anybody know a way to interact with the VisualEditor instance in Javascript? – '''[[User:Þjarkur|Thjarkur]]''' [[User talk:Þjarkur|(talk)]] 15:51, 9 December 2019 (UTC)
|