Below is a list of 50 useful bookmarklets along with explanations of what each one does. You can create a bookmark in your browser for any of these by copying the code and setting it as the bookmark's URL.
-
Alert Page Title
javascript:(function(){alert(document.title);})();
Description: Displays an alert dialog showing the current page's title.
-
Prompt Page URL
javascript:(function(){prompt('Page URL:',location.href);})();
Description: Opens a prompt dialog displaying the current page's URL, allowing you to copy it.
-
Make Page Editable
javascript:(function(){ document.body.contentEditable='true'; document.designMode='on'; void 0; })();
Description: Makes the current webpage editable, allowing you to modify text and elements directly in your browser. Note that changes are temporary and only visible to you.
-
View Page on Wayback Machine
javascript:(function(){ window.location='https://web.archive.org/web/*/'+location.href; })();
Description: Redirects you to the Internet Archive's Wayback Machine to view archived versions of the current page.
-
Validate HTML
javascript:(function(){ window.open('https://validator.w3.org/nu/?doc=' + encodeURIComponent(location.href)); })();
Description: Opens the W3C Markup Validation Service to validate the HTML of the current page.
-
Whois Lookup
javascript:(function(){ window.location='https://whois.domaintools.com/'+location.hostname; })();
Description: Redirects to DomainTools to perform a Whois lookup on the current domain.
-
Google Site Search
javascript:(function(){ window.location='https://www.google.com/search?q=site:'+document.domain; })();
Description: Performs a Google search limited to the current site, showing all indexed pages.
-
SSL Labs Analyzer
javascript:(function(){ window.open('https://www.ssllabs.com/ssltest/analyze.html?d=' + encodeURIComponent(window.location.hostname)); })();
Description: Opens SSL Labs' SSL Server Test for the current domain to analyze its SSL configuration.
-
Show Last Modified Date
javascript:(function(){ alert('This page was last modified on: ' + document.lastModified); })();
Description: Displays an alert showing the last modified date and time of the current page.
-
Print Page
javascript:(function(){ window.print(); })();
Description: Opens the print dialog to print the current page.
-
Scroll to Top
javascript:(function(){ window.scrollTo(0,0); })();
Description: Instantly scrolls the page to the top.
-
Scroll to Bottom
javascript:(function(){ window.scrollTo(0,document.body.scrollHeight); })();
Description: Instantly scrolls the page to the bottom.
-
Check Site Availability
javascript:(function(){ window.open('https://downforeveryoneorjustme.com/'+location.hostname); })();
Description: Opens a site to check if the current website is down just for you or for everyone.
-
Alexa Rank
javascript:(function(){ window.open('https://www.alexa.com/siteinfo/'+location.hostname); })();
Description: Opens Alexa to view the traffic analytics and global rank of the current website.
-
VirusTotal Scan
javascript:(function(){ window.open('https://www.virustotal.com/gui/url/search/' + encodeURIComponent(location.href)); })();
Description: Scans the current URL for malware and phishing using VirusTotal.
-
GTmetrix Performance Test
javascript:(function(){ window.location='https://gtmetrix.com/analyze.html?bm&url='+encodeURIComponent(location.href); })();
Description: Analyzes the performance of the current page using GTmetrix.
-
Mobile-Friendly Test
javascript:(function(){ window.location='https://search.google.com/test/mobile-friendly?url='+encodeURIComponent(location.href); })();
Description: Tests if the current page is mobile-friendly using Google's Mobile-Friendly Test tool.
-
Display Screen Resolution
javascript:(function(){ alert('Screen resolution: ' + screen.width + 'x' + screen.height); })();
Description: Shows an alert with your screen's resolution.
-
PageSpeed Insights
javascript:(function(){ window.location='https://developers.google.com/speed/pagespeed/insights/?url='+encodeURIComponent(location.href); })();
Description: Analyzes the current page using Google's PageSpeed Insights for performance suggestions.
-
Siteliner Duplicate Content Check
javascript:(function(){ window.location='https://www.siteliner.com/'+encodeURIComponent(location.href); })();
Description: Checks for duplicate content on the current site using Siteliner.
-
Enable Dark Mode
javascript:(function(){ document.body.style.backgroundColor='black'; document.body.style.color='white'; })();
Description: Applies a simple dark mode by changing the background and text colors.
-
Enable Light Mode
javascript:(function(){ document.body.style.backgroundColor='white'; document.body.style.color='black'; })();
Description: Reverts the page to light mode with default background and text colors.
-
Hide Page Content
javascript:(function(){ document.body.style.visibility='hidden'; })();
Description: Hides all visible content on the page.
-
Show Page Content
javascript:(function(){ document.body.style.visibility='visible'; })();
Description: Makes the page content visible again if it was hidden.
-
Google Maps Search
javascript:(function(){ window.location='https://www.google.com/maps/search/?api=1&query='+encodeURIComponent(document.title); })();
Description: Searches Google Maps using the current page's title as the query.
-
Translate Page to English
javascript:(function(){ window.location='https://translate.google.com/translate?sl=auto&tl=en&u='+encodeURIComponent(location.href); })();
Description: Translates the current page into English using Google Translate.
-
Mozilla Developer Network Search
javascript:(function(){ window.open('https://developer.mozilla.org/en-US/search?q='+encodeURIComponent(document.title)); })();
Description: Searches the Mozilla Developer Network for documentation related to the page title.
-
Copy URL to Clipboard
javascript:(function(){ navigator.clipboard.writeText(location.href); alert('URL copied to clipboard!'); })();
Description: Copies the current page's URL to the clipboard and shows a confirmation alert.
-
SimilarWeb Analytics
javascript:(function(){ window.location='https://www.similarweb.com/website/'+document.hostname; })();
Description: Opens SimilarWeb to view detailed analytics for the current website.
-
Google Trends Search
javascript:(function(){ window.open('https://trends.google.com/trends/explore?q='+encodeURIComponent(document.title)); })();
Description: Searches Google Trends for the current page's title to see its popularity over time.
-
BuiltWith Technology Profiler
javascript:(function(){ window.location='https://builtwith.com/'+location.hostname; })();
Description: Analyzes the current website to show what technologies it's built with using BuiltWith.
-
Alert Page Title
javascript:(function(){ alert('The page title is: ' + document.title); })();
Description: Displays an alert with the current page's title.
-
Alert Page URL
javascript:(function(){ alert('The page URL is: ' + location.href); })();
Description: Displays an alert with the current page's full URL.
-
Check Site Availability (Alternative)
javascript:(function(){ window.open('https://isitdownorjust.me/'+location.hostname); })();
Description: Uses an alternative service to check if the current website is down.
-
Screenshot Machine
javascript:(function(){ window.location='https://www.screenshotmachine.com/capture.php?url='+encodeURIComponent(location.href); })();
Description: Takes a screenshot of the current page using ScreenshotMachine.com.
-
Search Page on Twitter
javascript:(function(){ window.open('https://twitter.com/search?q='+encodeURIComponent(location.href)); })();
Description: Searches Twitter for mentions of the current page's URL.
-
Buffer Share
javascript:(function(){ window.open('https://buffer.com/add?text='+encodeURIComponent(document.title)+'&url='+encodeURIComponent(location.href)); })();
Description: Adds the current page to your Buffer queue for scheduled social media posting.
-
Show Meta Description
javascript:(function(){ var desc = document.querySelector('meta[name="description"]'); alert('Meta Description: ' + (desc ? desc.content : 'Not available')); })();
Description: Displays an alert with the page's meta description, if available.
-
Show Meta Keywords
javascript:(function(){ var keywords = document.querySelector('meta[name="keywords"]'); alert('Meta Keywords: ' + (keywords ? keywords.content : 'Not available')); })();
Description: Displays an alert with the page's meta keywords, if available.
-
Display Viewport Size
javascript:(function(){ alert('Current Viewport Size: ' + window.innerWidth + 'x' + window.innerHeight); })();
Description: Shows an alert with your browser's viewport size.
-
Share on Facebook
javascript:(function(){ window.open('https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent(location.href)); })();
Description: Opens Facebook's share dialog to share the current page on your timeline.
-
YouTube Search
javascript:(function(){ window.location='https://www.youtube.com/results?search_query='+encodeURIComponent(document.title); })();
Description: Searches YouTube for videos related to the current page's title.
-
Count Links on Page
javascript:(function(){ alert('Links on this page: ' + document.links.length); })();
Description: Displays an alert with the total number of hyperlinks on the current page.
-
Pingdom Website Speed Test
javascript:(function(){ window.location='https://tools.pingdom.com/#5a3d0c4760000000/'+encodeURIComponent(location.href); })();
Description: Tests the load speed of the current page using Pingdom Tools.
-
Reddit Search
javascript:(function(){ window.open('https://www.reddit.com/search/?q='+encodeURIComponent(document.title)); })();
Description: Searches Reddit for discussions related to the current page's title.
-
Quora Search
javascript:(function(){ window.open('https://www.quora.com/search?q='+encodeURIComponent(document.title)); })();
Description: Searches Quora for questions and answers related to the page's title.
-
LinkedIn Search
javascript:(function(){ window.open('https://www.linkedin.com/search/results/all/?keywords='+encodeURIComponent(document.title)); })();
Description: Searches LinkedIn for posts, people, and companies related to the page's title.
-
Pingdom Website Test (Alternative)
javascript:(function(){ window.location='https://www.pingdom.com/?url='+encodeURIComponent(location.href); })();
Description: An alternative way to test the current page's load speed using Pingdom.
-
AMP Validator
javascript:(function(){ window.open('https://validator.ampproject.org/#url='+encodeURIComponent(location.href)); })();
Description: Checks if the current page is AMP-compliant using the AMP Validator.
-
Copy Title to Clipboard
javascript:(function(){ navigator.clipboard.writeText(document.title); alert('Title copied to clipboard!'); })();
Description: Copies the current page's title to the clipboard and shows a confirmation alert.
These bookmarklets provide quick access to various tools and functionalities directly from your browser, enhancing productivity and offering valuable insights. Feel free to add any of them to your bookmarks for easy use.
Note: Due to browser security policies, some bookmarklets that interact with the clipboard or require certain permissions may not work as expected in all browsers or may prompt for permission.