mirror of
				https://codeberg.org/ashley/poke
				synced 2025-07-17 16:52:11 +00:00 
			
		
		
		
	remove yandere code :3
This commit is contained in:
		
							parent
							
								
									a8449a7ea4
								
							
						
					
					
						commit
						6f196fe0f4
					
				| @ -37,14 +37,8 @@ function getJson(str) { | ||||
| } | ||||
| 
 | ||||
| function checkUnexistingObject(obj) { | ||||
|   if (obj !== null) { | ||||
|     if (obj.authorId !== null) { | ||||
|       if (obj !== undefined) { | ||||
|         if (obj.authorId !== undefined) { | ||||
|           return true; | ||||
|         } | ||||
|       } | ||||
|     } | ||||
|   if (Object.hasOwn(obj, "authorId")) { | ||||
|     return true; | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| @ -86,19 +80,18 @@ async function video(v) { | ||||
| 
 | ||||
|   var vid = await getJson(video_new_info); | ||||
|   if (checkUnexistingObject(vid)) { | ||||
|   | ||||
|     var a; | ||||
|      | ||||
| 
 | ||||
|     try { | ||||
|     var a = await fetch( | ||||
|       `${config.tubeApi}channel?id=${vid.authorId}&tab=about` | ||||
|     ) | ||||
|       .then((res) => res.text()) | ||||
|       .then((xml) => getJson(toJson(xml))); | ||||
|       var a = await fetch( | ||||
|         `${config.tubeApi}channel?id=${vid.authorId}&tab=about` | ||||
|       ) | ||||
|         .then((res) => res.text()) | ||||
|         .then((xml) => getJson(toJson(xml))); | ||||
|     } catch { | ||||
|       var a = ""   | ||||
|       var a = ""; | ||||
|     } | ||||
|      | ||||
| 
 | ||||
|     const summary = await wiki | ||||
|       .summary(vid.author + " ") | ||||
|       .then((summary_) => | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ashley
						Ashley