1. Open the registry: Start-to-run, regedit
2. Navigate to HKEY_CLASSES_ROOT, create a new. JS registration (if not yet)
3. View the key value on the right (default), set it to Jsfile, and if there is a PerceivedType key, modify its value to text
4. Navigate to HKEY_CLASSES_ROOT-jsfile, create a ShellEx registration entry, and then create the {8895b1c6-b41f-4c1c-a562-0d564250836f} registry key under ShellEx (this is a fixed value ), and then set the (default) key value to {1531d583-8375-4d3f-b5fb-d23bbd169f22} on the right
5. Take a look at the explorer.
6. Other file types are basically the same
7. {1531D583-8375-4D3F-B5FB-D23BBD169F22} is a Windows TXT preview, other registered previews please navigate to the following:
Hkey_local_machine\software\microsoft\windows\currentversion\previewhandlers
8. Good luck!
Windows 7 Explorer Preview JS file method