Compare commits

..

2 Commits

Author SHA1 Message Date
blankie 4cb86951c2
Update Image Loader Placeholder Remover to 1.8
- Add support for vulcan.io
2023-06-11 18:04:02 +07:00
blankie 1f702ea34a
Update Elements with ID lister to 1.0.9
- Fix background on https://example.com
2023-06-11 18:03:21 +07:00
2 changed files with 24 additions and 2 deletions

View File

@ -6,7 +6,7 @@
// @grant GM_getResourceURL
// @require https://cdn.jsdelivr.net/npm/dialog-polyfill@0.5.6/dist/dialog-polyfill.min.js#sha256-cec1a2e320aab77e28bad4ad6bc5e532a6ef5757345c19bb5158aa880b7162a6
// @resource dialogPolyfillCSS https://cdn.jsdelivr.net/npm/dialog-polyfill@0.5.6/dist/dialog-polyfill.min.css#sha256-4dcb3ab62e545f30bf06a4824c253641ee889ca85ca28d5447590557922496ab
// @version 1.0.8
// @version 1.0.9
// @author blankie
// @description A userscript that adds a "Show elements popup" option to the Monkey Menu which lists all elements with an ID
// @inject-into content
@ -19,6 +19,7 @@ const ACCENT_COLOR = "#962AC3";
const BRIGHT_ACCENT_COLOR = "#DE6DE6";
const DIALOG_WRAPPER_CSS = `
all: unset;
position: fixed;
top: 0;
width: 100%;

View File

@ -3,7 +3,7 @@
// @namespace blankie-scripts
// @match http*://*/*
// @grant none
// @version 1.7
// @version 1.8
// @author blankie
// @run-at document-end
// @description Removes image loading placeholders
@ -173,6 +173,26 @@ function securelist() {
document.head.appendChild(style);
}
// https://vulcan.io/blog/
// https://vulcan.io/blog/ai-hallucinations-package-risk
function vulcan() {
for (let element of document.querySelectorAll("img[nitro-lazy-src]")) {
const addLink = element.parentNode.tagName !== "A";
const url = new URL(element.getAttribute("nitro-lazy-src"), location);
if (addLink) {
const newElement = element.cloneNode();
newElement.src = url.href;
const wrapper = document.createElement("a");
wrapper.href = url.href;
wrapper.appendChild(newElement);
element.replaceWith(wrapper);
} else {
element.src = url.href;
}
}
}
switch (location.host) {
case "closeronline.co.uk": closeronline(); break;
case "www.indiatoday.in": indiatoday(); break;
@ -182,5 +202,6 @@ switch (location.host) {
case "www.theautopian.com": theautopian(); break;
case "www.bleepingcomputer.com": bleepingcomputer(); break;
case "securelist.com": securelist(); break;
case "vulcan.io": vulcan(); break;
default: wordpress(); break;
};