mirror of
				https://codeberg.org/ashley/poke
				synced 2025-07-17 16:52:11 +00:00 
			
		
		
		
	Add 'css/custom-css.js'
This commit is contained in:
		
							parent
							
								
									deece5d092
								
							
						
					
					
						commit
						8179f29d05
					
				
							
								
								
									
										17
									
								
								css/custom-css.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								css/custom-css.js
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,17 @@ | ||||
| // @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-3.0-or-later  
 | ||||
|    | ||||
| const css = localStorage.getItem("poke-custom-css"); | ||||
| 
 | ||||
| var head = document.head  | ||||
| var style = document.createElement('style'); | ||||
| 
 | ||||
| head.appendChild(style); | ||||
| 
 | ||||
| style.type = 'text/css'; | ||||
| 
 | ||||
| if (style.styleSheet){ | ||||
|   // This is required for IE8 and below.
 | ||||
|   style.styleSheet.cssText = css; | ||||
| } else { | ||||
|   style.appendChild(document.createTextNode(css)); | ||||
| } | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ashley
						Ashley