EmbeddedBrowserIntellijPlugin
This is a plugin for Intellij providing a browser embedded into tool window so that you can watch cat videos while your Spring context is starting. Inspired by https://github.com/Jonatha1983/GIdeaBrowser.
Installation
-
Using IDE built-in plugin system:
Settings/Preferences > Plugins > Marketplace > Search for "EmbeddedBrowser" > Install Plugin
-
Manually:
Download the latest release and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...
Configuration
As for now the plugin options can be set only by editing .idea/workspace.xml
(remember to close the IDE before editing it).
You can add following optional properties to PropertiesComponent in .idea/workspace.xml
:
com.github.plaskowski.embeddedbrowserintellijplugin.initial_url
- the initial URL to loadcom.github.plaskowski.embeddedbrowserintellijplugin.cache_path
- a folder where browser should store its state- configure this if you want the browser state (sessions, cookies) to persist between IDE restarts
⚠️ this may not be secure, use it at your own risk
com.github.plaskowski.embeddedbrowserintellijplugin.user_agent
- custom User-Agent header- set mobile-like User-Agent to browse sites in their mobile versions that better fit limited tool window space
⚠️ WARNINGcache_path
anduser_agent
modify global CEF settings so other CEF instances in IDE will be affected
Example:
<component name="PropertiesComponent">
...
<property name="com.github.plaskowski.embeddedbrowserintellijplugin.initial_url" value="https://youtube.com" />
<property name="com.github.plaskowski.embeddedbrowserintellijplugin.cache_path" value="$USER_HOME$/.cef_cache" />
<property name="com.github.plaskowski.embeddedbrowserintellijplugin.user_agent"
value="Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1" />
...
</component>
Roadmap
- Settings UI
- ...?
Resources about plugin development
- https://plugins.jetbrains.com/docs/intellij/getting-started.html
- https://plugins.jetbrains.com/docs/intellij/welcome.html
- https://github.com/JetBrains/intellij-sdk-code-samples
- https://github.com/JetBrains/intellij-platform-plugin-template
- https://blog.jetbrains.com/platform/
- https://plugins.jetbrains.com/intellij-platform-explorer/
References
- cat in the plugin logo comes from Noto Emoji set by Google Inc (Apache 2.0 license)
Plugin based on the IntelliJ Platform Plugin Template.