Skip to content

Commit

Permalink
major rewrite in svelte. optimized core tab search, added sidebar wit…
Browse files Browse the repository at this point in the history
…h vertical tabs organizer, * Scroll to and highlight the query on page, click result again,Resolve query against LLM search or Google
  • Loading branch information
vtempest committed Jul 6, 2024
1 parent 2152060 commit f8c28c8
Show file tree
Hide file tree
Showing 13 changed files with 367 additions and 354 deletions.
41 changes: 32 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,46 @@
## in10search Tab Manager AI

- Horizontal Tabs in Browser Sidepanel with Search
<p align="center">
<a href="https://chromewebstore.google.com/detail/in10search/manhemnhmipdhdpabojcplebckhckeko?authuser=2&hl=en">
<img src="https://storage.googleapis.com/web-dev-uploads/image/WlD8wC6g8khYWPJUsQceQkhXSlv1/tbyBjqi7Zu733AAKA5n4.png" />
</a>
</p>

* Horizontal Tabs in Browser Sidepanel

* Search Inside All Open Tabs Page Content

* Scroll to and highlight the query on page

* Resolve query against LLM search or Google


### Screenshot

<img src="https://i.imgur.com/tpToRRB.png">


## Ideas for Future Development


- Ask ChatGPT About Text Content of All Open Tabs
* Ask ChatGPT about Text Content of All Open Tabs

* Reader Mode to Extract main content text and cite

* Tree tab view and history view

* AI recommend [Tab Groups](https://developer.chrome.com/docs/extensions/reference/tabGroups/) (Chrome AI Experiments has similar)

- readability extract article, cite
* [Chrome Extensions API Docs](https://developer.chrome.com/docs/extensions/reference)

- scroll and highlight the query words on result
* Backup & close a read-it-later list

- tree tab view and history view
* Voice Ask with Whisper in WebGPU to Search

- autogen suggested [Tab Groups](https://developer.chrome.com/docs/extensions/reference/tabGroups/)
* Show current url & title when in full screen with sidebar

- auto keywords generator and search query builder related keywords
* Search in text of recently closed history

- backup & close a read-it-later list
* Keywords generator and search query builder related keywords

- show current url & title when full screen
* Crowdsourced bookmarking of topic outlines
55 changes: 29 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,31 @@
{
"name": "in10search-chrome",
"version": "4.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"check": "svelte-check --tsconfig ./tsconfig.json"
},
"devDependencies": {
"@crxjs/vite-plugin": "^2.0.0-beta.19",
"@sveltejs/vite-plugin-svelte": "^2.4.6",
"@tsconfig/svelte": "^5.0.2",
"@types/chrome": "^0.0.243",
"svelte": "^4.2.2",
"svelte-check": "^3.5.2",
"svelte-preprocess": "^5.0.4",
"tslib": "^2.6.2",
"typescript": "^5.2.2",
"vite": "^4.5.0"
},
"dependencies": {
"@editorjs/editorjs": "^2.28.2",
"@editorjs/underline": "^1.1.0",
"editorjs-drag-drop": "^1.1.13",
"editorjs-undo": "^2.0.24"
}
"name": "in10search-chrome",
"version": "4.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"check": "svelte-check --tsconfig ./tsconfig.json"
},
"devDependencies": {
"@crxjs/vite-plugin": "2.0.0-beta.23",
"@skeletonlabs/skeleton": "^2.9.2",
"@skeletonlabs/tw-plugin": "^0.4.0",
"@sveltejs/vite-plugin-svelte": "^3.1.0",
"@tailwindcss/forms": "^0.5.7",
"@tsconfig/svelte": "^5.0.4",
"@types/chrome": "^0.0.267",
"@types/node": "^20.12.10",
"autoprefixer": "^10.4.19",
"daisyui": "^4.10.5",
"postcss": "^8.4.38",
"postcss-load-config": "^5.1.0",
"svelte": "^4.2.15",
"svelte-check": "^3.7.1",
"svelte-preprocess": "^5.1.4",
"tailwindcss": "^3.4.3",
"tslib": "^2.6.2",
"typescript": "^5.4.5",
"vite": "^5.2.11"
}
}
13 changes: 13 additions & 0 deletions postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const tailwindcss = require("tailwindcss");
const autoprefixer = require("autoprefixer");

const config = {
plugins: [
//Some plugins, like tailwindcss/nesting, need to run before Tailwind,
tailwindcss(),
//But others, like autoprefixer, need to run after,
autoprefixer,
],
};

module.exports = config;
96 changes: 0 additions & 96 deletions src/gear/infinitescroll.js

This file was deleted.

13 changes: 10 additions & 3 deletions src/manifest.config.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { defineManifest } from "@crxjs/vite-plugin";
import packageJson from "../package.json";

const { version, name, description } = packageJson;
const { version, name } = packageJson;

// Convert from Semver (example: 0.1.0-beta6)
const [major, minor, patch] = version
.replace(/[^\d.-]+/g, "").split(/[.-]/);

export default defineManifest(async (env) => ({
"manifest_version": 3,
"name": "Tab Organizer AI",
"name": "Tab Manager AI",
version: `${major}.${minor}.${patch}`,
version_name: version,
"description": "Tab Manager AI - Browser Sidebar - Search Text Content of All Open Tabs",
Expand All @@ -35,7 +35,14 @@ export default defineManifest(async (env) => ({
"48": "src/assets/icons/icon-48.png",
"128": "src/assets/icons/icon-128.png"
},

"commands": {
"_execute_action": {
"suggested_key": {
"default": "Ctrl+Q",
"mac": "Command+B"
}
}
},
"content_scripts": [ {
"matches": ["<all_urls>"],
"js": ["src/pages/content/index.ts"]
Expand Down
5 changes: 5 additions & 0 deletions src/pages/content/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@



console.log("inputSearchbg");

// document.querySelector("textarea[name='q']").value = "searchText";



// window.addEventListener("keydown", onKeyDown, false);

Expand Down
4 changes: 4 additions & 0 deletions src/pages/sidepanel/app.pcss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/* Write your global styles here, in PostCSS syntax */
@tailwind base;
@tailwind components;
@tailwind utilities;
4 changes: 3 additions & 1 deletion src/pages/sidepanel/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import Main from '../../tabsearch/Main.svelte';

import "tailwindcss/tailwind.css";
import "./app.pcss";

function restoreMain() {
const app = new Main({
target: document.body,
props: { context: 'popup' },
});
}

Expand Down
Loading

0 comments on commit f8c28c8

Please sign in to comment.