Jujuyeh / webapp-creator

Ubuntu Touch Webapp Creator
9 stars 4 forks source link

Ability to add custom CSS or JS #27

Open fadeouter opened 7 years ago

fadeouter commented 7 years ago

Some websites, like Tumblr, hasn't mobile layout for small screens. Ability to add custom CSS code could fix this. Also, CSS injection useful for ad blocking purposes.

Jujuyeh commented 7 years ago

We will discuss this. 😄

I think uAdBlock already blocks adds from the browser and webapps.

fadeouter commented 7 years ago

Adblocking isn't main purpose of this feature. uAdBlock cannot remove DOM elements. CSS injecting can. Main purpose of this is to add ability to use more websites as a real apps. As I mentioned early, not all websites have mobile layout.

mateosalta commented 7 years ago

Yes this is possible, I've done a userstyle.js on the youtube web app - we could add the relevant code to the ogra container and do a file selection for the js. Should work well enough if you already have something in mind to insert.