Group: Free Javascript Action Team/LibreJS Tips
From LibrePlanet
For certain software, like Discourse, there are ways to speed up your manual LibreJS Web Labels work after updating your site with new JS.
Discourse
You'll need to Add a Web Labels link after each time you upgrade:
./launcher enter app patch -p1 << EOF diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 9cb5efcce9..5003d5e57c 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -96,6 +96,8 @@ <section id='main'> </section> + <div style="display: none"><a href="https://weblabels.fsf.org/forum.members.fsf.org/CURRENT/" rel="jslicense">JS Licenses</a></div> + <div id='offscreen-content'> </div> EOF exit ./launcher restart app ## not 'rebuild'!
Then update your JS file names and source code bundles.