|
|
|
@ -19,7 +19,7 @@ module.exports = function (processorConfig) {
|
|
|
|
|
|
|
|
|
|
|
|
// Find the active image, surround it in an anchor tag, then click it.
|
|
|
|
// Find the active image, surround it in an anchor tag, then click it.
|
|
|
|
async function downloadImage(id) {
|
|
|
|
async function downloadImage(id) {
|
|
|
|
const imgWrap = document.elementFromPoint(300, 300);
|
|
|
|
const imgWrap = document.elementFromPoint(window.innerWidth / 2, 300);
|
|
|
|
const children = imgWrap.querySelectorAll('.pswp__img');
|
|
|
|
const children = imgWrap.querySelectorAll('.pswp__img');
|
|
|
|
const img = children[children.length - 1];
|
|
|
|
const img = children[children.length - 1];
|
|
|
|
// debugger;
|
|
|
|
// debugger;
|
|
|
|
|