I want to excecute content script in view-scource scheme. As in the content script match patter they didn't specified it. Anyone know how to do that?
Asked
Active
Viewed 48 times
1

Blauharley
- 4,186
- 6
- 28
- 47

janaravi
- 106
- 1
- 8
-
1You can't do that. – wOxxOm Feb 02 '18 at 00:52
-
Thats it there is no way to do so? – janaravi Feb 02 '18 at 01:00
-
ok i found another way of getting the source code is using document.documentElement.innerHtml – janaravi Feb 03 '18 at 10:15
1 Answers
0
We can't do that.
Further details. Rendering and script execution is not allowed to happen when opening a webpage in view-source mode.
By design, Google Chrome will initiate a new GET request to the server and provide the client browser with the unrendered version of the webpage when in view-source mode.
Check this out a related issue is discussed here.

Aefits
- 3,399
- 6
- 28
- 46