4 ms·
By popular demand, Unsticker Me is open-source at https://github.com/folz/unsticker.me https://github.com/folz/unsticker.me with a link there on the homepage!
by folz 12y ago
By popular demand, Unsticker Me is open-source at https://github.com/folz/unsticker.me https://github.com/folz/unsticker.me with a link there on the homepage!
- themartorana 12y agoThere have to be 50 lines of supporting metadata for package managers and whatnot per line of actual code. It's not bad, per-se, in fact it's wonderfully complete. None of my projects have the support structure this one does. It's half inspiring, half shaming, and half exhausting. Edit: Oh, thanks for open-sourcing!
- folz 12y agoEh - it was my first time making either a Firefox or Chrome addon, so I just used the existing scaffolding for both. `cfx init` and `yo chrome-extension` might have been overkill but it helped me crank out two extensions in no time flat.
- userbinator 12y agoThe real work is done here, in all of 8 lines of CSS: https://github.com/folz/unsticker.me/blob/master/firefox/data/contentstyles.css https://github.com/folz/unsticker.me/blob/master/firefox/dat... This makes me think all the bloat could be avoided by making this a userstyle (usable via e.g. https://addons.mozilla.org/en-US/firefox/addon/stylish/ https://addons.mozilla.org/en-US/firefox/addon/stylish/ ) instead of an entire addon.
- folz 12y agoTrue, but that cuts the potential user base from {people using either Chrome or Firefox} to {those people, but they also have to have a niche addon already installed}. Also I wasn't sure if I'd need fancy javascript logic or not to get unsticker.me working. I'm just happy it only took those 8 lines of CSS.
- Eiriksmal 12y agoI've tried to get the Chrome extensions Facebook history-deleting tools to work and noticed that Facebook is prone to using generated gibberish instead of actual CSS class names. I wasn't sure if that was simply a part of/side effect of their minifaction process, or if it's intentional. In any case, they seem to periodically change the gibberish class names that the Javascript targets, breaking all the tools that try to simulate user actions on the FB website. Will this extension fall prey to the same fate?
- folz 12y agoMaybe (although I think the class names I used are going to be constant), but it should be easy to update the CSS if that happens.
- baddox 12y agoEven after skimming the code, I can't quite fathom why this need a 370 line Grunt file.
- folz 12y agoOh yeah, it's really bad code. The idea was only going to be topical for a few hours after Facebook launched sticker comments, so I went for working MVP over code purity. The grunt file in particular was automatically created by the yeoman chrome-extension generator.
- JonnieCache 12y agoI'm looking forward to when the pendulum swings towards more minimal tooling in js land. I thought gruntfiles were bad enough, then I looked at yeoman. Lessons have not been learned. You don't need a watcher to rebuild all your files every time they change guys! You can have a server return whatever files you want on the fly with each request! Also, maintaining a list of file paths manually is waaay easier than tending to a series of wacky path globbing patterns deeply nested into some opaque "declarative" json object.
- themartorana 12y agoYour down-voting is weird.