mirror of
				https://github.com/lordfriky/web-cfw-loader.git
				synced 2025-10-31 03:09:30 +00:00 
			
		
		
		
	Update main.js
This commit is contained in:
		
							parent
							
								
									63e6c63566
								
							
						
					
					
						commit
						a490761ad3
					
				
							
								
								
									
										8
									
								
								main.js
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								main.js
									
									
									
									
									
								
							| @ -168,4 +168,12 @@ document.getElementById("goButton").addEventListener("click", async () => { | |||||||
|   launchPayload(payload); |   launchPayload(payload); | ||||||
| }); | }); | ||||||
| 
 | 
 | ||||||
|  | document.getElementById("infobutton").addEventListener("onclick", function() { | ||||||
|  |   if(document.getElementById("infodiv").innerHTML != "") { | ||||||
|  |     document.getElementById("infodiv").innerHTML = ""; | ||||||
|  |   } else { | ||||||
|  |     document.getElementById("infodiv").innerHTML = "<h4>Instructions:</h4><p>Put the Switch in RCM, and connect it to your device.</p><p>Select either the example payload, or upload one.</p><p>Press 'Run Payload!'</p><p>On the consent screen that appears, select 'APX' and hit confirm.</p><p>If all goes well, the payload will launch!</p><h4>Info:</h4><p>This is moderately tested. Although no issues have been discovered, I'm not responsible if anything goes wrong!</p><p>This does NOT work on Windows due to a limitation in the Chrome implementation of WebUSB (and probably other reasons!)</p><p>This does NOT currently work on any browser but Chrome, because they don't implement WebUSB.</p><p>On Linux, you might get an access denied error!If you do, you can try creating a file at <code>/etc/udev/rules.d/50-switch.rules</code>With the following contents:<br><code>SUBSYSTEM=="usb", ATTR{idVendor}=="0955", MODE="0664", GROUP="plugdev"</code></p><p>Hekate for 4.x has not been tested, as I do not have a 4.x switch. However, all other payloads will be tested as they are uploaded.</p><p>This has been tested and appears to work on Linux, OSX, Android (unrooted) and Chromebooks. Your mileage may vary.</p>"); | ||||||
|  |   } | ||||||
|  | } | ||||||
|  |    | ||||||
| document.getElementById("payloadUpload").addEventListener("change", () => document.forms.mainForm.payload.value = "uploaded"); | document.getElementById("payloadUpload").addEventListener("change", () => document.forms.mainForm.payload.value = "uploaded"); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user