Edit external CSS/SCSS with javascript <p>I need to 'edit' a file that's already saved on my server, <strong>example:</strong></p> <p><code>&lt;link rel="stylesheet" href="css/plugin.scss"&gt;</code></p> <p>But not only that, I want to edit a certain specific line, in <a href="http://sass-lang.com/" rel="nofollow">SASS</a> you can define variables in css, basically, I'd like to search inside this file with JAVASCRIPT for the string:</p> <p><code>'$increment:</code></p> <p>And if it's found, find out what line it is on and replace that whole line with:</p> <p><code>'$increment:10;</code></p> <p>Basically I want to generate a downloadable file for the user that's custom depending on what settings they choose via a html input field.</p> <p>If there's a simpler/better explanation I'm all ears :)</p>