A collection of JavaScript bookmarklets designed to streamline legal research by providing quick access to major legal databases and search engines.
Bookmarklets are small JavaScript programs stored as bookmarks in your browser. When clicked, they execute JavaScript code on the current webpage, allowing you to perform actions like searching selected text or opening search prompts.
- Copy the entire JavaScript code from any bookmarklet file
- Create a new bookmark in your browser
- Paste the code as the bookmark URL/location
- Give the bookmark a descriptive name
- Save the bookmark to your bookmarks bar for easy access
Post Link to Micro.blog
- Primary function: Posts selected text as blockquote to Micro.blog with domain link
- Fallback: Prompts for commentary if no text is selected
- Target: Micro.blog posting interface
- Link format: Includes
π domain.com
link without www prefix - Installation: Copy the code below and create a new bookmark with this as the URL
javascript:(function(){'use strict';var w=window,d=document,s=w.getSelection().toString(),u='',domain=w.location.hostname.replace(/^www\./,''),comment='';if(s.length>0){u='https://micro.blog/post?bookmarklet=true&text=>%20'+encodeURIComponent(s)+encodeURIComponent('\n\n[π *'+domain+'*]('+w.location.href+')')}else{comment=prompt('Add your comment:','');if(comment!==null){comment=comment.trim();u='https://micro.blog/post?bookmarklet=true&text='+encodeURIComponent(comment)+encodeURIComponent('\n\n[π *'+domain+'*]('+w.location.href+')')}}if(u)w.open(u,'Post to Micro.blog','location=0,links=0,scrollbars=0,toolbar=0,width=594,height=615')})();
These bookmarklets instantly search for any text you have selected on a webpage. If no text is selected, they'll prompt you to enter a search query.
Google Scholar Case Law Search
- Primary function: Searches selected text in Google Scholar with legal document filtering
- Fallback: Prompts for search query if no text is selected
- Target: Academic papers, case law, and legal documents
- Search parameters: Includes
as_sdt=6,31
for legal document filtering
CourtListener Selection Search
- Primary function: Searches selected text in CourtListener's federal case database
- Fallback: Prompts for search query if no text is selected
- Target: Federal court opinions, briefs, and oral arguments
- Best for: US federal case law research
Justia Selection Search
- Primary function: Searches selected text within Justia's legal resources
- Fallback: Prompts for search query if no text is selected
- Target: Cases, statutes, regulations, and legal resources
- Method: Uses Google site search (
site:justia.com
) for reliable results
These bookmarklets always open a search prompt, with smart pre-population if you have text selected.
Google Scholar Query Prompt
- Function: Always prompts for search input with selected text pre-filled
- Smart feature: Auto-populates prompt with selected text as default
- Target: Academic papers, case law, and legal documents
- Benefit: Allows editing of search terms before searching
CourtListener Query Prompt
- Function: Always prompts for search input with selected text pre-filled
- Smart feature: Auto-populates prompt with selected text as default
- Target: Federal court opinions, briefs, and oral arguments
- Benefit: Perfect for refining case name searches
Justia Query Prompt
- Function: Always prompts for search input with selected text pre-filled
- Smart feature: Auto-populates prompt with selected text as default
- Target: Cases, statutes, regulations, and legal resources
- Benefit: Ideal for complex or multi-term legal searches
- Select a case name on any webpage
- Click the
google-scholar-selection.js
bookmarklet - Instantly see Google Scholar results for that case
- Select approximate text (e.g., "Miranda warning")
- Click the
courtlistener-prompt.js
bookmarklet - Edit the pre-filled text to "Miranda v. Arizona"
- Search with refined terms
- Click any prompt-based bookmarklet
- Type your search query from scratch
- Search across your chosen legal database
Database | Selection Bookmarklet | Prompt Bookmarklet | Content Focus |
---|---|---|---|
Google Scholar | β | β | Academic papers, case law, citations |
CourtListener | β | β | Federal cases, briefs, oral arguments |
Justia | β | β | Cases, statutes, regulations, legal resources |
- Opens in new tab: All searches open in new tabs, preserving your current page
- Smart text handling: Automatically trims whitespace from selections
- Graceful cancellation: Handles cancelled prompts without errors
- URL encoding: Properly encodes special characters in search queries
- Cross-browser compatibility: Works in all modern browsers
- For quick lookups: Use selection-based bookmarklets
- For refined searches: Use prompt-based bookmarklets
- Case names: Select just the case name for best results
- Legal terms: Select specific legal terminology for focused results
- Statutes: Include section numbers when searching for specific provisions
Firefox supports keywords for bookmarks, allowing you to trigger bookmarklets by typing short commands in the address bar. This is incredibly efficient for legal research:
- Save any bookmarklet as a bookmark
- Right-click the bookmark β "Properties"
- Add a short keyword (e.g.,
gs
for Google Scholar) - Save the changes
gs
- Google Scholar (selection or prompt)cl
- CourtListenerjus
- Justiagsp
- Google Scholar Prompt (if you have both versions)cls
- CourtListener Selection
Just type your keyword in the Firefox address bar and press Enter. No mouse clicking required!
Example workflow:
- Select case name: "Miranda v. Arizona"
- Type
gs
in address bar + Enter - Instant Google Scholar search in new tab
Chrome/Edge: While they don't have native keyword support, you can:
- Pin bookmarklets to the bookmarks bar for one-click access
- Use extensions like "Shortkeys" for keyboard shortcuts
- Create custom search engines in settings (for prompt-based functionality)
Safari: Similar to Chrome - use bookmarks bar or create custom search engines
These bookmarklets work in:
- Chrome
- Firefox
- Safari
- Edge
- All Chromium-based browsers
Feel free to submit issues or pull requests to improve these bookmarklets or add support for additional legal databases.
MIT License - Feel free to use, modify, and distribute these bookmarklets.
Happy legal researching! πβοΈ
Made with help from Anthropic's Claude Sonnet 4 by joeross