Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8350383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T08:18:06+00:00 2026-06-09T08:18:06+00:00

I am trying to get the multi-parameter search working in Firefox. This requires the

  • 0

I am trying to get the multi-parameter search working in Firefox.

This requires the use of Javascript code from here.

I have been trying to understand the code and to get it to work for the Maven Central Repository search. This is a sample search I am trying to perform via a keyword search. After replacing the ###INSERT YOUR KEYWORD SEARCH URL HERE### with my search URL : http://search.maven.org/#search|ga|1|g%3A%s%20a%3A%s I get the following bookmarklet code :

javascript:var%C2%A0s='%s';%20url='http://search.maven.org/#search|ga|1|g%3A%s%20a%3A%s';%20t='';%20qc=0;%20chunks=url.split('%s');%20for(i=0;%20i<s.length;%20i++){if(s.charAt(i)=='"')qc=qc^1;%20t+=((s.charAt(i)=='%20'&&qc)?'^':s.charAt(i));%20}args=t.split(/\s/);%20nurl='';%20for(i=0;%20i<chunks.length;%20i++){nurl+=chunks[i];%20if(args[i]!=undefined)%C2%A0{args[i]=args[i].replace(/\^/g,'%20');%20nurl+=args[i];%20}}location.replace(nurl,'<%20BR>');

But unfortunately, that does not seem to work. I have tried to debug the beautified, un-encoded code in Firebug but I cannot wrap my head around what it does :

var s = '%s';
url = 'http://search.maven.org/#search|ga|1|g:%s a:%s';
t = '';
qc = 0;
chunks = url.split('%s');
for (i = 0; i < s.length; i++) {
    if (s.charAt(i) == '"') qc = qc ^ 1;
    t += ((s.charAt(i) == ' ' && qc) ? '^' : s.charAt(i));
}
args = t.split(/\s/);
nurl = '';
for (i = 0; i < chunks.length; i++) {
    nurl += chunks[i];
    if (args[i] != undefined) {
        args[i] = args[i].replace(/\^/g, ' ');
        nurl += args[i];
    }
}
location.replace(nurl, '< BR>');

It seems that the apparent complexity of my search URL upsets the above bookmarklet. The bug 124237 referred to in the mozillaZine KB article also has a bookmarklet generator which generates the exact same code as above.

It would be great if I could get hints on what might be going wrong.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T08:18:08+00:00Added an answer on June 9, 2026 at 8:18 am

    I think the problem is that newer versions of Firefox don’t allow code to be executed from the location bar. Code executed from bookmarklets works, but the keyword substitution places the javascript url in the location bar (and nothing happens).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

im trying to get multi texturing working and have so far got miltiple textures
I'm trying to get objects from a multi-level JSON array. This is the an
I'm trying to get a simple multi-threaded OpenGL application working. I have an update
i'm trying to get multi tenancy working in my app - using nhibernate integration
I am trying to get a multi-page two-dimensional lattice panel plot to have the
I am currently trying to use the multi Get method proposed by Enyim C#
I have a form where fields get added via JavaScript. This is fairly easy
I am trying to parse a multi line string and get the rest of
I'm trying to make my C# application multi threaded because sometimes, I get an
I'm trying get the visible portion of UIImage from an UIImageView . UIImageView takes

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.