Refactored Mike Adriano scraper. Changed logo and favicon. Added style methods to qu.

This commit is contained in:
DebaucheryLibrarian
2020-07-16 03:47:07 +02:00
parent 6584a46d53
commit 6adfded074
63 changed files with 577 additions and 332 deletions

17
src/utils/jsdom-url.js Normal file
View File

@@ -0,0 +1,17 @@
'use strict';
const { JSDOM } = require('jsdom');
const el = new JSDOM(`
<span id="url" style="background-image: url(https://w.wallhaven.cc/full/dg/wallhaven-dg7y23.jpg);">
<span id="urlQuotes" style="background-image: url('https://w.wallhaven.cc/full/dg/wallhaven-dg7y23.jpg');">
<span id="color" style="color: rgb(255, 0, 0);">
<span id="urlSpaces" style="background-image: url( https://w.wallhaven.cc/full/md/wallhaven-mdvmrm.jpg );">
<span id="colorSpaces" style="color: rgb( 255, 0, 0 );">
`).window.document;
console.log(el.querySelector('#url').style.backgroundImage);
console.log(el.querySelector('#urlQuotes').style.backgroundImage);
console.log(el.querySelector('#color').style.color);
console.log(el.querySelector('#urlSpaces').style.backgroundImage);
console.log(el.querySelector('#colorSpaces').style.color);