ayastreb / bandwidth-hero Goto Github PK
View Code? Open in Web Editor NEW:guardsman: Saves data by compressing images on web page
Home Page: https://bandwidth-hero.com/
License: MIT License
:guardsman: Saves data by compressing images on web page
Home Page: https://bandwidth-hero.com/
License: MIT License
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?
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
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
I just wonder how do I know visually when I changed something on UI? serve the dist seems doesn't show anything. Thanks.
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.
Possible to add the format for image compression?
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?
Nitter is an alternative frontend to twitter, I'm guessing the way it retrieves images makes bandwidth hero miss them, so they end up not being compressed.
Is that possible compressing all data stream not only images? Just like chrome data compression proxy.
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" .
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).
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.
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"
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
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
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
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.
Hey, thanks for this extension. It works fine on Firefox Desktop but on Firefox Android Beta 57+, it doesn't seem to work. The popup is able to open but nothing gets compressed.
Are you using anything that's not available yet in Firefox Android?
https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Browser_support_for_JavaScript_APIs
I noticed that you used chrome.storage.sync
which is not available for Firefox Android yet.
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
STR:
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.
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
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.
Rawat
Is that possiable using wildcard matching for disabled sites?
For example, *.google.com for gmail.google.com and map.google.com.
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?
I try to setup on my ubuntu 16.08 the method which is described here https://github.com/ayastreb/bandwidth-hero but nothing work on the last step. It's tell me that i cant pack empty file. How to fix that?
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.
On some sites images not compressing. Like on rsload.net + some png/gif not stopped too.
Possibility to copy the link of the image uncompressed with a right-click?
From versión Firefox 79.0.5 (Build #2015758619)
https://support.mozilla.org/es/kb/compatibilidad-de-complementos-para-firefox-previe
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.
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 ?
Is that possiable having different icon for website that bandwith hero is disabled?
For example icon with gray color while handwith hero disabled.
Is that possible blocking the pictures from ads url?
I'm using ublock origin, but all the pictures from BWH can't be blocked.
Are we allowed to even dream of one ever being developed? 🙏
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
Hi folks!
As https://compressor.bandwidth-hero.com has been shut down, is there a free alternative to it?
While Heroku is a nice thing to test it, it still requires a (free) account to do so, which might scare some new users.
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?
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.
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
Hello guys, this url is broken? Images are not seen while I am surfing. If there is working url, can you please share?
Hi,
Image on this webpage : https://humbkr.com/
is not put in cache by Firefox (74.0)
In dev tools, a new request is made to proxy every time I reload the page :
Seems OK on Chrome :
Thanks in advance for your support.
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:
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.
on the same host, some image compressed and some not. All images are jpg
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.