Skip to content

wajeht/bang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

demo.mov

‼️ Bang

Node.js CI License: MIT Open Source Love svg1

DuckDuckGo's !Bangs, but on steroids.

📖 Usage

🎯 Default Commands

  • @actions - Quick access to your actions
  • @bookmarks - View your bookmarks
  • @settings - Access settings

🎨 Special Commands

  • !bm [url] - Add a bookmark
  • !add [trigger] [url] - Create a custom bang
  • Custom bangs you create with !add

🔍 Setup Custom Search Engine in Your Browser

  1. In your browser settings, add a new search engine:

    • Name: Whatever you prefer (e.g., "Bang")
    • Shortcut: bd (or any keyword you prefer)
    • URL: http://bang.jaw.dev/?q=%s
  2. Now you can use Bang directly from your browser's address bar:

    !bm https://bang.jaw.dev
    

⚙️ How to Add Custom Search Engine

  • Chrome: Settings → Search Engines → Manage Search Engines → Add
  • Firefox: Bookmarks → Manage Bookmarks → Right-click → New Bookmark → Add %s in URL
  • Edge: Settings → Privacy, search, and services → Address bar and search → Manage search engines → Add

🔖 Browser Bookmarklet

🔖 Bookmark

javascript: (function () {
	const link = encodeURIComponent(window.location.href).trim();
	if (!link) return;
	window.location.href = `http://bang.jaw.dev/?q=!bm ${link}`;
})();

⚡️ Action

javascript: (function () {
	const trigger = prompt('please enter a trigger').trim();
	if (!trigger) return;
	const link = encodeURIComponent(window.location.href).trim();
	if (!link) return;
	window.location.href = `http://bang.jaw.dev/?q=!add !${trigger} ${link}`;
})();

📑 Docs

📜 License

Distributed under the MIT License © wajeht. See LICENSE for more information.