Go to the course and have any video up. The following code relies on the right sidebar to be visible to uncheck all your progress.
You can do this with ctrl+shift+j and making sure the console tab is selected for chrome/brave
| (async function automateDownload() { | |
| const batchSize = 20; | |
| let index = 0; | |
| function delay(ms) { | |
| return new Promise(resolve => setTimeout(resolve, ms)); | |
| } | |
| while (true) { | |
| const items = document.querySelectorAll(".badge-add-to-pdf"); // Update this selector to match your items |
| const { port, env } = require('./config/vars'); | |
| const logger = require('./config/logger'); | |
| const app = require('./config/express'); | |
| const mongoose = require('./config/mongoose'); | |
| const https = require('https'); | |
| const fs = require('fs'); | |
| //const firebaseService = require('../src/api/services/firebase') | |
| // open mongoose connection | |
| mongoose |
| const AWS = require('aws-sdk'); | |
| const sharp = require('sharp'); | |
| const s3 = new AWS.S3(); | |
| exports.handler = async (event) => { | |
| try { | |
| const bucket = event.Records[0].s3.bucket.name; | |
| const key = decodeURIComponent(event.Records[0].s3.object.key.replace(/\+/g, ' ')); | |
| const outputKey = `resized/${key}`; |
| { | |
| "labelData": { | |
| "667fd6b83fff91abf3d3751c": { | |
| "style": [ | |
| "modern", | |
| "minimalist", | |
| "contemporary", | |
| "sleek", | |
| "functional" | |
| ], |
| #!/bin/bash | |
| # Check internet connectivity | |
| check_internet() { | |
| wget -q --spider http://example.com | |
| return $? | |
| } | |
| # Wait for internet connectivity | |
| while ! check_internet; do |
| const nav = [ | |
| // Start Here is super parent | |
| { | |
| label: "Start Here", | |
| // this link will throw an 404 and thats okay. | |
| link: "/docs/start-here/", // if you notice start-here got converted to "Start Here" for label so you will have to do some string conversions | |
| enabled: true, | |
| subItems: [ | |
| { | |
| label: "Install Astro", // "Install Astro" title is coming from markdown frontmatter field called linkTitle so if its a folder it will use folder name as parent if its a single file means its a page then we will use linkTitle |
| --- | |
| title: "Docs title" | |
| linkTitle: "Link title" | |
| description: example description | |
| --- | |
| ## Heading | |
| content |
Go to the course and have any video up. The following code relies on the right sidebar to be visible to uncheck all your progress.
You can do this with ctrl+shift+j and making sure the console tab is selected for chrome/brave