Skip to content

Commit fe0f254

Browse files
authored
fix broken explore repositories (#77)
1 parent b38f439 commit fe0f254

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

extension/content.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $(document).ready(function () {
3737
loadSimilarRepos();
3838
} else if (splits.length === 0) {
3939
// reset title
40-
let exploreDiv = $("[aria-label='Explore Repositories']");
40+
let exploreDiv = $("[aria-label='Explore repositories']");
4141
if (exploreContent == null) {
4242
exploreContent = exploreDiv.children("div[data-view-component=true]");
4343
}
@@ -174,7 +174,7 @@ async function renderSimilarDiv(result) {
174174
}
175175

176176
function loadRecommendRepos() {
177-
let exploreDiv = $("[aria-label='Explore Repositories']");
177+
let exploreDiv = $("[aria-label='Explore repositories']");
178178
exploreDiv.children("div[data-view-component=true]").remove();
179179
exploreDiv.children("div.py-2").remove();
180180
exploreDiv.children("a.f6").remove();
@@ -219,7 +219,7 @@ function loadRecommendRepos() {
219219
}
220220

221221
async function showRecommend(result) {
222-
let exploreDiv = $("[aria-label='Explore Repositories']");
222+
let exploreDiv = $("[aria-label='Explore repositories']");
223223
exploreDiv.children("div.py-2").remove();
224224
exploreDiv.children("a.f6").remove();
225225
exploreDiv.children("#error-message").remove();

extension/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "GitRec",
33
"description": "A recommender system for GitHub repositories based on Gorse",
4-
"version": "0.5",
4+
"version": "0.6",
55
"manifest_version": 3,
66
"permissions": [
77
"scripting",

userscript/src/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const mountFn = async () => {
4141
// get neighbors
4242
loadSimilarRepos();
4343
} else if (splits.length === 0) {
44-
let exploreDiv = $("[aria-label='Explore Repositories']");
44+
let exploreDiv = $("[aria-label='Explore repositories']");
4545
if (exploreContent == null) {
4646
exploreContent = exploreDiv.children("div[data-view-component=true]");
4747
}
@@ -193,7 +193,7 @@ async function renderSimilarDiv(result: any) {
193193
}
194194

195195
async function loadRecommendRepos() {
196-
let exploreDiv = $("[aria-label='Explore Repositories']");
196+
let exploreDiv = $("[aria-label='Explore repositories']");
197197
exploreDiv.children("div[data-view-component=true]").remove();
198198
exploreDiv.children("div.py-2").remove();
199199
exploreDiv.children("a.f6").remove();
@@ -239,7 +239,7 @@ async function loadRecommendRepos() {
239239
}
240240

241241
async function showRecommend(result: any) {
242-
let exploreDiv = $("[aria-label='Explore Repositories']");
242+
let exploreDiv = $("[aria-label='Explore repositories']");
243243
exploreDiv.children("div.py-2").remove();
244244
exploreDiv.children("a.f6").remove();
245245
exploreDiv.children("#error-message").remove();

userscript/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default defineConfig({
88
userscript: {
99
namespace: `gorse-io`,
1010
name: `GitRec`,
11-
version: `0.3`,
11+
version: `0.6`,
1212
description: `A recommender system for GitHub repositories based on Gorse`,
1313
icon: `https://gitrec.gorse.io/logo.png`,
1414
match: [`*://github.com/*`],

0 commit comments

Comments
 (0)