Skip to content

Commit

Permalink
fix broken explore repositories (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenghaoz committed Feb 25, 2023
1 parent b38f439 commit fe0f254
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions extension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ $(document).ready(function () {
loadSimilarRepos();
} else if (splits.length === 0) {
// reset title
let exploreDiv = $("[aria-label='Explore Repositories']");
let exploreDiv = $("[aria-label='Explore repositories']");
if (exploreContent == null) {
exploreContent = exploreDiv.children("div[data-view-component=true]");
}
Expand Down Expand Up @@ -174,7 +174,7 @@ async function renderSimilarDiv(result) {
}

function loadRecommendRepos() {
let exploreDiv = $("[aria-label='Explore Repositories']");
let exploreDiv = $("[aria-label='Explore repositories']");
exploreDiv.children("div[data-view-component=true]").remove();
exploreDiv.children("div.py-2").remove();
exploreDiv.children("a.f6").remove();
Expand Down Expand Up @@ -219,7 +219,7 @@ function loadRecommendRepos() {
}

async function showRecommend(result) {
let exploreDiv = $("[aria-label='Explore Repositories']");
let exploreDiv = $("[aria-label='Explore repositories']");
exploreDiv.children("div.py-2").remove();
exploreDiv.children("a.f6").remove();
exploreDiv.children("#error-message").remove();
Expand Down
2 changes: 1 addition & 1 deletion extension/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "GitRec",
"description": "A recommender system for GitHub repositories based on Gorse",
"version": "0.5",
"version": "0.6",
"manifest_version": 3,
"permissions": [
"scripting",
Expand Down
6 changes: 3 additions & 3 deletions userscript/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const mountFn = async () => {
// get neighbors
loadSimilarRepos();
} else if (splits.length === 0) {
let exploreDiv = $("[aria-label='Explore Repositories']");
let exploreDiv = $("[aria-label='Explore repositories']");
if (exploreContent == null) {
exploreContent = exploreDiv.children("div[data-view-component=true]");
}
Expand Down Expand Up @@ -193,7 +193,7 @@ async function renderSimilarDiv(result: any) {
}

async function loadRecommendRepos() {
let exploreDiv = $("[aria-label='Explore Repositories']");
let exploreDiv = $("[aria-label='Explore repositories']");
exploreDiv.children("div[data-view-component=true]").remove();
exploreDiv.children("div.py-2").remove();
exploreDiv.children("a.f6").remove();
Expand Down Expand Up @@ -239,7 +239,7 @@ async function loadRecommendRepos() {
}

async function showRecommend(result: any) {
let exploreDiv = $("[aria-label='Explore Repositories']");
let exploreDiv = $("[aria-label='Explore repositories']");
exploreDiv.children("div.py-2").remove();
exploreDiv.children("a.f6").remove();
exploreDiv.children("#error-message").remove();
Expand Down
2 changes: 1 addition & 1 deletion userscript/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default defineConfig({
userscript: {
namespace: `gorse-io`,
name: `GitRec`,
version: `0.3`,
version: `0.6`,
description: `A recommender system for GitHub repositories based on Gorse`,
icon: `https://gitrec.gorse.io/logo.png`,
match: [`*://github.com/*`],
Expand Down

0 comments on commit fe0f254

Please sign in to comment.