<p>Can this be done? How?</p>

<hr>

<p>I want to write my own extension. Can Get the current page sorcecode in my own extension?</p>

Sure, just add view-source: in front of the URL.
```
```
view-source:http://stackoverflow.com/posts/edit/145419
```
```
Will show the source of this page for instance - try it in the address bar.