[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Gavin D. Smith |
Date: |
Wed, 30 Nov 2022 13:36:43 -0500 (EST) |
branch: old/qt-info
commit 33e1e5e11ad924f783bf0c23d1b64770912942d9
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sat Apr 20 10:03:40 2019 +0100
avoid injecting into about:blank with greasemonkey metadata
---
js/docbrowser/mainwindow.cpp | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/js/docbrowser/mainwindow.cpp b/js/docbrowser/mainwindow.cpp
index 8f64730fcf..926b3dfb2a 100644
--- a/js/docbrowser/mainwindow.cpp
+++ b/js/docbrowser/mainwindow.cpp
@@ -42,7 +42,10 @@ MainWindow::MainWindow(QWidget *parent) :
ui->webEngineView->setPage(page);
- load_url (QString("file:") + this->datadir + "/test/hello/index.html");
+#define MANUAL "elisp"
+
+ qDebug() << "LOAD URL";
+ load_url (QString("file:") + this->datadir + "/test/" MANUAL
"/index.html");
}
void
@@ -109,6 +112,10 @@ MainWindow::setup_profile (QWebEngineProfile *profile)
QString config =
R"(
+// ==UserScript==
+// @exclude about:blank
+// ==/UserScript==
+
"use strict"; /* This must be the first thing in the script. */
var INFO_CONFIG = {
- [no subject], (continued)
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject],
Gavin D. Smith <=
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30