It's highly likely this extension will be rejected by the Microsoft Edge Add-ons store.
Here's why, focusing on the potential policy violations and concerns from the reviewer's perspective:
Direct Manipulation of a Third-Party Website's UI (Major Red Flag):
Your extension explicitly states it will "Paste it into Gemini’s chat input" and "Automatically click the “Submit” button."
This is the biggest issue. Extension stores generally prohibit extensions that programmatically interact with, modify, or automate actions on a third-party website's elements without that website's explicit API or permission.
Why it's a problem:
Fragility: If Gemini changes its HTML structure (e.g., the ID or class of the chat input or submit button), your extension breaks immediately. Reviewers don't want to approve fragile extensions.
Security/Trust: While your intent is benign, this technique (injecting content scripts to find elements and simulate clicks) can be used for malicious purposes (e.g., auto-liking, auto-following, scraping data, bypassing paywalls, or even interacting with banking sites). Stores are very cautious about approving any technique that could be misused.
Website Terms of Service: Google's Gemini terms of service likely prohibit automated or programmatic interaction with their service without an official API. Microsoft doesn't want to be seen as enabling violations of another company's ToS.
User Experience/Consent: While the user installs the extension, the automatic typing and clicking can feel like a "hijack" of the website's intended interaction, even if the user initiated the query.
Implicit Brand Association/Impersonation (Minor Concern, but adds to the first):
While not direct impersonation, deeply integrating with and automating a major brand's (Google/Gemini) site without their explicit partnership can be seen as an attempt to leverage their brand without permission.
What Microsoft Edge Add-ons Policies often state (paraphrased):
Functionality: Extensions must not interfere with, disrupt, or damage the functioning of websites.
Malicious Behavior: Extensions must not modify or interact with user content or websites in a way that is deceptive, disruptive, or harmful.
Integrity of Websites: Extensions should not automate actions on websites in a way that bypasses intended user interaction or website policies.
In summary: Your extension's method of achieving its goal – by directly manipulating Gemini's web page elements to simulate user input and clicks – is almost certainly a violation of the Edge Add-ons store policies, which aim to protect the integrity of web browsing, the security of users, and the relationship between extensions and third-party websites.
What might be acceptable (but isn't what you're doing):
An extension that opens gemini.google.com and pastes the query into the URL hash (as you do), but then requires the user to manually click the submit button on the Gemini page. Even this might be borderline due to fragility, but it avoids the automated interaction.
An extension that uses an official Gemini API (if one existed for this purpose) to send the query.
Given your notes, the core automation of typing and clicking is the likely dealbreaker.
User
is it possible to do this without automated interafction in a bad way
i mean gemini.googke.com dont natively support any sort of ?q=searcjgreterm url style url nav
Assistant
You're in a tough spot because Gemini, like many modern web applications, is designed to be interacted with primarily through its user interface, not via simple URL parameters. This is common for AI interfaces because the interaction is often conversational and dynamic, not a single static query.
Given that Gemini doesn't have a ?q=searchterm URL structure, you're forced to interact with the page after it loads. The "bad way" was automating the click.
Here's how you might be able to do it without the "bad" automated interaction (i.e., making it more likely to be accepted by the store), along with the caveats:
The "Less Bad" Approach: Paste Only, User Clicks Submit
This approach aims to minimize the intrusive automation, moving from "fully automated interaction" to "user assistance."
How it would work:
Omnibox Input: User types gem What is the weather in Paris?
Navigation: Your extension still navigates the browser to https://gemini.google.com/#What%20is%20the%20weather%20in%20Paris%3F.
Content Script (Reduced Role):
The content script still loads on the Gemini page.
It reads the search query from the URL hash (#What%20is%20the%20weather%20in%20Paris%3F).
It then finds Gemini's chat input field and pastes the query into it.
CRITICAL CHANGE: It DOES NOT automatically click the "Submit" button.
Testing Notes for this approach:
"This extension maps the keyword gem in the browser's address bar (omnibox) to a query on https://gemini.google.com.
To test:
Install the extension.
In the address bar, type:gem What is the weather in Paris?Then press Enter.
The browser will open https://gemini.google.com/#What%20is%20the%20weather%20in%20Paris%3F.
The extension’s content script will:
Read the search query from the URL's fragment identifier.
Paste this query into Gemini’s chat input field.
The user will then see the query pre-filled in the input field.
User Action Required: To initiate the search, the user must manually click the "Send" (or equivalent) button on the Gemini page, or press Enter while the input field is focused.
User
POST
Assistant
You're thinking about how data is submitted to a server, and yes, Gemini likely uses POST requests internally when you send a message. However, this doesn't help you with your extension's primary challenge, and here's why:
Omnibox (Address Bar) Limitations:
The browser's address bar (omnibox) is designed for navigating to URLs. When you type something and hit Enter, it inherently performs a GET request to that URL.
You cannot initiate a POST request directly from the address bar. A POST request requires data to be sent in the request body, which isn't something the address bar interface supports. You can only specify the URL.
How Gemini Works (Internal POST Requests):
When you type a message into Gemini's chat input and press Enter or click the send button, the JavaScript running on the Gemini page makes an asynchronous POST request (using technologies like Fetch API or XMLHttpRequest) to a Google backend server.
This POST request contains your chat message in its body, along with other data like session tokens, context, etc.
This is an internal API call that Google uses for its own service.
Why Your Extension Cannot Directly Make That POST Request:
Cross-Origin Policy (CORS): Your extension, running from its own chrome-extension:// origin, would be attempting to make a POST request to https://gemini.google.com (or a sub-domain API endpoint). Unless Google explicitly configures their server to allow cross-origin requests from any extension ID (which they won't), these requests will be blocked by the browser's Same-Origin Policy for security reasons.
Authentication & Session Management: Gemini sessions are complex. Direct API calls would require you to manage cookies, authentication tokens, and potentially other session-specific headers. An extension trying to directly mimic a user's authenticated session in this way is incredibly difficult, fragile, and often a major security/privacy violation if not done through an official, public API.
Undocumented/Unstable API: Google's internal APIs for Gemini are not public or documented. Their endpoints, request bodies, and required parameters can change at any time without notice, instantly breaking your extension. You'd be reverse-engineering a private API, which is frowned upon and highly unreliable.
User
thers no way to do it ? properly? full fucntion without doing what i did?
Assistant
Okay, let's break this down very clearly.
No, there is currently no "proper" way to achieve full, seamless, automated functionality (type in omnibox -> Gemini answers automatically) without resorting to methods that are either:
Against store policies (like direct UI manipulation with auto-click).
Highly fragile and likely to break (due to relying on internal website structure).
Potentially against the target website's Terms of Service (like reverse-engineering and hitting private APIs).
Simply not technically possible via the browser's default mechanisms.
Here's why:
The Ideal "Proper" Way (Which Doesn't Exist for Gemini)
The "proper" way to achieve the full automation you desire would require one of the following:
Official Public API: Google would need to provide a public, documented API for Gemini that allows developers to send a query and receive a response, or to directly initiate a chat session programmatically.
Current Status: Google offers the Google AI Studio/Gemini API for developers to build their own applications that use Gemini's underlying AI model. This is not an API to interact with the gemini.google.comuser interface. You can build your own chatbot using the Gemini model, but you can't tell gemini.google.com (the consumer website) to answer a specific question and display it.
Native URL Deep Linking with Submission: The gemini.google.com website would need to natively support a URL structure like https://gemini.google.com/?query=What%20is%20the%20weather%20in%20Paris%3F&submit=true that, upon loading, automatically parses the query and submits it without further user interaction or content script manipulation.
Current Status: As you've noted, Gemini does not support this. Its design is based on interactive conversation within the loaded page, not single-shot URL-based queries.
Why Your Current Methods Are Problematic (and There Are No "Proper" Alternatives)
Method 1: Content Script for Auto-Paste & Auto-Click (Your Original Idea)
Problem: Directly manipulating a third-party website's UI (finding elements, typing, clicking) is seen by browser extension stores as fragile (breaks easily), potentially malicious (can be used for scams/spam), and a violation of website integrity. It's too close to what malware might do.
The extension uses a script to pre-fill the input because Gemini does not natively have a way to search or pre-fill content via URL parameters."
Why this is "Less Bad" and More Likely to be Accepted:
User Control: The user still has the final say and must manually initiate the action (clicking submit). This avoids the feeling of the page being "hijacked" or automated without explicit user consent for each action.
Less Fragile: While finding and pasting into the input field can still break if Gemini's HTML changes, it's less prone to failure and less disruptive than automating a click. A user can often re-click or re-enter if a paste fails, but an automated click failing can be more confusing.
Policy Compliance: Most browser extension stores are generally more lenient on "assistance" features (like pre-filling forms) than "automation" features (like submitting forms programmatically). It shifts the extension from being an "automation bot" to a "convenience helper."
Less Abusable: The potential for malicious use (e.g., auto-liking, spamming, accidental transactions) is significantly reduced when the final submission requires a user click.
Remaining Caveats / Risks:
Fragility: As noted, if Google changes the HTML element ID, class, or structure of Gemini's chat input, your extension will break. This is an inherent risk when directly manipulating another site's UI.
Google's Detection/Policies: Google could still detect that the text is being programmatically inserted and potentially block it or change their site to prevent it. Their terms of service might still frown upon any programmatic interaction without an official API.
User Experience: While better than rejection, it's still not as seamless as a true ?q= search. The user has to perform one more click. You might get user feedback about this.
This "paste only" method is your best shot for store acceptance, as it respects user control and reduces the security and fragility concerns associated with full automation.
Store Policy Violation (Major): Attempting to bypass a website's frontend and directly interact with its internal APIs without explicit permission (i.e., an official, public API) is a significant policy violation for browser extension stores. It's often considered a form of scraping or unauthorized access and would almost certainly lead to rejection and potential suspension.
Conclusion:
While Gemini uses POST requests internally, it's not a viable solution for your extension to directly send data from the omnibox keyword or to bypass the Gemini UI.
The "paste-only, user-clicks-submit" approach remains the most practical and policy-compliant method given Gemini's lack of a public API for this purpose. It avoids the severe policy violations associated with attempting to make unauthorized direct API calls or fully automate UI interactions without user confirmation.
"Proper" Alternative: None, if the goal is full automation without an API or deep link.
Method 2: Attempting to Direct POST to Gemini's Internal API
Problem: This would involve reverse-engineering Google's private, undocumented internal API calls that the Gemini website makes.
CORS: Browser security policies (Cross-Origin Resource Sharing) would almost certainly block your extension from making these requests from its chrome-extension:// origin to Google's domain.
Authentication/Session: You'd have to replicate complex authentication, session tokens, and other headers that are constantly changing and highly secure.
Fragility: The API endpoints, parameters, and responses could change at any moment, breaking your extension instantly.
Legality/Ethics: This is generally against the terms of service of most websites, akin to scraping, and could lead to your extension being banned and potentially your developer account suspended.
"Proper" Alternative: A public, documented API from Google designed for this specific purpose. (Doesn't exist for the gemini.google.com consumer interface).
The Best "Compromise" (The "Less Bad" Method)
The "paste-only, user-clicks-submit" method is the closest you can get to your goal while adhering to store policies and respecting the target website's design.
How it works: Your extension opens gemini.google.com with your query in the URL hash. A content script then reads that hash and pastes the query into the chat input field.
The Crucial Difference: The user must manually click the "Send" button or press Enter to submit the query.
Why it's accepted: It provides a convenience feature (pre-filling) without taking control of the user's interaction or making assumptions about their intent. It acts as an "assistant" rather than an "automator."
In conclusion:
You are hitting a fundamental barrier imposed by how modern web applications like Gemini are built (dynamic, interactive, API-driven, not URL-parameter-driven) and by the security and policy restrictions of browser extension stores.
There is no "proper" way to achieve full, fully automated, omnibox-to-Gemini-answer functionality given the current landscape. Your "paste-only" approach is the most you can reasonably do.