Moving along with automating in the Browser. Today I learned how to automate todo creation using setTimeout
and setInterval
.
Adding the delay is necessary because using a for loop creates todos with duplicate ids (the id is set using the millisecond the todo is created)
I also learned how to execute this code as a bookmarklet. The syntax is as follows:
javascript: (function(){
// code to execute when you open the bookmark
}()
- Day 11 - Finish chapter 1
- Day 12 - Words + Active Voice
- Day 13 - Active Voice, Clear Sentences, Short Sentences
- Day 14 - Finish up Short Sentences
- Day 15 - Automating in the Browser Using JavaScript
- Day 16 - Automating in the Browser Using JavaScript | Chapter 8.1
- Day 17 - Automating in the Browser Using JavaScript | Chapters 8.2-11
- Day 18 - Easy Edabit
- Day 19 - What is Rockstar?
- Day 20 - Finished Automating in the Browser Using JavaScript