| OLD | NEW |
| 1 <p> | 1 <p> |
| 2 Use <code>chrome.devtools.inspectedWindow</code> | 2 Use <code>chrome.devtools.inspectedWindow</code> |
| 3 to interact with the inspected window: | 3 to interact with the inspected window: |
| 4 obtain the tab ID for the inspected page, | 4 obtain the tab ID for the inspected page, |
| 5 evaluate the code in the context of inspected window, | 5 evaluate the code in the context of inspected window, |
| 6 reload the page, | 6 reload the page, |
| 7 or obtain the list of resources within the page. | 7 or obtain the list of resources within the page. |
| 8 </p><p> | 8 </p><p> |
| 9 See <a href="devtools">DevTools APIs summary</a> for | 9 See <a href="devtools">DevTools APIs summary</a> for |
| 10 general introduction to using Developer Tools APIs. | 10 general introduction to using Developer Tools APIs. |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 if (isException) | 112 if (isException) |
| 113 console.log("the page is not using jQuery"); | 113 console.log("the page is not using jQuery"); |
| 114 else | 114 else |
| 115 console.log("The page is using jQuery v" + result); | 115 console.log("The page is using jQuery v" + result); |
| 116 } | 116 } |
| 117 ); | 117 ); |
| 118 </pre> | 118 </pre> |
| 119 | 119 |
| 120 <p> | 120 <p> |
| 121 You can find more examples that use Developer Tools APIs in | 121 You can find more examples that use Developer Tools APIs in |
| 122 <a href="samples#devtools">Samples</a>. | 122 <a href="samples#search:devtools">Samples</a>. |
| 123 </p> | 123 </p> |
| OLD | NEW |