Skip to content

Instantly share code, notes, and snippets.

@narwanimonish
Created July 3, 2022 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save narwanimonish/fb6c79ff5297eff530fd5f54d379bd7b to your computer and use it in GitHub Desktop.
Save narwanimonish/fb6c79ff5297eff530fd5f54d379bd7b to your computer and use it in GitHub Desktop.
Get the list of all quotes from Momentum dashboard using JQuery script
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