@@ -38,20 +38,24 @@ Note: code snippets do NOT have access to the full console API, for example no a
3838
3939* [ test-script-injection.js] ( test-script-injection.js ) - tries to create a new
4040 inline script tag to test if page allows it.
41+ * [ harlem-shake-xss.js] ( harlem-shake-xss.js ) - little XSS script that injects
42+ [ Harlem Shake music] ( https://github.com/DinisCruz/XSS-Pocs/blob/master/pocs/dance-xss.js )
4143
4244### DOM and CPU generic performance
4345
4446* [ boilerplate.js] ( boilerplate.js ) - boilerplate for loading and running a remote code script
45- (see [ remote download] ( #remote-download ) ).
47+ (see [ remote download] ( #remote-download ) ).
4648* [ first-paint.js] ( first-paint.js ) - time from page reload to first visible contents.
4749* [ timing.js] ( timing.js ) - Detailed page timing information,
48- from [ addyosmani/timing.js] ( https://github.com/addyosmani/timing.js ) .
50+ from [ addyosmani/timing.js] ( https://github.com/addyosmani/timing.js ) .
4951* [ time-method-call.js] ( time-method-call.js ) - measures single method call time.
5052* [ profile-method-call.js] ( profile-method-call.js ) - profiles a single method call.
5153* [ profile-prototype-method.js] ( profile-prototype-method.js ) - profiles a single method call
52- that is on a prototype object, not on an instance.
54+ that is on a prototype object, not on an instance.
5355* [ profile-separate-calls.js] ( profile-separate-calls.js ) can profile actions where separate
54- method calls start and stop the operation.
56+ method calls start and stop the operation.
57+ * [ css-layout.js] ( css-layout.js ) draws boundary around every DOM element for
58+ clarity.
5559
5660### Storage measurements
5761
@@ -104,7 +108,7 @@ All snippets, including mine are distributed under MIT license.
104108You can update local code snippets by downloading new versions from this github repository.
105109Create a new code snippet and copy the source from [ update-code-snippets.js] ( update-code-snippets.js ) .
106110
107- Note: the approach below does not work any more,
111+ Note: the approach below does not work any more,
108112see [ the open issue] ( https://github.com/bahmutov/code-snippets/issues/23 ) .
109113
110114You will run this code snippet in an unusual way. First, open any web page, even an empty tab.
0 commit comments