feat: remove get rid of Disable Tampermonkey
				
					
				
			This commit is contained in:
		
							parent
							
								
									f6b8ab4413
								
							
						
					
					
						commit
						3f6818fde5
					
				
					 1 changed files with 0 additions and 10 deletions
				
			
		|  | @ -19,16 +19,6 @@ if (_GM && _GM.registerMenuCommand && _GM.openInTab) { | |||
|   ) | ||||
| } | ||||
| 
 | ||||
| // get rid of `Disable Tampermonkey`
 | ||||
| const observer = new MutationObserver((mutations) => { | ||||
|   mutations.forEach(x => [...x.addedNodes].forEach(e => { | ||||
|     if (!document.querySelector('.js-page')) { | ||||
|       e.replaceWith(...x.removedNodes) | ||||
|     } | ||||
|   })) | ||||
| }) | ||||
| observer.observe(document, { childList: true, subtree: true }) | ||||
| 
 | ||||
| // script loader
 | ||||
| new Promise(resolve => { | ||||
|   const id = '' + Math.random(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue