Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The animation intro is detrimental to the actual article..

You need to delete the HTML element with class

`video-stepper-content`

So annoying.

if lazy : Console cmd :

`document.getElementsByClassName('video-stepper-content')[0].parentNode.removeChild(document.getElementsByClassName('video-stepper-content')[0])`



Trying to optimize your line for non-whitespace character count since I have nothing else to do right now, I just discovered $ can be used in any webpage from the browser console:

$('.video-stepper').style.display = 'none'


If we're golfing, and jQuery is there: $('.video-stepper').hide()


I tried, it's not in this article, I am really interested for a shorter solution however :-)

edit: $('.video-stepper').remove() works


Ahh, I see. No jQuery. The Chrome developer console is aliasing $() to document.querySelector()

https://developers.google.com/web/tools/chrome-devtools/cons...

I didn't know it did that.


Thats actually pretty interesting.. Wonder which would take preference if I have a bespoke definition for $ in an extension/worker somewhere.

Even a browser level event listener on it. O_o

Clearly I don't have much either to do today.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: