HomeFeatured videos and new releasesBrowseLatest videos, playlists, and topicsCreatorsYouTube creators and their videosNewsHeadlines from publishers' feedsHistoryResume recently watched videos
Theme
Language
AccountAccountSign in
PrivacyCookiesTermsAboutContactRemovalMethodology
Account
Sign in
HD Tutorial: Edit Web Pages with Javascript
Video · 0:00

HD Tutorial: Edit Web Pages with Javascript

Marques Brownlee@mkbhd•7.5K views•Jun 5, 2009•3:12

Your rating

Rate this video from 1 to 5

Reactions

Reactions to this video

Share

WhatsAppXReddit
Source
YT
Views
7.5K
Subscribers
21.5M
vs. channel typical
0.0x
Likes per 100
2.1
Comments
36

Promos

***WATCH IN HD*** Have you ever seen those Youtube videos where someone claims to have 'hacked' another famous Youtuber? It's really quite easy - using javascript! Here's the code I mentioned: javascript: document.body.contentEditable = 'true'; document.designMode = 'on'; void 0 Enjoy - SUBSCRIBE!

Start

AI Overview

The video presents a quick, practical tutorial on editing a web page locally using JavaScript. The presenter explains that the technique works only on the viewer’s own browser and does not alter the live internet, emphasizing that changes are temporary and for demonstration purposes. The core idea shown is injecting a short script that makes the page content editable, enabling you to alter text and numbers directly in the browser. A step-by-step example is demonstrated by replacing the page URL with a small JavaScript snippet, which triggers a brief blink and then enables editing across the page. The host demonstrates edits on a YouTube channel page and a mocked site, showing how to alter titles, counts, and messages to illustrate the concept. The tutorial wraps up with guidance on refreshing the page to revert changes and invites viewers to try similar edits locally, noting that the approach is mainly for fun and experimentation rather than altering live sites. Overall, the video combines a simple code snippet with live editing demonstrations to convey how document editing modes function in the browser.

Topics · technology · web development · programming · tutorials

Questions answered

What does the JavaScript snippet do to a web page in this tutorial?
The snippet sets document.body.contentEditable to 'true' and enables document.designMode, making the page editable in the browser so text and numbers can be modified locally.

More from Marques Brownlee

  • YouTube Recap 2026 #YouTubePartner
    0:45

    YouTube Recap 2026 #YouTubePartner

    269K views•yesterday
  • We got GTA 6 before a new studio
    0:33

    We got GTA 6 before a new studio

    39K views•5 days ago
  • Welcome to MKBHQ! The Ultimate Video Studio Tour
    30:21

    Welcome to MKBHQ! The Ultimate Video Studio Tour

    2.3M views•5 days ago
  • Best Gifts Under $50 | MKBHD Holiday Gift Guide
    30:04

    Best Gifts Under $50 | MKBHD Holiday Gift Guide

    520.4K views•last week

Related videos

  • BUILDING HIS DREAM PC - ROG Rig Reboot
    10:10

    BUILDING HIS DREAM PC - ROG Rig Reboot

    4.7M views•9 years ago
  • I Have to Do Everything this AI Says - ChatGPT Builds a PC
    17:35

    I Have to Do Everything this AI Says - ChatGPT Builds a PC

    3.6M views•4 years ago
  • The ULTIMATE Steam Deck
    19:29

    The ULTIMATE Steam Deck

    3.4M views•4 years ago
  • How to Build the ULTIMATE Silent Gaming or Workstation PC
    19:26

    How to Build the ULTIMATE Silent Gaming or Workstation PC

    3.1M views•12 years ago
  • Max Builds her FIRST PC – Photo Editing Build Log
    9:08

    Max Builds her FIRST PC – Photo Editing Build Log

    2.8M views•9 years ago
  • Triple your Battery Life for FREE! THIS METHOD REALLY WORKS!
    10:35

    Triple your Battery Life for FREE! THIS METHOD REALLY WORKS!

    2.7M views•10 years ago