¿Por qué Firefox no recuerda mis búsquedas anteriores en Wolfram Alpha?

¿Por qué Firefox no recuerda mis búsquedas anteriores en Wolfram Alpha?

He ingresado muchas consultas en wolframalpha.com. Cuando vuelvo al sitio e intento escribir algo que escribí antes, no sucede nada. En otros sitios, como superuser.com, si escribo en el cuadro de búsqueda, Firefox recuerda mis consultas anteriores y me las sugiere. ¿Por qué esto no funciona en Alpha? ¿Puedo hacerlo funcionar con un script de Greasemonkey?

<form method="get" action="/input/" accept-charset="UTF-8" autocomplete="off">
    <div id="input-background">
        <input name="i" id="i" maxlength="200" autocapitalize="off" type="text">
        <a id="iClear" style="display: none;"></a>
        <label class="hidden" for="equal">Calculate</label>
        <input id="equal" title="compute" value="Submit" type="submit">
        <div id="howTo"></div>
    </div>
</form>

Respuesta1

El cuadro de búsqueda de Wolfram Alpha tiene autocomplete="off"una propiedad y, por lo tanto, los navegadores la respetan y el cuadro de entrada no se completa. No pude encontrar ningún script de Greasemonkey para cambiar este comportamiento.


Hayuna alternativa, sin embargo.Tenga en cuenta que esto habilita la función de autocompletar para todo..

1. Locate Firefox’s installation folder. Normally that’s C:\Program Files\Mozilla Firefox

2. Navigate to the components folder.

3. Open nsLoginManager.js in an editor.  As Notepad won’t do really, do this instead [if you've a proper editor, just go to step 4]:

3a) Select  Start | Run

3b) Enter cmd <enter or Ok>

3c) type cd C:\Program Files\Mozilla Firefox\components <enter>

3d) type edit nsLoginManager.js <enter>

3e) Go to step 4.

4. Find this:

    /*
     * _isAutoCompleteDisabled
     *
     * Returns true if the page requests autocomplete be disabled for the
     * specified form input.
     */
    _isAutocompleteDisabled :  function (element) {
        if (element && element.hasAttribute("autocomplete") &&
            element.getAttribute("autocomplete").toLowerCase() == "off")
            return true;

        return false;
    },
5. Change it to this:

    /*
     * _isAutoCompleteDisabled
     *
     * Returns true if the page requests autocomplete be disabled for the
     * specified form input.
     */
    _isAutocompleteDisabled :  function (element) {
        return false;
    },
6. Save the file [if you're following the 3x) steps above, select File | Exit, and when asked if you want to save the edited file, answer Yes.  To close the command prompt, enter exit <enter>].

Note that you might first have to change the file’s security permissions to do this [you DO if the save fails].  E.g., in Vista I had to A) right-click on the file [e.g., in Explorer] B) select Properties | Security. B) select Edit. C) select your username, D) change the persmissions to include Write access.

And you’re done – either start, or close/re-start Firefox!

Respuesta2

Y aquí se explica cómo habilitarlo para un sitio específico usando Greasemonkey:

// ==UserScript==
// @name           Alpha autocomplete on
// @namespace      
// @description    Enables browser form history for Wolfram Alpha
// @include        *wolframalpha.com*
// ==/UserScript==

document.forms[0].setAttribute("autocomplete", "on")

información relacionada