Bookmarklets for enhancing productivity in the browserArticle contains
  1. What is a browser bookmarklet?
  2. How to use a bookmarklet?
  3. How to install a bookmarklet?
  4. Can I use bookmarklets on mobile devices?
  5. How to use a bookmarklet?
  6. Bookmarklets creators
  7. Web development bookmarklets
  8. Bookmarklets for conversion
  9. Additional tools
Computer and few dots on the horizontal panel that mimics bookmarks

Bookmarklets for enhancing productivity in the browser

What is a browser bookmarklet?

A bookmarklet is a browser bookmark that contains JavaScript code instead of a web address. When clicked, bookmarklets can perform a wide variety of operations, such as running a search query from selected text or extracting data from a table. They are essentially bookmarks that run JavaScript code on the current page when clicked, allowing users to perform functions on the page they are already on, instead of being directed to a new webpage. Bookmarklets are easy to use, portable, and can be shared across different devices. They are generally safer to use than standard programs, as they can only run when clicked and cannot access files on the hard drive.

Continue reading “Bookmarklets for enhancing productivity in the browser”
Fixing Bing SERP "See more" behaviorArticle contains
  1. What is the issue with the URL hash part in Bing SERP snippet under the See more link?
  2. Why doesn't the browser take us to the element indicated in the URL hash part?
  3. How can we fix the behavior for Bing SERP snippet and See more link?
Example of search results page with SERP snippets and Bing logo

Fixing Bing SERP “See more” behavior

Sometimes Bing displays a SERP snippet with sections based on your heading structure on your page and links See more.

However, this See more link doesn’t go anywhere because the hash part in the URL is invalid. The hash part of a URL, denoted by #, is commonly referred to as a fragment identifier. When placed at the end of a URL, it points the browser to a specific section of a webpage.

Example See more link on Bing SERP snippet:

https://www.sitelint.com/blog/what-is-a-single-page-application/#Single%20Page%20App%20Example%20Sites.

The Bing SERP snippet and its See more link contain the hash part (fragment identifier) that has the illegal character space %20. Hence, the link doesn’t point anywhere because it’s invalid. We need to fix it so that when the user activates the link, the browser will lead the user to the specified location under the hash ID.

Continue reading “Fixing Bing SERP “See more” behavior”
3 tips to improve your website's appearance on a SERP in Google and BingArticle contains
  1. Improving the home page SERP snippet on Google
  2. Improving the page SERP snippet on Google and Bing
    1. How do I get a thumbnail image displayed on the Google search results page for my website?
    2. How do I get a thumbnail image displayed on the Bing search results page for my website?
  3. Improving the SERP snippet on Bing by showing the contact email
Example of search results with a coupe of SERP snippets

3 tips to improve your website’s appearance on a SERP in Google and Bing

The appearance of a website on a Search Engine Results Page (SERP) refers to how it is presented to users when they perform a search. SERP features are any search result displayed that is not a traditional link or paid search result. They include elements such as Rich Snippets, review stars, featured snippets, the People Also Ask component, and knowledge panels.

Continue reading “3 tips to improve your website’s appearance on a SERP in Google and Bing”
Convert SVG to image in browser: PNG, JPEG, WebPArticle contains
  1. Example code for converting SVG to PNG image
  2. Brief explanation of SVG to image conversion
  3. Considerations and limitations
  4. Managing memory during the conversion process
  5. Converting SVG to JPG, JPEG, or WebP format
  6. Alternative methods for SVG conversion
  7. Converting SVG to image online
SVG text and three arrows that point to PNG, JPEG, and JPG, representing three different formats that SVG can be converted to.

Convert SVG to image in browser: PNG, JPEG, WebP

To convert SVG to PNG, JPG, or WebP WebP is a modern raster graphics file format created by Google to provide more powerful lossless and lossy compression for images on the web. It is designed to replace the JPEG, PNG, and GIF file formats, and it supports animation and alpha transparency. WebP images are less in size than popular formats such as PNG and JPEG, which might result in faster website load times., you can use the DOM API to create an object URL from the SVG code, load it into an image element, and then write that image to a Canvas. Finally, you can use the toDataURL() method to convert the Canvas to a base64 encoded PNG image.

Continue reading “Convert SVG to image in browser: PNG, JPEG, WebP”
Accessible and SEO friendly SVGsArticle contains
  1. What actually SVG is?
  2. SVG and Accessibility
    1. How do assistive technologies understand the content?
    2. How do assistive technologies understand SVG?
    3. Example 1: SVG icon and text
    4. Example 2: SVG icon only
    5. Example 3: SVG that should be treated as an image
    6. Example 4: SVG with complex data that requires a detailed description
    7. Example 5: SVG image referenced in the src attribute of the img tag
  3. SVG and Search Engine Optimization (SEO)
    1. Hyperlinks and SEO
    2. Page load times
    3. Indexing in image search engine
    4. What are the benefits of using an image search engine?
    5. Be careful with embedding SVG in HTML
  4. Summary
Making a business case for digital accessibilityArticle contains
  1. Reducing legal risks: Beyond compliance
  2. Enhancing user experience: A gateway to universal design
  3. Boosting brand reputation: Aligning with ethical consumerism
  4. Driving innovation: The mother of invention
  5. Expanding the customer base: Tapping into the disability market
  6. Summary: Inclusion and accessibility for the future
A group of people standing together. A blue hexagon shaped object in the background.

Making a business case for digital accessibility

In the ever-evolving landscape of global business, companies are constantly looking for ways to innovate and expand their market reach as well as to enhance their brand reputation.

On the path to these goals, one vital element that often gets overlooked is accessibility. Accessibility refers to the practice of making products, services, and environments usable by as many people as possible, particularly those with disabilities. However, this notion goes beyond simply ticking legal boxes. Embracing inclusivity and social responsibility isn’t just the right thing to do, it’s a powerful driver of business success.

Continue reading “Making a business case for digital accessibility”
How to find the highest z-index on a page using JavaScriptArticle contains
  1. Practical code example for finding highest z-index
  2. Can this method be modified to work with iframes or shadow DOM?
    1. The example of how you might do this for an iframe
    2. The example of how you might do this for the shadowDOM
  3. Optimize function for performance
Simple steps to convert a webpage into a PDF fileArticle contains
  1. Saving a Webpage as a PDF in Google Chrome
  2. Saving a Webpage as a PDF in Microsoft Edge
  3. Saving a Webpage as a PDF in Safari macOS
  4. Saving a Webpage as a PDF in Firefox
  5. How to save pages to pdf in Brave or Chrome on Android?
  6. How to save pages to pdf in Opera on Android?
Add a badge to the browser tab favicon using JavaScriptArticle contains
  1. Understanding what a favicon is
  2. Use cases for the badge in the favicon
  3. Adding a badge to your browser tab favicon with JavaScript
  4. I can't change the favicon with JavaScript in Safari
  5. Taking it to the next level with an enhanced version
Example of browser tab with favicon and badge on it

Add a badge to the browser tab favicon using JavaScript

Adding a badge to the favicon using JavaScript can be done by updating the image specified by the <link /> element with a new icon image.

This method involves JavaScript and creating an in-memory canvas element, applying the favicon image, drawing the badge shape and text on top, and then updating the <link /> element’s href attribute with the final composite of the canvas element’s image data as a Base64 encoded string.

Continue reading “Add a badge to the browser tab favicon using JavaScript”
Check if a string is valid HTML using JavaScriptArticle contains
  1. Essential requirements
  2. How does the DOMParser interface parse HTML strings differently based on the mimeType argument?
  3. Practical example
  4. Code
  5. Example of validation error
  6. What a MIME type is and why it's used in the isStringValidHtml function?
  7. How does the DOMParser API handle invalid HTML syntax?