@
Enterprisey: So, apparently links can look like &oldid=prev&diff=123456789
? I didn't know that until, like, yesterday. There are bigger ramifications, but for this, it means that
var oldid = window.location.search.match( /oldid=(\d+)/ )[1];
will error on such links. ~ Amory ( u • t • c) 10:17, 29 April 2020 (UTC)
data.query.pages0].deletedrevisions.forEach( function ( rev ) {
Cannot read property 'forEach' of undefinederror. ~ Amory ( u • t • c) 20:26, 29 April 2020 (UTC)
I just wanted to say this is amazing. What a time-saver! Thank you :) — MusikAnimal talk 21:16, 2 May 2020 (UTC)
@
Enterprisey: So, apparently links can look like &oldid=prev&diff=123456789
? I didn't know that until, like, yesterday. There are bigger ramifications, but for this, it means that
var oldid = window.location.search.match( /oldid=(\d+)/ )[1];
will error on such links. ~ Amory ( u • t • c) 10:17, 29 April 2020 (UTC)
data.query.pages0].deletedrevisions.forEach( function ( rev ) {
Cannot read property 'forEach' of undefinederror. ~ Amory ( u • t • c) 20:26, 29 April 2020 (UTC)
I just wanted to say this is amazing. What a time-saver! Thank you :) — MusikAnimal talk 21:16, 2 May 2020 (UTC)