Update Image Loader Placeholder Remover to 1.12.0
- Add support for legendsoflocalization.com
This commit is contained in:
parent
f55c0c34c0
commit
dcd9c57744
|
@ -3,7 +3,7 @@
|
||||||
// @namespace blankie-scripts
|
// @namespace blankie-scripts
|
||||||
// @match http*://*/*
|
// @match http*://*/*
|
||||||
// @grant none
|
// @grant none
|
||||||
// @version 1.11.0
|
// @version 1.12.0
|
||||||
// @author blankie
|
// @author blankie
|
||||||
// @run-at document-end
|
// @run-at document-end
|
||||||
// @description Removes image loading placeholders
|
// @description Removes image loading placeholders
|
||||||
|
@ -194,9 +194,10 @@ function vulcan() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://blog.joshumax.me/general/2021/08/11/running-doom-on-captioncall.html
|
// https://blog.joshumax.me/general/2021/08/11/running-doom-on-captioncall.html
|
||||||
|
// https://legendsoflocalization.com/common-problems-when-translating-games-into-japanese/
|
||||||
// https://knowyourmeme.com/
|
// https://knowyourmeme.com/
|
||||||
// https://knowyourmeme.com/memes/saddam-husseins-hiding-place
|
// https://knowyourmeme.com/memes/saddam-husseins-hiding-place
|
||||||
function joshumax_knowyourmeme() {
|
function datasrc() {
|
||||||
for (let element of document.querySelectorAll("img[data-src]")) {
|
for (let element of document.querySelectorAll("img[data-src]")) {
|
||||||
const addLink = element.parentNode.tagName !== "A";
|
const addLink = element.parentNode.tagName !== "A";
|
||||||
const url = new URL(element.getAttribute("data-src"), location);
|
const url = new URL(element.getAttribute("data-src"), location);
|
||||||
|
@ -224,7 +225,12 @@ switch (location.host) {
|
||||||
case "www.bleepingcomputer.com": bleepingcomputer(); break;
|
case "www.bleepingcomputer.com": bleepingcomputer(); break;
|
||||||
case "securelist.com": securelist(); break;
|
case "securelist.com": securelist(); break;
|
||||||
case "vulcan.io": vulcan(); break;
|
case "vulcan.io": vulcan(); break;
|
||||||
case "blog.joshumax.me": joshumax_knowyourmeme(); break;
|
|
||||||
case "knowyourmeme.com": joshumax_knowyourmeme(); break;
|
case "blog.joshumax.me":
|
||||||
|
case "knowyourmeme.com":
|
||||||
|
case "legendsoflocalization.com":
|
||||||
|
datasrc();
|
||||||
|
break;
|
||||||
|
|
||||||
default: wordpress(); break;
|
default: wordpress(); break;
|
||||||
};
|
};
|
Loading…
Reference in New Issue