Using the Snippets tab in the source devtool you can define and run arbitrary pieces of code in your browser against whatever website you’re looking at. This is a great way to store commonly used pieces of code that you rely on for debugging or customization.
Awesome!! Never tried Snippets before. Thank You for creating this video!!!!!!!
Can you provide some real project use cases? I mean some daily useful examples and can we add some third party libraries in snippets(e.g => lodash, underscore etc)?
Can you provide some real project use cases? I mean some daily useful examples and can we add some third party libraries in snippets(e.g => lodash, underscore etc)?
You can use console-importer to import third-party libraries. Consequently, you can create a snippet with the next code $('lodash');
and it will load the library into the browser.
Nice tip. I was able to put it to use immediately.
const x = document.getElementsByClassName('unavailable')
for (let i = 0; i < x.length; i++) {
x[i].parentElement.style.display="none";
}
}