Add page referrer on Gelbooru
parent
6437c21d95
commit
0232ac2d8c
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "neo-scraper",
|
"name": "neo-scraper",
|
||||||
"version": "0.11.0",
|
"version": "0.11.1",
|
||||||
"description": "Scrape a booru-like post object from the DOM.",
|
"description": "Scrape a booru-like post object from the DOM.",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
|
|
||||||
|
|
@ -179,6 +179,7 @@ export default class Gelbooru extends ScrapeEngineBase {
|
||||||
}
|
}
|
||||||
// End of code duplication with Danbooru engine.
|
// End of code duplication with Danbooru engine.
|
||||||
|
|
||||||
|
post.referrer = document.location.origin;
|
||||||
result.tryAddPost(post);
|
result.tryAddPost(post);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue