Let Me Count The… Links?

bookmarklet

While working on a list filtering and sorting project for the librarians at work, I wrote a bookmarklet to help me count how many links were showing up so I could verify that the correct databases were being displayed.

javascript:(function(){alert((document.getElementsByTagName(‘li’)).length-139);})();

Basic? Yes. Necessary? Absolutely! As I preach often… automation is the key to the salvation of our time.

(In case you’re wondering… 139 is how many links are on the template page that I was working in. Don’t judge me. That’s a whole OTHER issue our library has to work on someday in the future.)

Advertisements

One Reply to “Let Me Count The… Links?”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s