supergenpass icon indicating copy to clipboard operation
supergenpass copied to clipboard

More and more sites are blocking SGP, what's the long term plan

Open scottchiefbaker opened this issue 10 years ago • 8 comments

More and more sites are block SGP (requiring the mobile version), are there any plans to work around this? Create a browser add-on? Something that runs entirely in userspace?

scottchiefbaker avatar Oct 22 '15 15:10 scottchiefbaker

There are browser add-ons already, at least for Chrome and Safari. They are preferable to the bookmarklet for security reasons.

weitzman avatar Nov 12 '15 14:11 weitzman

In chrome, what I do is to add a custom search engine pointing to

javascript:window.open('https://chriszarate.github.io/supergenpass/mobile/', '_blank');

So to open SGP Mobile, I hit CTRL+L then type sgpm and hit enter, and SGP mobile opens in a new tab, with the domain of the original tab already in place.

carlthewebmaster avatar Nov 13 '15 15:11 carlthewebmaster

Seems like browser extension is the best approach. Unfortunately, I don't have time for an official version, but there are plenty out there. Open to pull requests to create one, bonus points if it uses the existing code. Also supergenpass.com is served from the gh-pages and I'll take PRs there, too.

chriszarate avatar Nov 19 '15 04:11 chriszarate

@carlthewebmaster how does sgpm map to opening a new tab with that URL? How does the mobile version have the domain pre-populated?

scottchiefbaker avatar Nov 19 '15 17:11 scottchiefbaker

The new tab opens via window.open, and I believe the domain field is populated based on the referrer (the domain of the page where that javascript is called. See:

https://github.com/chriszarate/supergenpass/blob/master/src/mobile/sgp.mobile.js#L97-L105

carlthewebmaster avatar Nov 19 '15 17:11 carlthewebmaster

Why not a Custom Buttons version of the bookmarklet? Not a button loading the bookmarklet (that'll not solve the issue), but a "pure" Custom Buttons code (javascript), ran in the Custom Buttons' sandbox. The code should be very similar to the bookmarklet I guess, so it would be easy to maintain it.

Custom Buttons : https://addons.mozilla.org/en/firefox/addon/custom-buttons/

homlett avatar Jun 22 '16 04:06 homlett

one common recommendation is to download the source code from github and run it in its own browser window on the local device (not that hard to copy and paste), with bonus that you can modify the source code settings to work how you like, and then maybe with some extra security like marking files read only as well or something.

(although of course there is the issue with mobile devices like android where anytime something is copied to the clipboard, there is basically a shoutout (intent) saying,"hey look at me, i've been copied to the clipboard" and gives malicious apps a chance to harvest passwords or whatever else)

and i don't really know enough about the separation of browser add-ons, but would imagine that should also be more secure than using a bookmarklet? unless it is just the same thing in a different wrapper.

jmichael2497 avatar Feb 18 '19 23:02 jmichael2497

Wouldn't drop of jQuery dependency solve the issue?

glukki avatar Jan 27 '21 09:01 glukki