! Note !
More 'bookmarklet' code samples may be added
to this page --- if/when I revisit or use this page.
More notes may be added to draw attention to noteworthy
features of these bookmarklet examples.
< Go to Table of Contents (Code Samples), below. >
(Skip the following Introduction.)
Many web pages nowadays (circa 2010-2020) contain a lot of useless decorative images that just make the text on the page a pain to read --- not to mention the excessive (needless) amount of processing required to render those useless images in the web page.
In the 'old days' (circa 1995-2005), web browsers included an option to 'turn off images'. That was in the days of low-speed internet connections --- on the order of kilobits-per-second instead of megagits-per-second.
Unfortunately, it seems all web browsers removed the 'no graphics' option around the 2005 time frame.
I wanted that option back. I thought one might be able to make a web-browser 'plug-in' ('browser extension') to over-ride the display of images in a web page. But when I looked into the programming required to make a 'plug-in', I was put-off by all the components required ( interface definition files and compiled code and maybe more).
That seemed to require a way-too-complicated effort to simply turn off images (or, at least, many of the images) in a web page.
Bookmarklets rather than plug-ins :
AND ... there were other types of things I had wanted to do in the past (with a 'plug-in') that I now realized I might be able to do with these 'bookmarklet' thingies --- such as:
So I started doing WEB SEARCHES on keywords such as:
In doing these searches, I repeatedly found that the most specific help on crafting bookmarklets was often to be found at the 'stackoverflow.com' site, at pages such as:
It turns out that to extract information from DOM objects, it is frequently helpful to use the DOM function (method) 'document.getElementsByTagName'.
To hide objects in a page, one technique is to re-set a visibility 'style' of the object. For example: Use the statement
to get and put the image 'elements' into an array called 'imgs' --- and then use a for-loop with the statement
to hide the images.
(Although this does not avoid the processing in downloading the images when the web page is first loaded into the web browser, at least the readability of the page can be improved --- and the frustration generated by large, typically-useless images can be eliminated.)
To do 'extract-and-display' of some objects in a current web page, we can use the 'window.open' method to create a new window (or tab) and then use the 'document.write' method to write extracted information to the new window. (The extracted information could be collected by the 'document.getElementsByTagName' method.)
Some web sites on bookmarklets :
I tried to find some web sites that might have an 'archive' of bookmarklets of the kind I was looking for --- some 'hide' or 'extract-and-display' bookmarklets.
So I started doing WEB SEARCHES on keywords such as:
But the few sites that I found were mostly ones that contained bookmarklets to
Furthermore, it seems that bookmarklet-collection sites are 'drying up' because there are some security concerns about certain kinds of bookmarklets.
One security concern that I have is: Many of the web pages that provide samples of bookmarklets tell you to drag (or paste) the link to a bookmarklet into a bookmarks 'container' of your web browser --- code unseen.
I would like to check the code out first --- to make sure that they are not including popup ads and even more nefarious stuff in the bookmarklet code.
The bookmarklets that I provide below are provided in a way that you can examine the code before you implement it as a bookmarklet in your web browser.
Here are a few web sites that provide some free bookmarklet examples without requiring you to 'jump through hoops', such as registration of your email address and surrendering the family jewels.
You can remove some keywords and add other keywords, such as 'picture' or 'href' or 'link' or 'anchor' or 'src' or 'source' or 'data' or 'code' or 'script' or 'style' or 'font' or 'width' or 'color' or 'margin' or 'padding' or 'bold' or 'div' or 'span' or 'table' or 'paragraph' or 'text' or 'list' or 'ordered' or 'unordered' or 'object' or 'embed' or 'audio' or 'video' or 'body' or 'meta' or 'head' or 'title' or 'map' or 'canvas'.
In the process of trying to find useful 'bookmarklet collections', I found several sites that provide some bookmarklet introductions or tutorials --- without requiring you to 'jump through hoops', such as registration of your email address and surrendering the family jewels. Here are a few.
If some of these introduction/tutorial sites go dead, you could try doing WEB SEARCHES like the following :
Intent and Use of This Page
The 'list-of-bookmarklets' section below provides a means to SEE and DOWNLOAD (or bookmark) code samples that I think will be of use to me in my web browsing activities --- for example, from my netbook computer when I am on the road --- or from someone else's desktop or laptop computer, at home or abroad.
Over time, I will probably alter some of these bookmarklets to use different naming conventions (for the bookmarklets or for variables within the bookmarklets) --- and to make more practical (useful) examples.
This page is mainly intended to help me retrieve a useful bookmarklet when I am frustrated by horribly-written web pages --- or when I need bookmarklet code examples from which to craft some more useful bookmarklets.
Note that my emphasis is typically on client-side scripting, rather than scripting to handle 'forms' input-to (or output-from) a remote web server.
I make this web page available to others who may find it difficult, like I did, to find 'useful-to-me' bookmarklet coding examples.
How to Use This Page
When you click on a 'bookmarklet' link, a new window (or tab) should open in your browser, to show the code.
You can close new 'bookmarklet' windows/tabs, leaving this page open in a window for further code examination and downloading.
If you want to save the code to a file on your computer, you can RIGHT-click (or hold your finger down) on a 'bookmarklet' link and use a popup menu option such as 'Save Link Target As ...' to save a copy of the file.
If you need some information on how to implement 'bookmarklets', see the 'WEB SEARCH' links and introduction/tutorial links above.
(Someday I may add some detailed implementation information here --- for the web browsers and devices that I use.)
TABLE OF CONTENTS:
(links to SEE-or-SAVE
End of this List of Bookmarklets.
Bottom of this
To return to a previously visited web page location, use the
Back button of your web browser a sufficient number of times.
OR, use the History-list option of your web browser.
Page was started 2018 Nov 03.