summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhackademix2018-09-03 14:04:00 +0200
committerhackademix2018-09-03 14:04:00 +0200
commit16cdbbe1cb7402ed795923128a4bc7bfb4415f1e (patch)
treec2cdc535df9fc2863a368582664f327206b7b042 /src
parentb5d1fe6269ac4069be5262eb0130df7aaa74963d (diff)
downloadnoscript-16cdbbe1cb7402ed795923128a4bc7bfb4415f1e.tar.gz
noscript-16cdbbe1cb7402ed795923128a4bc7bfb4415f1e.tar.xz
noscript-16cdbbe1cb7402ed795923128a4bc7bfb4415f1e.zip
Full-page placeholders for embedding documents.
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;
+}