forked from distok/cutthecord
		
	
							parent
							
								
									018474dc2b
								
							
						
					
					
						commit
						cf6f10a0e1
					
				
					 3 changed files with 42 additions and 0 deletions
				
			
		
							
								
								
									
										22
									
								
								patches/pseudonitro-viewer/1150.patch
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								patches/pseudonitro-viewer/1150.patch
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,22 @@
 | 
			
		|||
diff -crB com.discord-base/smali/com/discord/utilities/textprocessing/Rules.smali com.discord/smali/com/discord/utilities/textprocessing/Rules.smali
 | 
			
		||||
*** com.discord-base/smali/com/discord/utilities/textprocessing/Rules.smali	2020-05-27 16:23:07.799975486 +0300
 | 
			
		||||
--- com.discord/smali/com/discord/utilities/textprocessing/Rules.smali	2020-05-28 15:14:32.542156347 +0300
 | 
			
		||||
***************
 | 
			
		||||
*** 165,171 ****
 | 
			
		||||
  
 | 
			
		||||
      sput-object v1, Lcom/discord/utilities/textprocessing/Rules;->PATTERN_UNICODE_EMOJI$delegate:Lkotlin/Lazy;
 | 
			
		||||
  
 | 
			
		||||
!     const-string v1, "^<(a)?:([a-zA-Z_0-9]+):(\\d+)>"
 | 
			
		||||
  
 | 
			
		||||
      .line 10
 | 
			
		||||
      invoke-static {v1}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;
 | 
			
		||||
--- 165,172 ----
 | 
			
		||||
  
 | 
			
		||||
      sput-object v1, Lcom/discord/utilities/textprocessing/Rules;->PATTERN_UNICODE_EMOJI$delegate:Lkotlin/Lazy;
 | 
			
		||||
  
 | 
			
		||||
!     # There's a ZWSP there
 | 
			
		||||
!     const-string v1, "^<&??(a)?:([a-zA-Z_0-9]+):(\\d+)>"
 | 
			
		||||
  
 | 
			
		||||
      .line 10
 | 
			
		||||
      invoke-static {v1}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										16
									
								
								patches/pseudonitro-viewer/README.md
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								patches/pseudonitro-viewer/README.md
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,16 @@
 | 
			
		|||
## DisTok CutTheCord: Pseudo Nitro Viewer Patch
 | 
			
		||||
 | 
			
		||||
This patch allows viewing emojis sent with pseudoNitro.
 | 
			
		||||
 | 
			
		||||
pseudoNitro is a way of sending emojis from all guilds to all guilds, even without Nitro. Both receivers need psuedoNitro to view these.
 | 
			
		||||
- The old format is inserting a `&` between `<` and `:` (such as `<&:thinkEyes:406800811700781076>`).
 | 
			
		||||
- The new format is inserting a zwsp between `<` and `:` (such as `<:thinkEyes:406800811700781076>`).
 | 
			
		||||
- This patch supports receiving both.
 | 
			
		||||
 | 
			
		||||
TL;DR:
 | 
			
		||||
 | 
			
		||||

 | 
			
		||||
 | 
			
		||||
#### Available and tested on:
 | 
			
		||||
- 24
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue