BugMeNot

Integrates BugMeNot into any login form (it retrieves all matching logins from bugmenot.com and autofills the login form)

< Σχολιασμός για τον κώδικα BugMeNot

Ερώτηση/σχόλιο

§
Δημοσιεύτηκε: 17/12/2016
Επεξεργάστηκε: 17/12/2016

GM_xmlHttpRequest to fetch, parse and get user+pass from Bugmenot/domain instead ?

For better compatibility, I think this would be the better method instead of open a new tab and get user+pass.

You can use DOMParser to parse responseText, get all available user+pass, and save them to GM_ storage using GM_setValue.
The current implement is really tricky, rely on a new tab is not a good method.

darkredΔημιουργός
§
Δημοσιεύτηκε: 19/12/2016
Επεξεργάστηκε: 19/12/2016

You got confused: the getLogin()function (called from inside the getLoginLink_onclick() function) retrieves all available user+pass via GM_xmlhttpRequest (and DOMParser -from inside textToXml- and GM_setValue) - it doesn't open a new tab in order to retrieve them.

GM_openInTabis only used (from inside the openMenuLink_onclick() function) when you press the 'More options' or the 'Visit BugMeNot' entries, in order to open the relevant URLs (http://bugmenot.com/view/login_page_of_given_target, and http://bugmenot.com) in new tabs.

§
Δημοσιεύτηκε: 19/12/2016

I got it, thanks.

Δημοσίευση απάντησης

Συνδεθείτε για να δημοσιεύσετε μια απάντηση.