summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/content/PlaceHolder.js5
-rw-r--r--src/content/content.css11
2 files changed, 16 insertions, 0 deletions
diff --git a/src/content/PlaceHolder.js b/src/content/PlaceHolder.js
index 09f6767..f32c812 100644
--- a/src/content/PlaceHolder.js
+++ b/src/content/PlaceHolder.js
@@ -107,6 +107,11 @@ var PlaceHolder = (() => {
replacement.className = "__NoScript_PlaceHolder__";
cloneStyle(element, replacement);
replacement.style.backgroundImage = `url(${ICON_URL})`;
+
+ if (ns.embeddingDocument) {
+ replacement.classList.add("document");
+ }
+
replacement.href = url;
replacement.title = `${TYPE}@${url}`;
diff --git a/src/content/content.css b/src/content/content.css
index 596da6d..ddfe1b7 100644
--- a/src/content/content.css
+++ b/src/content/content.css
@@ -70,3 +70,14 @@ a.__NoScript_PlaceHolder__ > span {
overflow-wrap: break-word;
word-break: break-all;
}
+
+a.__NoScript_PlaceHolder__.document {
+ position: fixed !important;
+ top: 0 !important;
+ bottom: 0 !important;
+ left: 0 !important;
+ right: 0 !important;
+ width: 100% !important;
+ height: 100% !important;
+ margin: 0 !important;
+}