or
samcarter
feature-request planned
Would it be possible to add some attritbute to the "Enter PIN" field to enbale browsers/password managers to save the key?

![Screen Shot 2019-12-18 at 14.37.28.png](/image?hash=6ec12046f925c28ef2e8faafee793e2fc0b38d02e6f7307c5dd98e781e79e999)
Top Answer
samcarter
As a workaround one could use a simple user script

```
// ==UserScript==
// @name         toptex
// @match        https://topanswers.xyz/*
// @run-at       document-start
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    
    document.cookie = "uuid=abcdef";
        
})();
```

in which `abcdef` is the login key taken from an existing cookie.


This will create the login cookie every time you visit topanswers.xyz, so if you are not logged in, reload the page and you will be logged in. 

To get the key from an existing cookie, one can for example use https://github.com/Rob--W/cookie-manager
Make field for login key saveable for browser/password manager
samcarter replying to GeorgePalacios
This depends on your browser. For example with firefox I use the greasemonkey addon to add user scripts. Other browsers have some sort of native support for it, but don't ask me how this works
GeorgePalacios
I am completely unaware of such things
GeorgePalacios
How would one use this user script?
samcarter replying to Jack Douglas
Done! Thanks again for the idea of a userscript (and indirectly prompting me to learn some things about cookies :) )
Jack Douglas replying to samcarter
that's great to hear Sam, thanks for sharing. If you wouldn't mind going to the trouble please can you post that as an answer to your own question here!
samcarter
seems to work great
samcarter
    // ==UserScript==
    // @name         toptex
    // @match        https://topanswers.xyz/*
    // @run-at       document-start
    // @grant        none
    // ==/UserScript==

    (function() {
        'use strict';
        
        document.cookie = "uuid=<insert key from cookie here>";
            
    })();
samcarter replying to Jack Douglas
A simple usescript with   
Jack Douglas replying to samcarter
please let us know if it works out for you — and we'll report back with any concrete plans fro change our end.
samcarter replying to Jack Douglas
The userscript workaround sounds interesting! Thanks for the suggestion!
Jack Douglas
btw the cookie isn't the same as the login key though they are both uuids
Jack Douglas replying to samcarter
I can see how that might get annoying. I think we'd have to pop up a custom dialog, probably with different areas for PIN and login key. We'd like to do this eventually for sure, but in the short term have you considered using a userscript to re-inject the cookie? Probably not helpful if you are very security conscious as I don't think you'd be able to prevent someone seeing the script if they have access to your computer…
samcarter replying to Skillmon
"The dialogue would have to identify itself as a password form." I guess this is what I'm asking for in this question (and yes, I'm using the login key)
samcarter replying to Jack Douglas
A bit of both. My cookies are deleted daily and because the field does not have the attributes of a password, it won't directly interact with my password manager, which means I have to open another program, copy the login key to my clipboard, go back to my browser, paste it - which becomes a bit cumbersome if done daily...
Jack Douglas
@samcarter are you finding you need to enter the key each time you visit the site or is it that you just want a shortcut to saving it in a password manager?
Skillmon
Since the PIN is only valid for a minute, this won't make much sense. You can however store the login key in a password manager (though this still doesn't mean it is supported from that dialogue). The dialogue would have to identify itself as a password form.