Skip to content

Commit c03d181

Browse files
committed
Version 2
1 parent f643b78 commit c03d181

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"type": "module",
3+
"version": "2.0.0",
34
"devDependencies": {
45
"@eslint/js": "9.39.1",
56
"@vitest/coverage-v8": "^4.0.18",

src/core/userscriptAdapter.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -571,9 +571,7 @@ export class UserScriptsAdapter {
571571
const enabledScripts = scripts.filter((script) => script.enabled);
572572

573573
if (!this.isSupported()) {
574-
logger.error(
575-
'Make sure to go to extension settings and enable allow user scrupts.'
576-
);
574+
logger.error('Make sure to go to extension settings and enable allow user scrupts.');
577575
return {
578576
usingUserScripts: false,
579577
};

src/manifest.chrome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "__MSG_appName__",
4-
"version": "1.1.0",
4+
"version": "2.0.0",
55
"description": "__MSG_appDescription__",
66
"default_locale": "en",
77
"permissions": [

tests/unit/userscript_adapter.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ describe('UserScriptsAdapter', () => {
8484
expect(registrations[0].runAt).toBe('document_end');
8585
expect(registrations[0].world).toBe('MAIN');
8686
expect(registrations[0].js[0].code).toContain('GM_setValue');
87-
expect(registrations[0].js[0].code).toContain('replace(/^http:\\/\\//i, \'https://\')');
87+
expect(registrations[0].js[0].code).toContain("replace(/^http:\\/\\//i, 'https://')");
8888
expect(registrations[1].world).toBe('ISOLATED');
8989

9090
expect(storageData.userScriptRegistrationIds.sort()).toEqual(['ct-us-s1', 'ct-us-s2']);
@@ -98,7 +98,7 @@ describe('UserScriptsAdapter', () => {
9898
{
9999
id: 's-esc',
100100
name: 'Escaper',
101-
code: "GM_addStyle(`.x{color:red}`); const t = `${1+1}`;",
101+
code: 'GM_addStyle(`.x{color:red}`); const t = `${1+1}`;',
102102
enabled: true,
103103
runAt: 'document_end',
104104
targetUrls: ['https://example.com/*'],

0 commit comments

Comments
 (0)