mirror of
				https://github.com/smartfrigde/armcord.git
				synced 2024-08-14 23:56:58 +00:00 
			
		
		
		
	Fix preload, add new version string check and remove author from GooseMod Plugin
This commit is contained in:
		
							parent
							
								
									df5403c1c8
								
							
						
					
					
						commit
						243306ab19
					
				
					 3 changed files with 9 additions and 18 deletions
				
			
		|  | @ -1,7 +1,6 @@ | ||||||
| { | { | ||||||
|     "name": "GooseMod", |     "name": "GooseMod", | ||||||
| 	"version": "1.0", | 	"version": "1.0", | ||||||
|     "author": "AAGaming", |  | ||||||
|     "description": "Loads GooseMod, a discord client modification", |     "description": "Loads GooseMod, a discord client modification", | ||||||
|     "background": { |     "background": { | ||||||
|         "scripts": [ |         "scripts": [ | ||||||
|  |  | ||||||
							
								
								
									
										22
									
								
								preload.js
									
										
									
									
									
								
							
							
						
						
									
										22
									
								
								preload.js
									
										
									
									
									
								
							|  | @ -26,7 +26,6 @@ window.addEventListener("DOMContentLoaded", () => { | ||||||
| 
 | 
 | ||||||
|   ArmCord.addStyle(` |   ArmCord.addStyle(` | ||||||
| @import url("https://kckarnige.github.io/femboi_owo/discord-font.css"); | @import url("https://kckarnige.github.io/femboi_owo/discord-font.css"); | ||||||
| 
 |  | ||||||
| :root { | :root { | ||||||
|   --window-buttons: var(--header-secondary); |   --window-buttons: var(--header-secondary); | ||||||
|   --cord-color: var(--header-primary); |   --cord-color: var(--header-primary); | ||||||
|  | @ -42,11 +41,9 @@ window.addEventListener("DOMContentLoaded", () => { | ||||||
|   overflow: hidden; |   overflow: hidden; | ||||||
|   border-top-left-radius: 8px; |   border-top-left-radius: 8px; | ||||||
| } | } | ||||||
| 
 |  | ||||||
| div.menubar[role="menubar"] { | div.menubar[role="menubar"] { | ||||||
|   width: 0px; |   width: 0px; | ||||||
| } | } | ||||||
| 
 |  | ||||||
| .window-title:after { | .window-title:after { | ||||||
|   content: "Cord"; |   content: "Cord"; | ||||||
|   color: var(--cord-color) !important; |   color: var(--cord-color) !important; | ||||||
|  | @ -54,7 +51,6 @@ div.menubar[role="menubar"] { | ||||||
|   font-size: 14px; |   font-size: 14px; | ||||||
|   font-family: Discordinated; |   font-family: Discordinated; | ||||||
| } | } | ||||||
| 
 |  | ||||||
| .window-title:before { | .window-title:before { | ||||||
|   content: "ARM"; |   content: "ARM"; | ||||||
|   color: var(--armcord-color); |   color: var(--armcord-color); | ||||||
|  | @ -62,33 +58,31 @@ div.menubar[role="menubar"] { | ||||||
|   font-size: 14px; |   font-size: 14px; | ||||||
|   font-family: Helvetica, sans-serif; |   font-family: Helvetica, sans-serif; | ||||||
| } | } | ||||||
| 
 |  | ||||||
| .window-title { | .window-title { | ||||||
|   font-size: 0px !important; |   font-size: 0px !important; | ||||||
|   margin-left: initial !important; |   margin-left: initial !important; | ||||||
|   transform: translate(10px, 2px) !important; |   transform: translate(10px, 2px) !important; | ||||||
| } | } | ||||||
| 
 |  | ||||||
| .titlebar { | .titlebar { | ||||||
|   background: var(--background-tertiary) !important; |   background: var(--background-tertiary) !important; | ||||||
|   font-family: Verdana, Geneva, Tahoma, sans-serif; |   font-family: Verdana, Geneva, Tahoma, sans-serif; | ||||||
| } | } | ||||||
| 
 |  | ||||||
| .titlebar .window-controls-container .window-icon { | .titlebar .window-controls-container .window-icon { | ||||||
|   background: var(--window-buttons) !important; |   background: var(--window-buttons) !important; | ||||||
| } | } | ||||||
| `);
 | `);
 | ||||||
| 
 | 
 | ||||||
| 
 |   ArmCord.addStyle( | ||||||
| ArmCord.addStyle(`.info-1VyQPT:last-child:before {
 |     `.info-1VyQPT:last-child:before {
 | ||||||
|   content: "ArmCord Version: ` + ArmCord.Version + `"; |   content: "ArmCord Version: ` +
 | ||||||
|  |       ArmCord.Version + | ||||||
|  |       `";
 | ||||||
|   height: auto; |   height: auto; | ||||||
|   line-height: 16px; |   line-height: 16px; | ||||||
|   text-align: center; |   text-align: center; | ||||||
|   color: var(--text-muted); |   color: var(--text-muted); | ||||||
|   font-size: 12px; |   font-size: 12px; | ||||||
|   text-transform: none; |   text-transform: none; | ||||||
| 
 | }` | ||||||
| }`);
 |   ); | ||||||
| }) | }); | ||||||
| 
 |  | ||||||
|  |  | ||||||
|  | @ -1,5 +1,4 @@ | ||||||
| 
 | exports.Version = require("../package.json").version; | ||||||
| exports.Version = "2.4"; |  | ||||||
| 
 | 
 | ||||||
| exports.addStyle = function (styleString) { | exports.addStyle = function (styleString) { | ||||||
|   const style = document.createElement("style"); |   const style = document.createElement("style"); | ||||||
|  | @ -12,4 +11,3 @@ exports.addScript = function (scriptString) { | ||||||
|   script.textContent = scriptString; |   script.textContent = scriptString; | ||||||
|   document.body.append(script); |   document.body.append(script); | ||||||
| }; | }; | ||||||
| 
 |  | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue