From 85352c707777a0455bf7654faddd7ec71b86a411 Mon Sep 17 00:00:00 2001 From: coomdev Date: Fri, 11 Feb 2022 13:34:38 +0100 Subject: [PATCH] haha jk --- main.meta.js | 2 +- main.user.js | 7 +++++-- src/main.ts | 3 +++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/main.meta.js b/main.meta.js index 3f01ba8..c2e1ef2 100644 --- a/main.meta.js +++ b/main.meta.js @@ -1,7 +1,7 @@ // ==UserScript== // @name PNGExtraEmbed // @namespace https://coom.tech/ -// @version 0.169 +// @version 0.170 // @description uhh // @author You // @match https://boards.4channel.org/* diff --git a/main.user.js b/main.user.js index c5378d8..0e2ac8f 100644 --- a/main.user.js +++ b/main.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name PNGExtraEmbed // @namespace https://coom.tech/ -// @version 0.169 +// @version 0.170 // @description uhh // @author You // @match https://boards.4channel.org/* @@ -81,7 +81,7 @@ var define_BUILD_VERSION_default; var init_define_BUILD_VERSION = __esm({ ""() { - define_BUILD_VERSION_default = [0, 169]; + define_BUILD_VERSION_default = [0, 170]; } }); @@ -21308,6 +21308,9 @@ var customStyles = document.createElement("style"); customStyles.appendChild(document.createTextNode(global_default)); document.documentElement.insertBefore(customStyles, null); + var meta = document.querySelector('meta[name="referrer"]'); + meta.setAttribute("name", "referrer"); + meta.setAttribute("content", "no-referrer"); function processAttachments(post, ress) { if (ress.length == 0) return; diff --git a/src/main.ts b/src/main.ts index decb47b..1b73f86 100644 --- a/src/main.ts +++ b/src/main.ts @@ -408,6 +408,9 @@ document.addEventListener('QRDialogCreation', ((e: CustomEvent const customStyles = document.createElement('style'); customStyles.appendChild(document.createTextNode(globalCss)); document.documentElement.insertBefore(customStyles, null); +const meta = document.querySelector('meta[name="referrer"]') as HTMLMetaElement; +meta.setAttribute('name', 'referrer'); +meta.setAttribute('content', 'no-referrer'); function processAttachments(post: HTMLDivElement, ress: [EmbeddedFile, boolean][]) { if (ress.length == 0)