Browse Source

Unfuck captchas but break hotlinked videos again

pull/46/head
coomdev 2 years ago
parent
commit
cc78ea6675
  1. 2
      main.meta.js
  2. 7
      main.user.js
  3. 3
      src/main.ts

2
main.meta.js

@ -1,7 +1,7 @@
// ==UserScript==
// @name PNGExtraEmbed
// @namespace https://coom.tech/
// @version 0.168
// @version 0.169
// @description uhh
// @author You
// @match https://boards.4channel.org/*

7
main.user.js

@ -1,7 +1,7 @@
// ==UserScript==
// @name PNGExtraEmbed
// @namespace https://coom.tech/
// @version 0.168
// @version 0.169
// @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>"() {
define_BUILD_VERSION_default = [0, 168];
define_BUILD_VERSION_default = [0, 169];
}
});
@ -21308,9 +21308,6 @@
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;

3
src/main.ts

@ -408,9 +408,6 @@ document.addEventListener('QRDialogCreation', <any>((e: CustomEvent<HTMLElement>
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)

Loading…
Cancel
Save