https://github.com/devidw/tabgod
execute any javascript on any chromium tabs - cross-tab parallel execution
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.4%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
execute any javascript on any chromium tabs - cross-tab parallel execution
Basic Info
- Host: GitHub
- Owner: devidw
- License: unlicense
- Language: TypeScript
- Default Branch: main
- Homepage: https://chromewebstore.google.com/detail/hllgifenolhiihoihflfghkfaefpjdbg
- Size: 1.85 MB
Statistics
- Stars: 159
- Watchers: 3
- Forks: 9
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
readme.md
tabgod
execute any javascript on any chromium tabs
- adds options page with
tabgod()function
ts
async function tabgod(
tabFilterFunc: (tab: chrome.tabs.Tab, ...args: unknown[]) => boolean,
exeFunc: (...args: unknown[]) => unknown,
options?: {
tabFilterArgs?: unknown[];
exeArgs?: unknown[];
evalAdd?: string;
},
): Promise<{ tabId: number; result: unknown }[]> {
//
}
examples
having chatgpt and pi talk to each other
https://github.com/devidw/tabgod/assets/68775926/d103bf67-5ed6-4e34-bb96-7b35d42f9d2d
searching same query on multiple search engines

usage
- open extensions options page
- open devtools console
- use provided
tabgod()function- choose execution targets by writing a filter function that will
include/excluce tabs based on defined criteria
- https://developer.chrome.com/docs/extensions/reference/api/tabs#type-Tab
- write any js to execute in world of targeted tabs
- choose execution targets by writing a filter function that will
include/excluce tabs based on defined criteria
js
tabgod(
(tab) => tab.url.includes("example.org"),
() => document.body.style.background = "pink",
);
notes on first release
- initial idea was to make tabgod function available in all devtools consoles for easy and direct access for developers right from every console
- the implementation added tabgod to the global window object
- however this introduced a serious security issue, since this has made the function available to websites also, allowing them to interact with other tabs, destroying the idea of secure tab origins
- thanks to danielsmc pointing it out
- this has been immediately addressed by moving the function only to the options page of the extension, and not accepting external connections in the service worker
Owner
- Name: David Wolf
- Login: devidw
- Kind: user
- Location: The Zone
- Website: https://david.wolf.gdn
- Repositories: 159
- Profile: https://github.com/devidw
// uncommenting
GitHub Events
Total
- Watch event: 4
- Fork event: 1
Last Year
- Watch event: 4
- Fork event: 1
Committers
Last synced: over 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| David Wolf | 6****w | 11 |
| Erjan K | e****x@g****m | 1 |
Issues and Pull Requests
Last synced: about 1 year ago
All Time
- Total issues: 2
- Total pull requests: 1
- Average time to close issues: about 4 hours
- Average time to close pull requests: about 4 hours
- Total issue authors: 2
- Total pull request authors: 1
- Average comments per issue: 1.5
- Average comments per pull request: 1.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 2
- Pull requests: 1
- Average time to close issues: about 4 hours
- Average time to close pull requests: about 4 hours
- Issue authors: 2
- Pull request authors: 1
- Average comments per issue: 1.5
- Average comments per pull request: 1.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- erjanmx (1)
- danielsmc (1)
- johncmunson (1)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- @types/chrome ^0.0.260 development
- @types/node ^20.11.16 development
- typescript ^5.3.3 development
- @types chrome@0.0.260 development
- @types filesystem@0.0.35 development
- @types filewriter@0.0.33 development
- @types har-format@1.2.15 development
- @types node@20.11.16 development
- typescript@5.3.3 development
- undici-types@5.26.5 development