1
0
Gildas 1 сар өмнө
parent
commit
9eaabcc57e

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
lib/chrome-browser-polyfill.js


Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
lib/single-file-extension-background.js


Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
lib/single-file-extension-bootstrap.js


+ 3 - 9
lib/single-file-extension-editor.js

@@ -1196,7 +1196,7 @@
 					infobarPositionBottom = message.infobarPositionBottom;
 					infobarPositionLeft = message.infobarPositionLeft;
 					infobarPositionRight = message.infobarPositionRight;
-					let content = getContent(message.compressHTML, message.updatedResources);
+					let content = getContent(message.compressHTML);
 					if (initScriptContent) {
 						content = content.replace(/<script data-template-shadow-root src.*?<\/script>/g, initScriptContent);
 					}
@@ -2115,7 +2115,7 @@
 				previousContent = document.documentElement.cloneNode(true);
 				deserializeShadowRoots(document);
 			} else {
-				previousContent = getContent(false, []);
+				previousContent = getContent(false);
 			}
 			const shadowRoots = {};
 			const classesToPreserve = ["single-file-highlight", "single-file-highlight-yellow", "single-file-highlight-green", "single-file-highlight-pink", "single-file-highlight-blue"];
@@ -2222,7 +2222,7 @@
 			}
 		}
 
-		function getContent(compressHTML, updatedResources) {
+		function getContent(compressHTML) {
 			unhighlightCutElement();
 			serializeShadowRoots(document);
 			const doc = document.cloneNode(true);
@@ -2263,12 +2263,6 @@
 				element.style.removeProperty("-sf-" + pointerEvents);
 			});
 			doc.body.removeAttribute("contentEditable");
-			const newResources = Object.keys(updatedResources).filter(url => updatedResources[url].type == "stylesheet").map(url => updatedResources[url]);
-			newResources.forEach(resource => {
-				const element = doc.createElement("style");
-				doc.body.appendChild(element);
-				element.textContent = resource.content;
-			});
 			if (pageCompressContent) {
 				const pageFilename = pageResources
 					.filter(resource => resource.filename.endsWith("index.html"))

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
lib/single-file-extension.js


+ 1 - 1
manifest.json

@@ -9,7 +9,7 @@
 		"64": "src/ui/resources/icon_64.png",
 		"128": "src/ui/resources/icon_128.png"
 	},
-	"version": "1.22.83",
+	"version": "1.22.84",
 	"description": "__MSG_extensionDescription__",
 	"content_scripts": [
 		{

+ 11 - 37
package-lock.json

@@ -88,7 +88,7 @@
 				"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
 			}
 		},
-		"node_modules/@eslint/config-helpers/node_modules/@eslint/core": {
+		"node_modules/@eslint/core": {
 			"version": "0.17.0",
 			"resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz",
 			"integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==",
@@ -101,19 +101,6 @@
 				"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
 			}
 		},
-		"node_modules/@eslint/core": {
-			"version": "0.16.0",
-			"resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.16.0.tgz",
-			"integrity": "sha512-nmC8/totwobIiFcGkDza3GIKfAw1+hLiYVrh3I1nIomQ8PEr5cxg34jnkmGawul/ep52wGRAcyeDCNtWKSOj4Q==",
-			"dev": true,
-			"license": "Apache-2.0",
-			"dependencies": {
-				"@types/json-schema": "^7.0.15"
-			},
-			"engines": {
-				"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
-			}
-		},
 		"node_modules/@eslint/eslintrc": {
 			"version": "3.3.1",
 			"resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz",
@@ -139,9 +126,9 @@
 			}
 		},
 		"node_modules/@eslint/js": {
-			"version": "9.38.0",
-			"resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.38.0.tgz",
-			"integrity": "sha512-UZ1VpFvXf9J06YG9xQBdnzU+kthors6KjhMAl6f4gH4usHyh31rUf2DLGInT8RFYIReYXNSydgPY0V2LuWgl7A==",
+			"version": "9.39.0",
+			"resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.0.tgz",
+			"integrity": "sha512-BIhe0sW91JGPiaF1mOuPy5v8NflqfjIcDNpC+LbW9f609WVRX1rArrhi6Z2ymvrAry9jw+5POTj4t2t62o8Bmw==",
 			"dev": true,
 			"license": "MIT",
 			"engines": {
@@ -175,19 +162,6 @@
 				"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
 			}
 		},
-		"node_modules/@eslint/plugin-kit/node_modules/@eslint/core": {
-			"version": "0.17.0",
-			"resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz",
-			"integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==",
-			"dev": true,
-			"license": "Apache-2.0",
-			"dependencies": {
-				"@types/json-schema": "^7.0.15"
-			},
-			"engines": {
-				"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
-			}
-		},
 		"node_modules/@humanfs/core": {
 			"version": "0.19.1",
 			"resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz",
@@ -903,20 +877,20 @@
 			}
 		},
 		"node_modules/eslint": {
-			"version": "9.38.0",
-			"resolved": "https://registry.npmjs.org/eslint/-/eslint-9.38.0.tgz",
-			"integrity": "sha512-t5aPOpmtJcZcz5UJyY2GbvpDlsK5E8JqRqoKtfiKE3cNh437KIqfJr3A3AKf5k64NPx6d0G3dno6XDY05PqPtw==",
+			"version": "9.39.0",
+			"resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.0.tgz",
+			"integrity": "sha512-iy2GE3MHrYTL5lrCtMZ0X1KLEKKUjmK0kzwcnefhR66txcEmXZD2YWgR5GNdcEwkNx3a0siYkSvl0vIC+Svjmg==",
 			"dev": true,
 			"license": "MIT",
 			"dependencies": {
 				"@eslint-community/eslint-utils": "^4.8.0",
 				"@eslint-community/regexpp": "^4.12.1",
 				"@eslint/config-array": "^0.21.1",
-				"@eslint/config-helpers": "^0.4.1",
-				"@eslint/core": "^0.16.0",
+				"@eslint/config-helpers": "^0.4.2",
+				"@eslint/core": "^0.17.0",
 				"@eslint/eslintrc": "^3.3.1",
-				"@eslint/js": "9.38.0",
-				"@eslint/plugin-kit": "^0.4.0",
+				"@eslint/js": "9.39.0",
+				"@eslint/plugin-kit": "^0.4.1",
 				"@humanfs/node": "^0.16.6",
 				"@humanwhocodes/module-importer": "^1.0.1",
 				"@humanwhocodes/retry": "^0.4.2",

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно