What is the legality of distributing free software that displays another website page after automated reformatting and editing
<p>I recently noticed that local news sites are terrible in that they transfer ludicrous amounts of data, never stop transferring data, and load an obnoxious number of ads and pop ups.  As a result they are often very slow to load and reading the articles can be a challenge and is hardly pleasant.  Disabling JavaScript helps but isn't a panacea.</p>
<p>I therefore decided to write some simple code (less that 75 lines of JavaScript and HTML) which accepts a URL (eg for a local news article), loads the content, and then: removes ads; &quot;read more&quot; sections; &quot;related articles&quot; sections; pop ups; &quot;most read&quot; sections; the comments section; and lays out the article nicely.  The code is a single HTML file that runs locally.</p>
<p>My assumptions are that: if I hosted the page on a publicly accessible web server I could/would be sued for using the local news sites' content without permission; that making no money from the service would be irrelevant; that this is because of Copyright. I should be clear that the retrieving of the news articles is done by the client rather than the server.</p>
<p>My questions then are:</p>
<ol>
<li>Can I freely distribute the code publicly on, say, GitHub so that other people can download it and use/run it themselves without any party facing any sort of legal action?</li>
<li>Alternatively, if I were to host the site on a publicly accessible web server, and let users enter URLs themselves - rather than hard coding in URLs to specific sites, could/would I face legal action?</li>
</ol>

<p>Hosting copyrighted material on your servers is probably a bad idea, but software that changes how such material is displayed is likely fine – and there already are tools doing similar things.</p>
<p>For example, the news publisher <em>Axel Springer</em> sued adblocker maker <em>Eyeo</em> for copyright infringement in Germany in 2021, since the adblocker manipulates the contents of a web page. This was rejected by the court. (See <a href="https://www.theregister.com/2022/01/19/ad_blockers_copyright_germany/" rel="nofollow noreferrer">summary by The Register</a> which also provides US context, <a href="https://eyeo.com/press-release/eyeo-wins-landmark-copyright-court-decision-protects-digital-rights-and-sets" rel="nofollow noreferrer">summary by Eyeo</a>, <a href="https://openjur.de/u/2384202.html" rel="nofollow noreferrer">actual ruling (in German)</a>). Core argument in that case was that adblockers do not distribute protected works, and do not create derivate works of the website. They merely change how the website is interpreted by a browser. However, the details here are dependent on German copyright law and on the specific capabilities used by adblockers – it might not generalize to other scenarios.</p>
<p>Some browsers (e.g. Safari, Firefox) offer a reading mode that strips out all website contents except the main content, and then displays it in a more legible fashion. This strips out all navigation, sidebars, ads, and so on. So far, I don't think this kind of functionality has been challenged. This existing reading mode sounds quite similar to the reformatting tool you're envisaging. There are similar tools available in many programming languages, such as the Arc90 readability project (<a href="https://github.com/masukomi/arc90-readability" rel="nofollow noreferrer">software</a>, <a href="https://web.archive.org/web/20140712005155/http://lab.arc90.com/2009/03/02/readability/" rel="nofollow noreferrer">archived website</a>), which is in turn inspired by the <a href="https://www.instapaper.com/" rel="nofollow noreferrer">Instapaper</a> app. Read-it-later apps like Instapaper and Pocket do involve a bit of a grey zone though, since they involve server-side storage of articles.</p>

<p>You also asked:</p>
<blockquote>
<p>Can I freely distribute the code publicly on, say, GitHub so that
other people can download it and use/run it themselves without any
party facing any sort of legal action?</p>
</blockquote>
<p>Yes you can.  It's not illegal or against the news site's TOU to post or distribute code that you have the rights to that MIGHT be used by someone to do something that is against someone else's TOU.</p>
<p>Actually using it in a way that violates someone's TOU is another matter entirely.</p>

copyright internet software