Created
July 3, 2022 12:13
-
-
Save narwanimonish/fb6c79ff5297eff530fd5f54d379bd7b to your computer and use it in GitHub Desktop.
Get the list of all quotes from Momentum dashboard using JQuery script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let quotes = []; | |
$('.cquote').each((i, el) => { | |
const body = $($(el).find('.cquote-body')[0]).text(); | |
const author = $($(el).find('.cquote-source')[0]).text(); | |
quotes.push(`${body} -- ${author}`) | |
}); | |
copy(quotes); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment