This file contains hidden or 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
[...document.querySelectorAll('.MuiButtonBase-root.MuiListItem-root')] | |
.filter(el => !el.querySelector('.accordionIconContainer main.done')) | |
.map(el => el.querySelector('p.contentTime')?.textContent.trim()) | |
.filter(Boolean) | |
// converte para minutos (como número) | |
.map(t => { | |
const [min, sec] = t.split(':').map(Number); | |
return min + sec / 60; | |
}) | |
// filtra valores até 30 min |
This file contains hidden or 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
document.querySelectorAll('.miles').forEach(elm => elm.innerText = `R$ ${( | |
(parseInt(elm.innerText.replace('.', '')) / 1000) * | |
18 | |
).toFixed(2)}`) |
This file contains hidden or 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
{"schemaVersion":1,"label":"coverage","message":"34%","color":"green"} |
This file contains hidden or 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
const parseMarkdownToHtml = (markdownText) => { | |
const htmlText = markdownText | |
.replace(/^### (.*$)/g, '<h3>$1</h3>') | |
.replace(/^## (.*$)/g, '<h2>$1</h2>') | |
.replace(/^# (.*$)/g, '<h1>$1</h1>') | |
.replace(/\_(\S(.*?\S)?)\_/g, '<i>$1</i>') | |
.replace(/\*\*(\S(.*?\S)?)\*\*/g, '<b>$1</b>') | |
.replace(/\~\~(\S(.*?\S)?)\~\~/g, '<del>$1</del>') | |
.replace(/!\[(.*?)\]\((.*?)\)/g, "<img alt='$1' src='$2' />") | |
.replace(/\[(.*?)\]\((.*?)\)/g, "<a href='$2'>$1</a>") |
This file contains hidden or 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 images = document.getElementsByTagName('img') | |
let i = 0 | |
setInterval(function(){ | |
if(images.length > i){ | |
window.open(images[i].src,'_blank') | |
i++ | |
} | |
},1000) |