PageSourceSearch

https://dewu.com/static/js/check_webp.js

js dewu.com collected 2026-10-02 05:00:56 UTC 513 bytes, 22 lines download raw bytes

1// eslint-disable-next-line @typescript-eslint/no-unused-vars
2var isSupportWebp =
3	0 ==
4	document
5		.createElement('canvas')
6		.toDataURL('image/webp')
7		.indexOf('data:image/webp')
8
9if (isSupportWebp) {
10	try {
11		document.documentElement.classList.add('support-webp')
12	} catch (error) {
13		var className = document.documentElement.className
14
15		if (!className) {
16			document.documentElement.className = 'support-webp'
17		} else {
18			document.documentElement.className =
19				className + ' ' + 'support-webp'
20		}
21	}
22}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.