Code Snippets

Useful code snippets for SEO, UX/UI etc. Also check out my GitHub.

PRODUCTION READY

NOT PRODUCTION READY

Share Webpage

Add an #navigator-share element ('navigator-share' as the element 'id') anywhere on your webpage. When clicked, this code will capture the current webpage's metadata, and include it when a user shares the page.

PRODUCTION READY

NOT PRODUCTION READY

Indicative Link Cursors

A mouse cursor that better represents the link on hover. Implement custom cursors based on each specific link. This includes social media icon cursors, cursors to indicate link location (#section, internal, external, email etc) background color detection, and cursor size control.

PRODUCTION READY

NOT PRODUCTION READY

Favicon Cursors

Set the mouse cursor to the favicons of the link website destination. This searches for the /favicon.icon path, then tries Google's favicon API, then falls back to a 'pointer' cursor.

PRODUCTION READY

NOT PRODUCTION READY

Copy to Clipboard

A very easy to use script tag that allows copy functionality. Additional options include custom copy text and custom cursors.

PRODUCTION READY

NOT PRODUCTION READY

Table of Contents

PRODUCTION READY

NOT PRODUCTION READY

URL Parameters

PRODUCTION READY

NOT PRODUCTION READY

Read Time

PRODUCTION READY

NOT PRODUCTION READY

Funny Placeholders

PRODUCTION READY

NOT PRODUCTION READY

Unique Schema Id

PRODUCTION READY

NOT PRODUCTION READY

Sticky Video

Just like in popular video steaming websites & applications, you can now (with this code) 'stick' a video to the bottom on the webpage when a user scrolls past the embedded video.

PRODUCTION READY

NOT PRODUCTION READY

Automated Schema

Auto-generate and embed schema.org markup JSONs. Markup is templated, and triggered based on identifying specific semantic HTML tags, and page metadata.

PRODUCTION READY

NOT PRODUCTION READY

Clean Schema

PRODUCTION READY

NOT PRODUCTION READY

Automated OG Image

PRODUCTION READY

NOT PRODUCTION READY

Share to Social

Jake Labate, Top "SEO" and "Organic Search" LinkedIn VoiceJake Labate, Top Community Voice on LinkedIn
Jake Labate, SEO Consultant on GoogleJake Labate, Google Knowledge Panel