GithubHelp home page GithubHelp logo

ayastreb / bandwidth-hero Goto Github PK

View Code? Open in Web Editor NEW
267.0 11.0 50.0 1.63 MB

:guardsman: Saves data by compressing images on web page

Home Page: https://bandwidth-hero.com/

License: MIT License

JavaScript 97.94% HTML 0.95% CSS 1.11%
chrome-extension react semantic-ui webpack web-extension firefox-addon data-saving data-compression

bandwidth-hero's People

Contributors

ayastreb avatar brianvanburken avatar changhaitravis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bandwidth-hero's Issues

Any option other than Heroku?

I am getting messages from Heroku that they'd be ending free dynos on 11/28/2022, so in order to continue using bandwidth-hero, is there any other option than Heroku or hosting own server?

Extension occasionally stops working

Windows 10 1803
Firefox 66 64bit

Every several days the extension stops working completely (no images are sent to compression proxy), and doesn't work again until it gets removed and then reinstalled.. it is not working right now.. thanks

Google Chrome is blacklisting bandwidth-hero servers ?

Something strange is happening: my heroku server stopped working and putting it in the settings was not accepted anymore.
At the same time it worked perfectly on Opera on the same PC/network.
I put a new server and worked for some time then the same thing happened.
Anyone has an idea of what is going on ?

Not compressing PNG images on Firefox

Not compressing PNG images on latest version of Firefox, Works OK on latest version of chrome.

Open any webpage with PNG images on it in Firefox 58 with bandwidth hero 2.0.2 and you will see they are in colour and uncompressed while jpeg images are in greyscale.

Captcha Loading

In order to get the correct Captcha we have to manually disable the extension on certain sites. So it would be better if we could have something like "whitelist" or "add to white list" .

http proxy - images not loading - cyclic redirect

reproduce:
in firefox
set "proxy url" to http://server/ = remove the s from https

results:
images are not loading any more
the page keeps loading and loading, but images never show

when i click "view image", i see a long-long-long url
with the original url encoded over and over again, about 10 times
but isolated from the html context, the image shows up after a while

the problem also occurs in a new/empty firefox profile
only with the bandwidth-hero addon installed

side effect:
the "images processed" counter keeps growing and growing

No longer loading images on Firefox 85.0

I'd been using the extension until last week when suddenly the images stopped loading. I tried restarting my app, deleting and reinstalling the add-on, deleting my cache, etc. But, nothing's happening.

The add-on says that some images here and there are being processed (but definitely not all), and I can see it making connections and transferring from my Bandwidth Hero at the bottom of the screen, but no images are are loading. And trying to create a new node using the template is only giving me an error. Everything was fine until last week.

Has anyone else had problems?

data compression proxy

Is that possible compressing all data stream not only images? Just like chrome data compression proxy.

whitelist bug

since a year I have problems with the whitelist.. and never got a answer in the other github therad now I'll try it here..
I know there is no development ongoing so well does someone has a fixed version of it?

The Whitelist, Whitelists all websites when I just press Space on time in the input.. after I used the Input I cannot clear the list.. it sets a invisible space in it.. well and if I try to set * behind a website so it can go trough all links with.. lets say Pinterest..
Pinterest.com/"skjdhfksjdf" I don't want to whitelist every picture I want to see?

Is there a Solution to this broken whitelist?

If you have problem with reading my sentences please say it, i try to rewrite them

FF mobile: enable/disable via menu

extension works really great, but in some case one wants to see a page in all it's colours...
for this: in ff mobile it would be pretty handy to have a menu entry:

if bandwidth hero is on:
"disable usage of bandwidth hero and reload page with standard behaviour (colour images)"
-> short "bh: disable & reload"

and if bandwidth hero is off:
"enable bandwidth hero starting with next page load"
-> short "bh: enable for next page"

All image turned to black-white

Is it possible to add some settings so we can choose the compression degree?
eg:
ultra -- highest compression degree, turn images to black-white mode like it does now
medium -- slightly compress images, remain the original color but with lower quality

Need help building from the source in Windows

I am trying to build the extension from the source but I keeping running into errors. I am following ur instructions for Ubuntu, thats the reason I guess, Can I get instructions for Windows? I am using Windows 10.
Also, I have been using ur addon Firefox addon, with a Heroku hosting. Really great addon.

adblock function

Is that possible blocking the pictures from ads url?
I'm using ublock origin, but all the pictures from BWH can't be blocked.

webpages and images are broken

I successfully installed the service on Heroku and used it for a couple hours then it stopped. Initially it partially stopped compressing images on webpages i was viewing. i noticed the counters on the extension dashboard stopped increasing.
Then it got worse, Now images aren't rendered when i view a webpage. Just a dummy broken image icon all over
I tried to do whatever i can, looked at the logs in heroku to see if i can find any clue, disconnected the app and reconnected it back again, turned off the extension and all but it didn't work.
Please someone kindly help me out

Exception or alternative for GIFs

It would be nice if every moving image was excluded or converted into WebM, for example.

To go even further, the user can choose how to deal with any type of image extension like .png .jpeg .gif etc. if he wants to.

Best regards
Snowy

very useful and effective, some suggestions

Bandwidth Hero is very useful and effective, it said to have saved 171 MB for me in half a day. I am loving it.

some suggestions

  • give some link to this support page somewhere in addon's description. I had to search mozilla sita again for this add on, and clicked on supportpage there to reach here.
  • make that "keep images black and white" option on per site basis. May be we don't want to globally make our net black and white, and would like only some sites to show images in black and white.
  • even make that "low/ medium/ high compression" option on per site basis.
  • give some option to rest the saved bandwidth. Currently it seems to accumulate all bandwidth ever saved. That looses the purpose of analysis.
  • may be you can even consider keeping record of daily/ montly/ yearly saved bandwidth, that will be very useful for us users.

It was complicated to install as that free data compression site has been closed down. I fear that non-technical persons would be utterly unable to go through all those steps and thus wouldn't be able to use this useful extention. Methods need be devised that the addon starts working right on installing in firefox.

Thanks.

Rawat

URL uncompressed

Possibility to copy the link of the image uncompressed with a right-click?

Reset statistic

I haven't found a way to reset statistic. Is it possible?
I think it would be nice feature for end user, they can easily compare different compression settings.

bandwidth-hero doesn't catch urls when using my own instance

First off, thanks for the extension I was looking for something like Chrome data saver but didn't want all my data to go to Google, and thanks to being an actual extension I can see how much data is actually saved while browsing.

I have tried to self-host the backend (I'm using https://github.com/PrairieOps/bandwidth-hero-core/ because https://github.com/ayastreb/bandwidth-hero-proxy doesn't build for some reason). So:

  • When I put the backend on localhost, it works
  • When I put the backend on my domain, it doesn't work (http)
  • When I put the backend on my domain, behind a reverse proxy (https), it doesn't work
  • When I use the backend graciously provided in #19, it works

By "it doesn't work" I mean that the extension doesn't even send the url to the backend: I don't see any trace of requesting it in the Network tab (when the backend url is set I don't have the message telling me that the url is invalid, so I assume the extension got it right).
I don't know if the url is captured or something else... I just don't see how setting the backend url can have an impact on whether the backend will be called or not

My solution for now: have a reverse proxy locally that will call the reverse proxy on my domain that will call the backend... I'd love to simplify my installation :)

My domain is https://bh.rako.space. I don't know if it fails for everyone or just me.

AVIF format

Possible to add the format for image compression?

[Ask] How to develop this?

I just wonder how do I know visually when I changed something on UI? serve the dist seems doesn't show anything. Thanks.

Can anyone use my app?

Interesting.
I had installed bandwidthhero on firefox, created app and it worked.

Then I started chrome and installed the same taking from chrome store. I put the same app bh-app url in chrome, that I had created for firefox. It worked.

I was not signed or anything on chrome. For that matter, I don't remember whether it had asked me even in firefox, whether that app was mine, I don't think it required any signup or anything.

how does the extention know that the app is mine?

Does it mean that anyone can use my app-url?

I don't have any problem as such, just thinking that if many persons are using my single app simultaneiously on different boxes at different places/ even different countries, wouldn't it slow down my app as the servers must have a time slice per app.

Please elaborate, and if required, add a signing in menchanism in b-h with respect to the app.

Thanks.

image not compressed

On some sites images not compressing. Like on rsload.net + some png/gif not stopped too.

Images are saved as .htm files

Thanks for this great addon.

I have only found 1 minor issue so far:

All images get saved as myherokuservername.htm and not imagename.jpg or whatever.

I can simply rename them afterwards, but I'm curious if I'm alone with this issue, or is it a known side-efffect?

I have only tested this behaviour in Firefox Android (latest stable) as I don't have access to a computer at the moment.

Thanks

[Question] How to Self Host ?

Hello, a newbie here

as Heroku service is no longer attainable for me, would someone kindly teach me how to self-host, please ?
i also read the manual but I am afraid I do not understand

thank you

Add-ons compatibility

On the Android version of Firefox, i can not change anything (proxy etc) other than the default configuration of "Bandwidth Hero", because i can not access the add-ons settings page. Other extensions like uBlock Origin works well and their add-ons settings are opened on a new page
screenshot_2017-11-04-06-09-20

Integrate with OpenVPN to use with smartphones?

Great extension. I use it on my desktop. I'm trying to see if I can use this for my smartphone. I want to compress images. I was hoping I could integrate bandwidth-hero with OpenVPN. So, if I use OpenVPN server, image compression proxy is part of the OpenVPN connection.

ignore Captchas

Detect captcha (no extension) in the URL (in the case of self-hosted captcha services such as qt's https://login.qt.io/captcha) or popular captcha services in a string and then ignore them.

Although google's popular recaptcha service seems to work pretty consistently fine and doesn't need to be handled?

Older firefox versions

On PowerPC mac we're using ten four fox which is based on firefox 45, This add-on would be extremly useful on that platform but the add on only works on FF => 48. Is it possible to build a version of bandwidth hero that will work on older firefox versions?

Privacy Badger blocks bandwidth-hero.com and compressor.bandwidth-hero.com

The Privacy Badger extension (Chrome version here) uses heuristics to dynamically block hosts that don't seem to respect users' DoNotTrack signals. This is not really an issue because it's fairly easy to whitelist those hosts manually, but server instances at Webtask.io didn't get blocked this way - last time I checked.

This could be a false positive, or the default proxy instance could be tracking users against their will by design. If the former is true, maybe it can be prevented somehow. However, If the latter is what is going on, I suggest making a clear and honest privacy statement regarding tracking. Many users will still be willing to use the extension (with default settings or with a personal server instance).

Doesn't work in mobile.twitter.com on firefox for Android likely due to CSP img-src restriction

I've been using the firefox plugin for at least a month now on my Android phone, and it works spectacularly for the most part. However, the only website I've encountered where it seems to pretty consistently not work is mobile.twitter.com . I just ran the WebIDE debugger to see what was going on and it looks like CSP may be the culprit.

Here's the CSP entry on mobile.twitter.com for the "img-src" excerpt.

img-src 'self' blob: data: https://*.cdn.twitter.com https://ton.twitter.com https://*.twimg.com https://www.google-analytics.com https://www.periscope.tv https://www.pscp.tv https://media.riffsy.com https://*.giphy.com https://*.pscp.tv;

if the Content-Security-Policy: header exists and a img-src
entry exists in the site's response header, then add the current proxy address's host in as a <host-source> entry. According to the below.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/img-src

It'll involve intercepting and modifying the response headers... will this prevent distribution on firefox add-ons marketplace when reviewed?

I may try coding this up and file a pull request sometime after testing locally.

Support for external applications

Can support for external applications be included. Though this project is for the extension, I was thinking a companion application that could act as an HTTP proxy, for use with web applications and browsers other that firefox and chromium-based ones.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.