Browser extension that demonstrates the Web Annotation Discovery mechanism: subscribe to people’s annotation collections/‘feeds’, to see their notes on the web; and create & publish annotations yourself.

web-annotation-discovery-we.../src/ manifest.json.ts
45 lines
1.0 KiB

  1. import type { Manifest } from 'webextension-polyfill';
  2. import { version } from '../package.json';
  3. const manifest: () => Manifest.WebExtensionManifest = () => ({
  4. name: 'Web Annotation Discovery',
  5. version,
  6. manifest_version: 2,
  7. icons: {
  8. '512': 'assets/icon/icon.svg',
  9. '256': 'assets/icon/icon256.png',
  10. '128': 'assets/icon/icon128.png',
  11. '96': 'assets/icon/icon96.png',
  12. '48': 'assets/icon/icon48.png',
  13. },
  14. browser_action: {
  15. default_icon: 'assets/icon/icon.svg',
  16. default_popup: 'popup/index.html',
  17. },
  18. background: {
  19. scripts: ['webextension-polyfill.ts', 'background/index.ts'],
  20. },
  21. content_scripts: [
  22. {
  23. matches: ['<all_urls>'],
  24. js: ['content_script/index.tsx'],
  25. css: ['generated:content_script/style.css'],
  26. },
  27. ],
  28. permissions: [
  29. 'alarms',
  30. '<all_urls>',
  31. 'contextMenus',
  32. 'notifications',
  33. 'webNavigation',
  34. 'webRequest',
  35. ],
  36. browser_specific_settings: {
  37. gecko: {
  38. id: 'web-annotation-discovery@extension',
  39. },
  40. },
  41. });
  42. export default manifest;