Skip to content

Commit 4a903d8

Browse files
committed
chore: another github replacement for gitlab
1 parent 2f2ef12 commit 4a903d8

5 files changed

Lines changed: 14 additions & 14 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ A browser extension that reskins GitHub.com to add groups functionality to organ
1313
## Features
1414

1515
- **Repository Groups**: Automatically groups repositories based on naming convention (everything before first hyphen)
16-
- **Modern Design**: Clean, distraction-free interface inspired by GitLab's design language
16+
- **Modern Design**: Clean, distraction-free interface inspired by github's design language
1717
- **Preserved Functionality**: All native GitHub features remain intact
1818

1919
## Installation
@@ -42,7 +42,7 @@ A browser extension that reskins GitHub.com to add groups functionality to organ
4242

4343
## Design System
4444

45-
The extension implements GitLab's color palette:
45+
The extension implements github's color palette:
4646

4747
- **Primary Navy**: `#292961`
4848
- **Accent Orange**: `#e24329`

public/styles.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ body.github-dark-theme [data-testid="repository-list-item"] a[href*="/"]:hover {
163163
color: var(--gl-primary) !important;
164164
}
165165

166-
/* GitLab Group Cards - Clickable Cards System */
166+
/* github Group Cards - Clickable Cards System */
167167
.github-cards-section {
168168
margin-bottom: 24px !important;
169169
}
@@ -548,7 +548,7 @@ body.github-dark-theme [data-testid="repository-list-item"] a[href*="/"]:hover {
548548
box-shadow: var(--gl-shadow) !important;
549549
}
550550

551-
/* Buttons - Fully Rounded GitLab Style */
551+
/* Buttons - Fully Rounded github Style */
552552
.btn-primary,
553553
.Button--primary {
554554
background: var(--gl-primary) !important;

src/core/repository/RepositoryProcessor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class RepositoryProcessor {
6161
* @param {Element[]} items - Repository item elements.
6262
*/
6363
displayAllRepos(container, items) {
64-
if (container.dataset.gitlabProcessed === "true") {
64+
if (container.dataset.githubProcessed === "true") {
6565
return;
6666
}
6767

@@ -239,7 +239,7 @@ export class RepositoryProcessor {
239239

240240
displayAllRepos(container, items) {
241241
// Only modify if we haven't already processed this container.
242-
if (container.dataset.gitlabProcessed === "true") {
242+
if (container.dataset.githubProcessed === "true") {
243243
return;
244244
}
245245

src/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,13 @@ class GithubExplorer {
170170
const items = this.repositoryFinder.findRepositoryItems(container);
171171

172172
if (items.length > 0) {
173-
if (!container.dataset.gitlabProcessed) {
173+
if (!container.dataset.githubProcessed) {
174174
if (this.groupingEnabled && this.groupManager) {
175175
this.repositoryProcessor.createGroupCards(container, items);
176176
} else {
177177
this.repositoryProcessor.displayAllRepos(container, items);
178178
}
179-
container.dataset.gitlabProcessed = "true";
179+
container.dataset.githubProcessed = "true";
180180
}
181181
}
182182
});

src/storage/StorageManager.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ class StorageManager {
6161
await this.db.settings.add({ key, value });
6262
}
6363

64-
localStorage.setItem(`gitlab_theme_${key}`, JSON.stringify(value));
65-
this.setCookie(`gitlab_theme_${key}`, JSON.stringify(value), 365);
64+
localStorage.setItem(`github_theme_${key}`, JSON.stringify(value));
65+
this.setCookie(`github_theme_${key}`, JSON.stringify(value), 365);
6666

6767
console.log(`[Storage] Saved setting: ${key}`);
6868
} catch (error) {
@@ -84,10 +84,10 @@ class StorageManager {
8484
if (setting) return setting.value;
8585
}
8686

87-
const localValue = localStorage.getItem(`gitlab_theme_${key}`);
87+
const localValue = localStorage.getItem(`github_theme_${key}`);
8888
if (localValue) return JSON.parse(localValue);
8989

90-
const cookieValue = this.getCookie(`gitlab_theme_${key}`);
90+
const cookieValue = this.getCookie(`github_theme_${key}`);
9191
if (cookieValue) return JSON.parse(cookieValue);
9292

9393
return defaultValue;
@@ -104,8 +104,8 @@ class StorageManager {
104104
*/
105105
saveSettingFallback(key, value) {
106106
try {
107-
localStorage.setItem(`gitlab_theme_${key}`, JSON.stringify(value));
108-
this.setCookie(`gitlab_theme_${key}`, JSON.stringify(value), 365);
107+
localStorage.setItem(`github_theme_${key}`, JSON.stringify(value));
108+
this.setCookie(`github_theme_${key}`, JSON.stringify(value), 365);
109109
} catch (error) {
110110
console.error("[Storage] Fallback storage failed:", error);
111111
}

0 commit comments

Comments
 (0)