Skip to content

A bookmarklet that alerts how many DOM nodes you have on your page

Notifications You must be signed in to change notification settings

lingtalfi/count-dom-nodes-bookmarklet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Count DOM nodes bookmarklet

2016-09-23

A bookmarklet that alerts how many DOM nodes you have on your page.

How to use

In Firefox

Paste the following code into a web page and open it in a browser, then put add the link to your favorites (drag the link in your tool bar).

<!DOCTYPE html>
<html>
<head>
	<title>Count DOM nodes on a page</title>
</head>
<body>
<a href="javascript: (function () {alert(document.getElementsByTagName('*').length); }());">Count DOM nodes of a page: put me in your favorites</a>
</body>
</html>

In Chrome

In Chrome, click Bookmarks->Bookmark Manager.
You should see a new tab with the bookmarks and folders listed.
Select the "Bookmarks Tab" folder on the left.
Click the "Organize" link, then "Add Page" in the drop down.
You should see two input fields. ...
Paste the javascript code below into the second field.

javascript: (function () {alert(document.getElementsByTagName('*').length); }());

About

A bookmarklet that alerts how many DOM nodes you have on your page

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages