@@ -38,20 +38,24 @@ Note: code snippets do NOT have access to the full console API, for example no a
38
38
39
39
* [ test-script-injection.js] ( test-script-injection.js ) - tries to create a new
40
40
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 )
41
43
42
44
### DOM and CPU generic performance
43
45
44
46
* [ 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 ) ).
46
48
* [ first-paint.js] ( first-paint.js ) - time from page reload to first visible contents.
47
49
* [ 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 ) .
49
51
* [ time-method-call.js] ( time-method-call.js ) - measures single method call time.
50
52
* [ profile-method-call.js] ( profile-method-call.js ) - profiles a single method call.
51
53
* [ 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.
53
55
* [ 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.
55
59
56
60
### Storage measurements
57
61
@@ -104,7 +108,7 @@ All snippets, including mine are distributed under MIT license.
104
108
You can update local code snippets by downloading new versions from this github repository.
105
109
Create a new code snippet and copy the source from [ update-code-snippets.js] ( update-code-snippets.js ) .
106
110
107
- Note: the approach below does not work any more,
111
+ Note: the approach below does not work any more,
108
112
see [ the open issue] ( https://github.com/bahmutov/code-snippets/issues/23 ) .
109
113
110
114
You will run this code snippet in an unusual way. First, open any web page, even an empty tab.
0 commit comments