Code Monkey home page Code Monkey logo

Comments (8)

deathau avatar deathau commented on September 24, 2024

Can you check if you get any errors in the developer console?

First check the page one by right-clicking anywhere on the page, choosing "inspect element", then in the developer tools that pop up, switch to the Console tab. Try opening the extension via the icon again and see if any errors appear.

Similarly, see if you can see any errors in the background page by opening up brave://extensions/, turn developer mode on at the top right, click on the "background page" link for MarkDownload and again going to the console tab. Then in the main window, go any webpage and try opening the extension via the button and see if any errors pop up in that background console.

(apologies if this is too much detail, I don't have any way of knowing how much of that you already know ๐Ÿ˜…)

I downloaded Brave on Windows and it seemed to be fine, but I don't have any Linux machines to test there. I'm hoping there's an error in the console I can work with ๐Ÿคž

from markdownload.

theesp avatar theesp commented on September 24, 2024

Hi, thank you for your reaction and troubles. This is what I see in console whe trying to markdownload the frontpage of the NYT:

www.nytimes.com/:1 Uncaught SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at XMLHttpRequest.o.onreadystatechange (www.nytimes.com/:172)
inpage.js:1 MetaMask: MetaMask will soon stop reloading pages on network change.
For more information, see: https://docs.metamask.io/guide/ethereum-provider.html#ethereum-autorefreshonnetworkchange
Set 'ethereum.autoRefreshOnNetworkChange' to 'false' to silence this warning.
(anonymous) @ inpage.js:1
main-e3ed66276bf94e2319cf.js:33 <!--
0000000 000 0000000
111111111 11111111100 000 111111111
00000 111111111111111111 00000 000000
000 1111111111111111111111111100000 000
000 1111 1111111111111111100 000
000 11 0 1111111100 000
000 1 00 1 000
000 00 00 1 000
000 000 00000 1 000
00000 0000 00000000 1 00000
11111 000 00 000000 000 11111
00000 0000 000000 00000 00000
000 10000 000000 000 0000
000 00000 000000 1 000
000 000000 10000 1 0 000
000 1000000 00 1 00 000
000 1111111 1 0000 000
000 1111111100 000000 000
0000 111111111111111110000000 0000
111111111 111111111111100000 111111111
0000000 00000000 0000000

  NYTimes.com: All the code that's fit to printf()
  We're hiring: https://nytimes.wd5.myworkdayjobs.com/Tech

-->
(unknown) et2 snippet should only load once per page
(anonymous)
inpage.js:1 MetaMask: MetaMask will soon stop reloading pages on network change.
For more information, see: https://docs.metamask.io/guide/ethereum-provider.html#ethereum-autorefreshonnetworkchange
Set 'ethereum.autoRefreshOnNetworkChange' to 'false' to silence this warning.
(anonymous) @ inpage.js:1
(index):1 [Intervention] An element was lazyloaded with loading=lazy, but had no dimensions specified. Specifying dimensions improves performance. See https://crbug.com/954323
home-21a4fbbc33e533d1c651.js:1 [interactive] run: 100000007024018
vhs.min.js:1 vhs For complete VHS debug info: localStorage.debug = 'vhs*'
main-e3ed66276bf94e2319cf.js:33 Unhandled Promise Rejection (unhandledrejection): Error: SyntaxError: Unexpected end of JSON input
at main-e3ed66276bf94e2319cf.js:67
(anonymous) @ main-e3ed66276bf94e2319cf.js:33
vhs.min.js:1 vhs For complete VHS debug info: localStorage.debug = 'vhs*'
www.nytimes.com/:1 Uncaught SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at XMLHttpRequest.a.onload (:1:462)
DevTools failed to load SourceMap: Could not load content for chrome-extension://odbfpeeihdkbihmopkbjmoonfanlbfcl/sourcemaps/contentscript.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load SourceMap: Could not load content for chrome-extension://odbfpeeihdkbihmopkbjmoonfanlbfcl/sourcemaps/inpage.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
home-21a4fbbc33e533d1c651.js:1 [interactive] stash: 100000007342981
home-21a4fbbc33e533d1c651.js:1 [interactive] stash: 100000007424663
home-21a4fbbc33e533d1c651.js:1 [interactive] stash: 100000007024018
home-21a4fbbc33e533d1c651.js:1 [interactive] remount: 100000007342981
home-21a4fbbc33e533d1c651.js:1 [interactive] remount: 100000007424663
DevTools failed to load SourceMap: Could not load content for chrome-extension://odbfpeeihdkbihmopkbjmoonfanlbfcl/sourcemaps/contentscript.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load SourceMap: Could not load content for chrome-extension://odbfpeeihdkbihmopkbjmoonfanlbfcl/sourcemaps/inpage.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load SourceMap: Could not load content for https://www.nytimes.com/runtime~adslot-4423b66a686225b0de4c.js.map: HTTP error: status code 403, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://www.nytimes.com/vi-assets/static-assets/adslot-71d90833b72a88fcc3c9.js.map: HTTP error: status code 403, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://www.nytimes.com/runtime~main-e711fb2fd4484e5f3a2c.js.map: HTTP error: status code 403, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://www.nytimes.com/vi-assets/static-assets/vendor-b414d56d6af1f806e64b.js.map: HTTP error: status code 403, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://www.nytimes.com/vi-assets/static-assets/home-21a4fbbc33e533d1c651.js.map: HTTP error: status code 403, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://www.nytimes.com/vi-assets/static-assets/main-e3ed66276bf94e2319cf.js.map: HTTP error: status code 403, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://static01.nyt.com/elections-assets/2020/assets/48f81a/js/default/embeds/spotlight-footer.js.map: HTTP error: status code 403, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for chrome-extension://hgmhmanijnjhaffoampdlllchpolkdnj/js/lib/purify.min.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load SourceMap: Could not load content for https://www.nytimes.com/vi-assets/static-assets/vendors~audio~capsule~collections~home~liveblog~paidpost~regionCapsule~story~trending~video-6da672789941ef94147d.js.map: HTTP error: status code 403, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://www.nytimes.com/vi-assets/static-assets/vendors~audio~capsule~collections~home~liveblog~paidpost~regionCapsule~story~video-8b8a9fe47b1c4a0bda92.js.map: HTTP error: status code 403, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://www.nytimes.com/vi-assets/static-assets/vendors~audio~byline~capsule~collections~customElectionsGuide~home~liveblog~paidpost~regionCapsule~s~50ba78f1-df327c32780b2c829377.js.map: HTTP error: status code 403, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for chrome-extension://pcmpcfapbekmbjjkdalcgopdkipoggdi/browser-polyfill.min.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load SourceMap: Could not load content for https://www.nytimes.com/vi-assets/static-assets/programmables-6c5d5d0975ce2535c27f.js.map: HTTP error: status code 403, net::ERR_HTTP_RESPONSE_CODE_FAILURE

Thanks

from markdownload.

deathau avatar deathau commented on September 24, 2024

Unfortunately, it looks like most (if not all) of those errors are coming from the NYT page itself, and not from my plugin.
Could you perhaps try again on something like https://publish.obsidian.md/death-au/development/MarkDownload (because I can see there are no console errors there ๐Ÿ˜‰)

from markdownload.

theesp avatar theesp commented on September 24, 2024

from markdownload.

deathau avatar deathau commented on September 24, 2024

๐Ÿค” that's still only the warnings from that page and not the extension.

I wonder if there's anything internal... See if you can see any errors in the background page by opening up brave://extensions/, turn developer mode on at the top right, click on the "background page" link for MarkDownload and again going to the console tab.

Then in the main window, go any webpage and try opening the extension via the button and see if any errors pop up in that background console.

from markdownload.

theesp avatar theesp commented on September 24, 2024

from markdownload.

A-Tan5 avatar A-Tan5 commented on September 24, 2024

Try this, at least it works for me!

Setting -> Extensions -> Manage Extensions -> MarkDownload -> Allow access to file URLs -> just turn it on.

from markdownload.

theesp avatar theesp commented on September 24, 2024

from markdownload.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.