diff --git a/src/content_script/index.tsx b/src/content_script/index.tsx
index 5f492a3..ad0665c 100644
--- a/src/content_script/index.tsx
+++ b/src/content_script/index.tsx
@@ -8,7 +8,7 @@ import * as ReactDOM from 'react-dom';
window.addEventListener('load', () => {
// REPO PAGE
const dom = document.createElement('div');
- document.body.append(dom);
+ document.body.querySelector('.Layout-sidebar').prepend(dom);
ReactDOM.render(
@@ -17,21 +17,4 @@ window.addEventListener('load', () => {
,
dom,
);
-
- /* if (href === `https://github.com/${username}?tab=following`) {
- const userDom = document.querySelectorAll('.d-table-cell.col-9.v-align-top.pr-3');
- userDom.forEach((o) => {
- const dom = document.createElement('span');
- o.querySelector('.d-inline-block').appendChild(dom);
- render(, dom);
- });
- } */
-
- // GIST page
- // if (href.match(/^https:\/\/gist.github.com\/\w*/gi)) {
- // const oDiv = document.createElement('div');
- // render(, oDiv);
-
- // document.body.appendChild(oDiv);
- // }
});
diff --git a/src/content_script/pages/repo/buttons.tsx b/src/content_script/pages/repo/buttons.tsx
index 20a126d..d5fc539 100644
--- a/src/content_script/pages/repo/buttons.tsx
+++ b/src/content_script/pages/repo/buttons.tsx
@@ -1,5 +1,5 @@
import { IInterceptIntoPage } from '@/background/network';
-import { ACTION_SHOW_OPTION_PAGE, IAction } from '@/content_script/hooks/oneway-message/message';
+import { ACTION_SHOW_OPTION_PAGE, IAction, INTERCEPT_INTO_PAGE } from '@/content_script/hooks/oneway-message/message';
import { IStarModel } from '@/services/model/star';
import { Chip, Stack } from '@mui/material';
import { green } from '@mui/material/colors';
@@ -7,13 +7,13 @@ import { Box } from '@mui/system';
import React from 'react';
/**
- * INJECT IN REPO PAGE
+ * INJECT IN REPO PAGE SHOW TAG AND GROUP
*/
const Buttons: React.FC<{}> = () => {
const [starInfo, setStarInfo] = React.useState(null);
const openOptionPage = () => {
- chrome.runtime.sendMessage({ type: ACTION_SHOW_OPTION_PAGE });
+ chrome.runtime.sendMessage({ type: INTERCEPT_INTO_PAGE });
};
React.useEffect(() => {
diff --git a/src/manifest.json b/src/manifest.json
index b8e2cfd..83b6eaa 100644
--- a/src/manifest.json
+++ b/src/manifest.json
@@ -1,6 +1,6 @@
{
"manifest_version": 3,
- "version": "1.0.0.0",
+ "version": "1.0.0.1",
"name": "GithubX",
"description": "__MSG_description__",
"default_locale": "en",
diff --git a/src/options/index.html b/src/options/index.html
index 871b9d3..f61c778 100644
--- a/src/options/index.html
+++ b/src/options/index.html
@@ -5,7 +5,7 @@
GithubX - Manage Your Stars and Gist
-
+