dmlls / yang Goto Github PK
View Code? Open in Web Editor NEWYang! - Yet Another Bangs anywhere Firefox extension
Home Page: https://addons.mozilla.org/addon/yang-addon/
License: GNU General Public License v3.0
Yang! - Yet Another Bangs anywhere Firefox extension
Home Page: https://addons.mozilla.org/addon/yang-addon/
License: GNU General Public License v3.0
Thanks for the shoutout!
I had this same issue with my extension where passing a URL to a site like the Wayback Machine won't get escaped properly. Something like !wayback https://duckduckgo.com/bangs
works without the extension installed, but with it installed, it tries to search https%3A%2F%2Fduckduckgo.com%2Fbangs
and fails.
For example, !bang google
is redirecting to moz-extension://d2b72ea1-45d8-450b-9ae8-887696c55f6a/bang?q=google
when it should redirect to https://duckduckgo.com/bangs?q=google
add the ability to change the default ! before bangs, since some users (myself included) may prefer other characters such as :
I configured Yang custom bang !g {{{s}}}
to open https://www.google.com/search?q={{{s}}}
. I tried tests with and without URL Encode Query
option.
The original DuckDuckGo bang! with an emtpy query directly opens the first page of the site. For example, !g
with opens https://www.google.com
. I guess it opens the link of "d"
element from bang.js
file when there is no keyword.
{"c":"Online Services","d":"www.google.com","r":2123537,"s":"Google","sc":"Google","t":"g","u":"https://www.google.com/search?q={{{s}}}"}
Yang! custom bang behaves differently. It opens https://www.google.com/search?q=
page with an empty query. It has no option to configure the page to open with an empty query.
Hey @dmlls, thanks for the blazingly fast extension! I really enjoy it in Firefox, but miss something similar for Chrome. Iโm planning to dive in and try converting it to a Chrome extension.
FYI, I don't have much experience with web extensions, so I'll be learning as I go. I plan to use some NPM packages, but I noticed that you've git-ignored the package.json
and package-lock.json
files. Could you please share those files? I want to avoid any conflicts with your project.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.