User edited file: "dotjs.js":

```diff
@@ -3,7 +3,7 @@
 var style = document.createElement('link');
 style.rel = 'stylesheet';
 style.href = chrome.extension.getURL('styles/' + hostname + '.css');
-document.documentElement.insertBefore(style);
+document.documentElement.appendChild(style);
 
 var defaultStyle = document.createElement('link');
 defaultStyle.rel = 'stylesheet';
@@ -16,4 +16,4 @@
 
 var defaultScript = document.createElement('script');
 defaultScript.src = chrome.extension.getURL('scripts/default.js');
-document.documentElement.insertBefore(defaultScript);
+document.documentElement.insertBefore(defaultScript);
```

User edited file: "dotjs.js":

```diff
@@ -8,7 +8,7 @@
 var defaultStyle = document.createElement('link');
 defaultStyle.rel = 'stylesheet';
 defaultStyle.href = chrome.extension.getURL('styles/default.css');
-document.documentElement.insertBefore(defaultStyle);
+document.documentElement.appendChild(defaultStyle);
 
 var script = document.createElement('script');
 script.src = chrome.extension.getURL('scripts/' + hostname + '.js');

```

User edited file: "dotjs.js":

```diff
@@ -12,7 +12,7 @@
 
 var script = document.createElement('script');
 script.src = chrome.extension.getURL('scripts/' + hostname + '.js');
-document.documentElement.insertBefore(script);
+document.documentElement.appendChild(script);
 
 var defaultScript = document.createElement('script');
 defaultScript.src = chrome.extension.getURL('scripts/default.js');

```
```dotjs.js
var hostname = location.hostname.replace(/^www\./, '');

var style = document.createElement('link');
style.rel = 'stylesheet';
style.href = chrome.extension.getURL('styles/' + hostname + '.css');
document.documentElement.appendChild(style);

var defaultStyle = document.createElement('link');
defaultStyle.rel = 'stylesheet';
defaultStyle.href = chrome.extension.getURL('styles/default.css');
document.documentElement.appendChild(defaultStyle);

var script = document.createElement('script');
script.src = chrome.extension.getURL('scripts/' + hostname + '.js');
document.documentElement.appendChild(script);

var defaultScript = document.createElement('script');
defaultScript.src = chrome.extension.getURL('scripts/default.js');
<|user_cursor_is_here|>
document.documentElement.insertBefore(defaultScript);
```
```dotjs.js
var hostname = location.hostname.replace(/^www\./, '');

var style = document.createElement('link');
style.rel = 'stylesheet';
style.href = chrome.extension.getURL('styles/' + hostname + '.css');
document.documentElement.appendChild(style);

var defaultStyle = document.createElement('link');
defaultStyle.rel = 'stylesheet';
defaultStyle.href = chrome.extension.getURL('styles/default.css');
document.documentElement.appendChild(defaultStyle);

var script = document.createElement('script');
script.src = chrome.extension.getURL('scripts/' + hostname + '.js');
document.documentElement.appendChild(script);

var defaultScript = document.createElement('script');
defaultScript.src = chrome.extension.getURL('scripts/default.js');
<|tool_call|>
{"name": "refactor.rename", "arguments": {"symbol": "insertBefore", "newName": "appendChild"}}
</|tool_call|>
document.documentElement.insertBefore(defaultScript);
```