Skip to content

Commit 2d62c87

Browse files
Release build 4.4.1 [ci release]
1 parent 75fee53 commit 2d62c87

File tree

10 files changed

+319
-149
lines changed

10 files changed

+319
-149
lines changed

Sources/ContentScopeScripts/dist/contentScope.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6014,7 +6014,9 @@
60146014
* @param {string} rules[].type
60156015
*/
60166016
function injectStyleTag (rules) {
6017-
const styleTag = document.createElement('style');
6017+
const styleTag = document.createElement('link');
6018+
styleTag.setAttribute('rel', 'stylesheet');
6019+
styleTag.setAttribute('type', 'text/css');
60186020
let styleTagContents = '';
60196021

60206022
rules.forEach((rule, i) => {
@@ -6026,7 +6028,7 @@
60266028
});
60276029

60286030
styleTagContents = styleTagContents.concat('{display:none!important;min-height:0!important;height:0!important;}');
6029-
styleTag.innerText = styleTagContents;
6031+
styleTag.href = 'data:text/css,' + encodeURIComponent(styleTagContents);
60306032

60316033
document.head.appendChild(styleTag);
60326034
}

build/android/contentScope.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6014,7 +6014,9 @@
60146014
* @param {string} rules[].type
60156015
*/
60166016
function injectStyleTag (rules) {
6017-
const styleTag = document.createElement('style');
6017+
const styleTag = document.createElement('link');
6018+
styleTag.setAttribute('rel', 'stylesheet');
6019+
styleTag.setAttribute('type', 'text/css');
60186020
let styleTagContents = '';
60196021

60206022
rules.forEach((rule, i) => {
@@ -6026,7 +6028,7 @@
60266028
});
60276029

60286030
styleTagContents = styleTagContents.concat('{display:none!important;min-height:0!important;height:0!important;}');
6029-
styleTag.innerText = styleTagContents;
6031+
styleTag.href = 'data:text/css,' + encodeURIComponent(styleTagContents);
60306032

60316033
document.head.appendChild(styleTag);
60326034
}

build/chrome-mv3/inject.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5948,7 +5948,9 @@
59485948
* @param {string} rules[].type
59495949
*/
59505950
function injectStyleTag (rules) {
5951-
const styleTag = document.createElement('style');
5951+
const styleTag = document.createElement('link');
5952+
styleTag.setAttribute('rel', 'stylesheet');
5953+
styleTag.setAttribute('type', 'text/css');
59525954
let styleTagContents = '';
59535955

59545956
rules.forEach((rule, i) => {
@@ -5960,7 +5962,7 @@
59605962
});
59615963

59625964
styleTagContents = styleTagContents.concat('{display:none!important;min-height:0!important;height:0!important;}');
5963-
styleTag.innerText = styleTagContents;
5965+
styleTag.href = 'data:text/css,' + encodeURIComponent(styleTagContents);
59645966

59655967
document.head.appendChild(styleTag);
59665968
}

build/chrome/inject.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/firefox/inject.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6024,7 +6024,9 @@
60246024
* @param {string} rules[].type
60256025
*/
60266026
function injectStyleTag (rules) {
6027-
const styleTag = document.createElement('style');
6027+
const styleTag = document.createElement('link');
6028+
styleTag.setAttribute('rel', 'stylesheet');
6029+
styleTag.setAttribute('type', 'text/css');
60286030
let styleTagContents = '';
60296031

60306032
rules.forEach((rule, i) => {
@@ -6036,7 +6038,7 @@
60366038
});
60376039

60386040
styleTagContents = styleTagContents.concat('{display:none!important;min-height:0!important;height:0!important;}');
6039-
styleTag.innerText = styleTagContents;
6041+
styleTag.href = 'data:text/css,' + encodeURIComponent(styleTagContents);
60406042

60416043
document.head.appendChild(styleTag);
60426044
}

build/integration/contentScope.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5927,7 +5927,9 @@
59275927
* @param {string} rules[].type
59285928
*/
59295929
function injectStyleTag (rules) {
5930-
const styleTag = document.createElement('style');
5930+
const styleTag = document.createElement('link');
5931+
styleTag.setAttribute('rel', 'stylesheet');
5932+
styleTag.setAttribute('type', 'text/css');
59315933
let styleTagContents = '';
59325934

59335935
rules.forEach((rule, i) => {
@@ -5939,7 +5941,7 @@
59395941
});
59405942

59415943
styleTagContents = styleTagContents.concat('{display:none!important;min-height:0!important;height:0!important;}');
5942-
styleTag.innerText = styleTagContents;
5944+
styleTag.href = 'data:text/css,' + encodeURIComponent(styleTagContents);
59435945

59445946
document.head.appendChild(styleTag);
59455947
}

build/windows/contentScope.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6016,7 +6016,9 @@
60166016
* @param {string} rules[].type
60176017
*/
60186018
function injectStyleTag (rules) {
6019-
const styleTag = document.createElement('style');
6019+
const styleTag = document.createElement('link');
6020+
styleTag.setAttribute('rel', 'stylesheet');
6021+
styleTag.setAttribute('type', 'text/css');
60206022
let styleTagContents = '';
60216023

60226024
rules.forEach((rule, i) => {
@@ -6028,7 +6030,7 @@
60286030
});
60296031

60306032
styleTagContents = styleTagContents.concat('{display:none!important;min-height:0!important;height:0!important;}');
6031-
styleTag.innerText = styleTagContents;
6033+
styleTag.href = 'data:text/css,' + encodeURIComponent(styleTagContents);
60326034

60336035
document.head.appendChild(styleTag);
60346036
}

0 commit comments

Comments
 (0)