Compare commits
	
		
			No commits in common. "191311149d779ab4a2759772222d89aec8caaaaf" and "c35238da7b979c8c233d1b01aff9735eba9949c7" have entirely different histories.
		
	
	
		
			191311149d
			...
			c35238da7b
		
	
		
					 6 changed files with 16 additions and 62 deletions
				
			
		
							
								
								
									
										12
									
								
								btfl.css
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								btfl.css
									
										
									
									
									
								
							|  | @ -18,7 +18,6 @@ | ||||||
| [class^="unreadPill-"], | [class^="unreadPill-"], | ||||||
| [class^="applicationInstall"], | [class^="applicationInstall"], | ||||||
| [class*="nitro"], | [class*="nitro"], | ||||||
| [class*="artwork-"], |  | ||||||
| div[class^="art-"], | div[class^="art-"], | ||||||
| div[class^="threadSuggestionBar-"], | div[class^="threadSuggestionBar-"], | ||||||
| div[class^="nameTag-"], | div[class^="nameTag-"], | ||||||
|  | @ -34,7 +33,6 @@ div[class*="goal"], | ||||||
| div[class^="welcomeCTA-"], | div[class^="welcomeCTA-"], | ||||||
| h2[class^="privateChannelsHeaderContainer"], | h2[class^="privateChannelsHeaderContainer"], | ||||||
| nav[class^="nav-"], | nav[class^="nav-"], | ||||||
| span[class^="questionMark-"], |  | ||||||
| 
 | 
 | ||||||
| /* Settings */ | /* Settings */ | ||||||
| div[aria-controls*="nitro"], | div[aria-controls*="nitro"], | ||||||
|  | @ -65,10 +63,10 @@ nav[class^="privateChannels-"] div div | ||||||
| /* main page */ | /* main page */ | ||||||
| #app-mount div:not([class]) div[class=""] div:not([class]) | #app-mount div:not([class]) div[class=""] div:not([class]) | ||||||
| { | { | ||||||
|   all: unset !important; |   all: unset; | ||||||
|   display: none !important; |   display: none; | ||||||
|   width: 0 !important; |   width: 0; | ||||||
|   height: 0 !important; |   height: 0; | ||||||
| } | } | ||||||
| div[aria-label="Servers"] ~ div | div[aria-label="Servers"] ~ div | ||||||
| { | { | ||||||
|  | @ -136,7 +134,6 @@ div[class^="radioBar-"] { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| /* rounder */ | /* rounder */ | ||||||
| [class^="authBox"], |  | ||||||
| div[class^="item-"], | div[class^="item-"], | ||||||
| div[class^="select-"], | div[class^="select-"], | ||||||
| div[class^="popout"], | div[class^="popout"], | ||||||
|  | @ -172,7 +169,6 @@ div[class^="colorPicker"] div div[class^="saturation"] div, | ||||||
| div[class*="input"], | div[class*="input"], | ||||||
| input[class^="inputDefault-"], | input[class^="inputDefault-"], | ||||||
| [class^="avatar-"], | [class^="avatar-"], | ||||||
| div[class^="role-"], |  | ||||||
| div[class^="menu-"] div | div[class^="menu-"] div | ||||||
| { | { | ||||||
|   border-radius: 8px !important; |   border-radius: 8px !important; | ||||||
|  |  | ||||||
							
								
								
									
										18
									
								
								js/bg.js
									
										
									
									
									
								
							
							
						
						
									
										18
									
								
								js/bg.js
									
										
									
									
									
								
							|  | @ -1,18 +0,0 @@ | ||||||
| /** DisKort |  | ||||||
|  * (c) Er2 2022 |  | ||||||
|  * Zlib License |  | ||||||
|  */ |  | ||||||
| 
 |  | ||||||
| // Disable CSP
 |  | ||||||
| function onHeaders(det) { |  | ||||||
|   for (var i = 0; i < det.responseHeaders.length; i++) { |  | ||||||
|     if (det.responseHeaders[i].name.toLowerCase() == 'content-security-policy' |  | ||||||
|       || det.responseHeaders[i].name.toLowerCase() == 'content-security-policy-report-only' |  | ||||||
|     ) det.responseHeaders[i].value = ''; |  | ||||||
|   } |  | ||||||
|   return { responseHeaders: det.responseHeaders }; |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| chrome.webRequest.onHeadersReceived.addListener( |  | ||||||
|   onHeaders, {urls: ['<all_urls>']}, ['blocking', 'responseHeaders'] |  | ||||||
| ); |  | ||||||
							
								
								
									
										18
									
								
								js/inj.js
									
										
									
									
									
								
							
							
						
						
									
										18
									
								
								js/inj.js
									
										
									
									
									
								
							|  | @ -1,18 +0,0 @@ | ||||||
| /** DisKort |  | ||||||
|  * (c) Er2 2022 |  | ||||||
|  * Zlib License |  | ||||||
|  */ |  | ||||||
| 
 |  | ||||||
| const base = "https://raw.githubusercontent.com/Er2ch/diskort/main/"; |  | ||||||
| 
 |  | ||||||
| async function inject() { |  | ||||||
|   try { |  | ||||||
|     var resp = await fetch(base + 'btfl.css'); |  | ||||||
|     var text = await resp.text(); |  | ||||||
|     var s = document.createElement("style"); |  | ||||||
|     s.innerHTML = text; |  | ||||||
|     document.head.appendChild(s); |  | ||||||
|   } catch(e) { console.error(e); } |  | ||||||
| } |  | ||||||
| document.addEventListener("click", inject); |  | ||||||
| inject(); |  | ||||||
|  | @ -1,5 +1,5 @@ | ||||||
| #!/bin/sh | #!/bin/sh | ||||||
| 
 | 
 | ||||||
| zip -r diskort.xpi js/ ext.png manifest.json license | zip diskort.xpi btfl.css ext.png manifest.json | ||||||
| echo "goto about:config and set xpinstall.signatures.required to false" | echo "goto about:config and set xpinstall.signatures.required to false" | ||||||
| echo "then goto about:addons -> settings icon below search -> install add-on from file" | echo "then goto about:addons -> settings icon below search -> install add-on from file" | ||||||
|  |  | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| { | { | ||||||
|   "manifest_version": 2, |   "manifest_version": 2, | ||||||
|   "name": "DisKort", |   "name": "DisKort", | ||||||
|   "version": "2.0", |   "version": "1.1", | ||||||
| 
 | 
 | ||||||
|   "description": "Custom theme for Discord", |   "description": "Custom theme for Discord", | ||||||
| 
 | 
 | ||||||
|  | @ -9,26 +9,20 @@ | ||||||
|     "48": "ext.png" |     "48": "ext.png" | ||||||
|   }, |   }, | ||||||
| 
 | 
 | ||||||
|   "permissions": [ |   "content_scripts": [ | ||||||
|     "https://raw.githubusercontent.com/Er2ch/diskort/*", |     { | ||||||
|     "*://discord.com/", |       "matches": [ | ||||||
|     "webRequest", |         "*://discord.com/*", | ||||||
|     "webRequestBlocking" |         "*://discord.gg/*", | ||||||
|  |         "*://discord.gift/*" | ||||||
|  |       ], | ||||||
|  |       "css": ["btfl.css"] | ||||||
|  |     } | ||||||
|   ], |   ], | ||||||
| 
 | 
 | ||||||
|   "background": { |  | ||||||
|     "scripts": ["js/bg.js"], |  | ||||||
|     "persistent": true |  | ||||||
|   }, |  | ||||||
| 
 |  | ||||||
|   "content_scripts": [{ |  | ||||||
|     "matches": ["*://discord.com/*"], |  | ||||||
|     "js": ["js/inj.js"] |  | ||||||
|   }], |  | ||||||
| 
 |  | ||||||
|   "browser_specific_settings": { |   "browser_specific_settings": { | ||||||
|     "gecko": { |     "gecko": { | ||||||
|       "id": "{7e79557e-5773-4be8-b0e2-9e35b34b692c}" |       "id": "diskort@er2" | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue