tweak: remove twitter from redirection blacklist
+ tweak styles.
This commit is contained in:
		
							parent
							
								
									230f472e3a
								
							
						
					
					
						commit
						574cdd30ce
					
				| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
#include <stdio.h>
 | 
			
		||||
#include <stdlib.h>
 | 
			
		||||
#include <string.h>
 | 
			
		||||
#define STYLE_N 1610 + 1
 | 
			
		||||
#define STYLE_N 1781 + 1
 | 
			
		||||
 | 
			
		||||
void read_style_js(char* string)
 | 
			
		||||
{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
#ifndef STYLE
 | 
			
		||||
#define STYLE
 | 
			
		||||
 | 
			
		||||
#define STYLE_N 1610 + 1
 | 
			
		||||
#define STYLE_N 1781 + 1
 | 
			
		||||
 | 
			
		||||
void read_style_js(char* string);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -52,6 +52,17 @@ if (document.domain == "search.nunosempere.com" ){
 | 
			
		|||
	 }
 | 
			
		||||
  `
 | 
			
		||||
}
 | 
			
		||||
if (document.domain == "twitter.com" ){
 | 
			
		||||
  styles = `
 | 
			
		||||
	[data-testid="placementTracking"] {
 | 
			
		||||
		display: none;
 | 
			
		||||
	}
 | 
			
		||||
	[data-testid="sidebarColumn"] {
 | 
			
		||||
		display: none;
 | 
			
		||||
	}
 | 
			
		||||
  `
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
if(styles != null){
 | 
			
		||||
	  var styleSheet = document.createElement('style')
 | 
			
		||||
	  styleSheet.innerText = styles
 | 
			
		||||
| 
						 | 
				
			
			@ -60,3 +71,4 @@ if(styles != null){
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
document.body.style.visibility = "visible"
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user