Jump to content

User talk:Enterprisey/undo-last-edit.js

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Throwing client side errors for mobile users

[edit]

@TheDJ:. This code seems to be running on the mobile domain somehow. Do you know how? It's possible this has led to a significant spike in errors on mobile. It's certainly counting as one of them...

The following code should be all that's needed to fix it at the top of the function call to make it Minerva safe: if ( !link ) return;

Error is: > jQuery.Deferred exception: Cannot read property 'addEventListener' of null TypeError: Cannot read property 'addEventListener' of null Error seen on Holy_fathers_slain_at_Sinai_and_Raithu.

PS. How can I be notified of gadgets getting enabled on enwiki? It would help debug these sort of things. Is there a RecentChanges stream I should be following ? Jdlrobson (talk) 17:32, 21 January 2019 (UTC)[reply]

Jdlrobson, should be fixed now? Also, I'm not sure how you would get a list of all new user scripts. People usually add them to WP:US/L, I guess? And of course true gadgets will be added to MediaWiki:Gadgets-definition, so watching both pages should cover most of it. New creations in the User namespace with titles ending in .js will cover everything but it'll be very noisy. I'm also trying to resurrect User:Facenapalm/Most imported scripts so you can go off the top N pages listed there, if it ever updates. Enterprisey (talk!) 02:32, 22 January 2019 (UTC)[reply]
thank you for the quick response and the super helpful advice!!! Jdlrobson (talk) 02:36, 22 January 2019 (UTC)[reply]