Welcome to Codidact Meta!
Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.
Post History
As a workaround, it's possible to write code in the browser console to iterate over the <li> tags within the <div> for each diff entry, and join their text with newlines in between. The...
Answer
#2: Post edited
- I was able to extract the text I wanted (I think) - each revision, as separate text entries, in reverse order - at the browser console like so:
- ```
- $($('.diff-new').get().reverse()).each(function() { console.log($(this).find('li').map(function() { return $(this).text() }).get().join('\n'))})
- ```
- As a workaround, it's possible to write code in the browser console to iterate over the `<li>` tags within the `<div>` for each diff entry, and join their text with newlines in between. The page renders empty space with empty `<li>`s.
- I was able to extract the text I wanted (I think) - each revision, as separate text entries, in reverse order - at the browser console like so:
- ```
- $($('.diff-new').get().reverse()).each(function() { console.log($(this).find('li').map(function() { return $(this).text() }).get().join('\n'))})
- ```
#1: Initial revision
I was able to extract the text I wanted (I think) - each revision, as separate text entries, in reverse order - at the browser console like so: ``` $($('.diff-new').get().reverse()).each(function() { console.log($(this).find('li').map(function() { return $(this).text() }).get().join('\n'))}) ```