Update neo-scraper (adds Zerochan support)
parent
90bb7475a7
commit
61916415f8
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "szuru-chrome",
|
"name": "szuru-chrome",
|
||||||
"version": "0.1.2",
|
"version": "0.1.3",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
@ -4036,9 +4036,9 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"neo-scraper": {
|
"neo-scraper": {
|
||||||
"version": "0.1.0",
|
"version": "0.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/neo-scraper/-/neo-scraper-0.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/neo-scraper/-/neo-scraper-0.2.0.tgz",
|
||||||
"integrity": "sha512-XfSFRKwB9vVldWGPecOxWeMfBfNkhOklPbb4qYknnsyW7gkbudY5L3VkqM8DFnsvXyXEGW2rFTsc1JTfigypKg=="
|
"integrity": "sha512-trO7FNdlXnxifI/XY/DBeG5JvHkf+wtEvlPO3gZeVhKFIRcmiA3mRIc4q6T/ffSGCz4a5q6MYLo7SUeJFhK/FQ=="
|
||||||
},
|
},
|
||||||
"nice-try": {
|
"nice-try": {
|
||||||
"version": "1.0.5",
|
"version": "1.0.5",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "szuru-chrome",
|
"name": "szuru-chrome",
|
||||||
"version": "0.1.2",
|
"version": "0.1.3",
|
||||||
"description": "Import media from various sites into szurubooru",
|
"description": "Import media from various sites into szurubooru",
|
||||||
"author": "neobooru",
|
"author": "neobooru",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^0.19.0",
|
"axios": "^0.19.0",
|
||||||
"neo-scraper": "^0.1.0",
|
"neo-scraper": "^0.2.0",
|
||||||
"ts-optchain": "^0.1.8",
|
"ts-optchain": "^0.1.8",
|
||||||
"vue": "^2.6.10",
|
"vue": "^2.6.10",
|
||||||
"webextension-polyfill": "^0.3.1"
|
"webextension-polyfill": "^0.3.1"
|
||||||
|
|
|
||||||
|
|
@ -123,7 +123,7 @@ export default Vue.extend({
|
||||||
}))[0];
|
}))[0];
|
||||||
|
|
||||||
// Send 'grab_post' to the content script on the active tab
|
// Send 'grab_post' to the content script on the active tab
|
||||||
const x = (await browser.tabs.sendMessage(activeTab.id!, "grab_post"));
|
const x = await browser.tabs.sendMessage(activeTab.id!, "grab_post");
|
||||||
// We need to create a new ScrapeResults object and fill it with our data, because the get_posts()
|
// We need to create a new ScrapeResults object and fill it with our data, because the get_posts()
|
||||||
// method gets 'lost' when sent from the contentscript to the popup (it gets JSON.stringified and any prototype defines are lost there)
|
// method gets 'lost' when sent from the contentscript to the popup (it gets JSON.stringified and any prototype defines are lost there)
|
||||||
const res = Object.assign(new ScrapeResults(), x);
|
const res = Object.assign(new ScrapeResults(), x);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue