News for hackers. Stuff that matters.
Re:Show HN: Gmelius, Towards a Better Gmail by lpolovets on Monday February 20, 2012 @11:23AM (#3612820)
This seems nice, but the permissions are scary. Giving access to "your data on *.google.com and mail.google.com" to get a slightly better UI is a hard proposition to accept. I wish Chrome had more fine-grained permissions, like "you give this extension permission to modify the stylesheet on xyz.com, but not to access your data"."
Re:Show HN: Gmelius, Towards a Better Gmail by xpressyoo on Monday February 20, 2012 @11:28AM (#3612834)
Yes, you're right. A better granularity on the permission settings would be a nice feature to add in the webstore. Just to comment on this point, "Your tabs and browsing activity" comes from the fact that the extension modifies the style and UI of Gmail within your browser and so needs to know whether Gmail is open in your browser (i.e. tabs) to apply those changes, nothing more. To make things clear, Gmelius will never access, read, store, or transmit your personal data.
Re:Show HN: Gmelius, Towards a Better Gmail by simonbrown on Monday February 20, 2012 @02:14PM (#3613455)
To inject a content script, you just need permission to access that site.
Re:Show HN: Gmelius, Towards a Better Gmail by devicenull on Tuesday February 21, 2012 @12:13AM (#3615304)
And if you're injecting a script, you can read all the data off that page.
Re:Show HN: Gmelius, Towards a Better Gmail by simonbrown on Tuesday February 21, 2012 @09:16AM (#3616474)
But you don't need "tabs" aka "Your tabs and browsing activity".
Re:Show HN: Gmelius, Towards a Better Gmail by bnr on Monday February 20, 2012 @11:39AM (#3612878)
I doubt that would make things a lot safer. With permission to modify only the stylesheet, one could already change the login form to phish your password.
Re:Show HN: Gmelius, Towards a Better Gmail by simonbrown on Monday February 20, 2012 @02:15PM (#3613464)
How? I agree that something like that would be risky (you could style the delete button to say "reply"), but I'm not sure how you could do that. Stylesheets can't change a form's action.
Re:Show HN: Gmelius, Towards a Better Gmail by bnr on Monday February 20, 2012 @02:53PM (#3613613)
I was thinking it would be possible by crafting pseudo elements to a replacement login form, but after reading some more that actually does not seem possible. Maybe one could make the email composition form look like the login form under some conditions.

On the other hand, reddit allows people to upload stylesheets for their subreddits, they only re-host the images in them and that seems to have worked out well.