diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 59315539..498f2e00 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -4,10 +4,11 @@ New features: * Support for images stored within SVG tags (#268) * Option to allow rules to be run under archive.org's Wayback Machine (disabled by default) + * Option to bypass CSP restrictions when loading 3rd-party libraries from the userscript (disabled by default) Improvements: - * Various improvements/fixes to existing rules (including Flickr, Instagram, Shopify, TikTok, Twitch) + * Various improvements/fixes to existing rules (including Flickr, Instagram, Shopify, Snapchat, TikTok, Twitch) Special thanks to Flame, TheOne, fyhtma, Tenome, Freso, IZeeLikeEyeZee, TristanWasTaken, sn3akyb3ar, remlap for their contributions and reports for this release diff --git a/src/userscript.ts b/src/userscript.ts index 23070bd0..9296b6b6 100644 --- a/src/userscript.ts +++ b/src/userscript.ts @@ -13359,6 +13359,7 @@ var $$IMU_EXPORT$$; allow_apicalls: true, allow_thirdparty_libs: is_userscript ? false : true, custom_xhr_for_lib: is_extension ? true : false, + bypass_csp_for_lib: false, use_webarchive_for_lib: false, lib_integrity_check: true, allow_thirdparty_code: false, @@ -16257,6 +16258,23 @@ var $$IMU_EXPORT$$; }, needrefresh: true // todo: clear the library cache (or only for xhr ones) }, + bypass_csp_for_lib: { + name: "Bypass CSP for libraries", + description: "Tries loading the 3rd-party libraries using a `