Another useful one: $0 refers to the element you’ve got selected in the inspector.
Wow, I had no idea you could use $('a') or $$('a') as shorthand for document.querySelector / document.querySelectorAll. Was this added after jQuery popularized it, or has jQuery always just overloaded the $ sign operator?
As for my contribution - copy() comes in handy in the browser console pretty often, which just copies whatever you pass in as an argument to the clipboard. And I just realized that you can use console.table in node to make simple tables that you can copy and paste into other documents.
Use cd(frames) to switch to the global scope of the first iframe. Regardless of the origin. Same-origin and cross-origin both work.
This website is an incredible eyesore. I love it.
they even provide a solution for people who don’t love it:
Learned that trick from someone who posted it in reply to a previous article.
I’ve added it to my list of bookmarklets
Thanks! Be sure to sign the guestbook.
Yeah, this is definitely what I would define as a ‘kitsch’ website design.
I also like obj.toSource() !
Damn. I really did learn something. Most of us probably know some of them but there’s real lesser known content here, congrats.