Build browser extensions easily with Blazor.
MIT License
Bot releases are visible (Hide)
Published by mingyaulee 12 months ago
Fixed paths in scoped CSS not replaced (Issue https://github.com/mingyaulee/Blazor.BrowserExtension/issues/77)
Full Changelog: https://github.com/mingyaulee/Blazor.BrowserExtension/compare/v0.12.1...v0.12.2
Published by mingyaulee 12 months ago
manifest.json
Full Changelog: https://github.com/mingyaulee/Blazor.BrowserExtension/compare/v0.12.0...v0.12.1
Published by mingyaulee almost 1 year ago
Breaking changes:
Full Changelog: https://github.com/mingyaulee/Blazor.BrowserExtension/compare/v0.11.0...v0.12.0
Published by mingyaulee over 1 year ago
Published by mingyaulee over 1 year ago
Published by mingyaulee almost 2 years ago
Updated blazor.boot.json
replacement tokens as optional
Published by mingyaulee almost 2 years ago
Disabled Blazor caching by default to prevent taking up storage when loaded in content scripts.
Published by mingyaulee almost 2 years ago
Fixed paths in blazor.boot.json not replaced (Issue #46)
Published by mingyaulee about 2 years ago
Fixed publish process miss out removing some compressed files
Published by mingyaulee about 2 years ago
Published by mingyaulee over 2 years ago
Added .Net 7 as target framework
Published by mingyaulee almost 3 years ago
Fixed error when processing JSON static web assets manifest which has existing content or framework node (Issue #36)
Published by mingyaulee almost 3 years ago
Published by mingyaulee almost 3 years ago
Published by mingyaulee almost 3 years ago
Published by mingyaulee about 3 years ago
Breaking changes:
app.js
pre-initialization scriptContentScript.js
and Core.js
is changed from "BrowserExtensionScripts" to "content/Blazor.BrowserExtension"Migration Guide:
Update Program.cs
to remove the configuration action in the .AddBrowserExtensionServices()
parameter
// Before
builder.Services.AddBrowserExtensionServices(options =>
{
options.ProjectNamespace = typeof(Program).Namespace;
});
// After
builder.Services.AddBrowserExtensionServices();
Update index.html
and manifest.json
and anywhere with reference to the scripts from this package from "BrowserExtensionScripts/" to "content/Blazor.BrowserExtension/"
<!-- Before -->
<script src="BrowserExtensionScripts/Core.js"></script>
<!-- After -->
<script src="content/Blazor.BrowserExtension/Core.js"></script>
"BrowserExtensionScripts/*" can be removed from the web_accessible_resources
key in manifest.json
Projects with content scripts
app.js
under the directory wwwroot
if (globalThis.BlazorBrowserExtension.BrowserExtension.Mode === globalThis.BlazorBrowserExtension.Modes.ContentScript) {
const appDiv = document.createElement("div");
appDiv.id = "My_Unique_Extension_App_Id"; // this ID should be the same as the container ID in the index.html file
document.body.appendChild(appDiv);
}
web_accessible_resources
key in manifest.json
Projects with custom initialization behaviour
Move the initialization logic into app.js
file. Refer to the readme to read on the way to change initialization behaviour in this version.
Published by mingyaulee about 3 years ago
Fix JsHttpClient request headers in fetch options
Published by mingyaulee about 3 years ago
Fix JSON StaticWebAssets manifest parser relative directory to preserve folder structure
Published by mingyaulee about 3 years ago