Update Image Loader Placeholder Remover to 1.16.2
- Fix support for URLs that start with ./ or ../
This commit is contained in:
parent
f733e10bda
commit
62cbadd1ae
|
@ -3,7 +3,7 @@
|
|||
// @namespace blankie-scripts
|
||||
// @match http*://*/*
|
||||
// @grant none
|
||||
// @version 1.16.1
|
||||
// @version 1.16.2
|
||||
// @author blankie
|
||||
// @run-at document-end
|
||||
// @description Removes image loading placeholders
|
||||
|
@ -12,7 +12,9 @@
|
|||
"use strict";
|
||||
|
||||
function isUrlLike(url) {
|
||||
return url && /^(?:\/|https?:\/\/)\S+$/.test(url);
|
||||
// Example of ./path:
|
||||
// - https://projects.apnews.com/features/2023/missing-students-chronic-absenteeism/index.html
|
||||
return url && /^(?:https?:\/\/|\.{0,2}\/)\S+$/.test(url);
|
||||
}
|
||||
function findUrl(element) {
|
||||
if (window.location.host === "www.vice.com") {
|
||||
|
|
Loading…
Reference in New Issue