Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

windows's chrome cant get the content #14

Closed
0xtaosu opened this issue Aug 12, 2021 · 20 comments
Closed

windows's chrome cant get the content #14

0xtaosu opened this issue Aug 12, 2021 · 20 comments
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@0xtaosu
Copy link

0xtaosu commented Aug 12, 2021

hey bro ! My system is window 10 and I have test obsidian-clipper .

  • When I download the plugin from chrome store and then config , I cant get the content when I select the content and click obsidian-clipper icon .
  • When I download the plugin from github and install it , I can get then content . However , when I select the content and click obsidian-clipper icon , it will open a new chrome tag but shutdown it quickly .
@loopernow
Copy link

  • When I download the plugin from github and install it , I can get then content . However , when I select the content and click obsidian-clipper icon , it will open a new chrome tag but shutdown it quickly .

Workaround - paste this URL into your address bar (using your own vault name and note name as defined in the extension's settings):

https://jplattel.github.io/obsidian-clipper/clip.html?vault=Obsidian&note=Chrome%20Clippings

This time the tab will not close, and you will have time to click the box to allow the extension to do its thing.

@ArmandXiao
Copy link

  • When I download the plugin from github and install it , I can get then content . However , when I select the content and click obsidian-clipper icon , it will open a new chrome tag but shutdown it quickly .

Workaround - paste this URL into your address bar (using your own vault name and note name as defined in the extension's settings):

https://jplattel.github.io/obsidian-clipper/clip.html?vault=Obsidian&note=Chrome%20Clippings

This time the tab will not close, and you will have time to click the box to allow the extension to do its thing.

Now the clipper is able to open a XXX.md in Obsidian; however, the content won't be written into XXX.md. It only copies the content to my clipboard.

Is there a way to let the clipper write the HTML or Markdown into the note automatically?

@IVIJL
Copy link

IVIJL commented Oct 24, 2021

This trick should be written in readme.md. Was confused that its does not work.

@jplattel
Copy link
Owner

jplattel commented Nov 8, 2021

@IVIJL good idea, I'll add it to the readme. I'm also looking into better feedback on the user side when a clipping is done successfully.

@jplattel jplattel self-assigned this Nov 8, 2021
@jplattel jplattel added documentation Improvements or additions to documentation enhancement New feature or request labels Nov 8, 2021
@loopernow
Copy link

By the way, pretty sure this behavior only occurs on Microsoft Edge. If I remember correctly, the tab that disappears is a security permissions tab of some kind. It's been a while since I figured out the workaround, but what I recall is that on Chrome the tab doesn't close--it stays open allowing you to make a one-time choice to allow whatever it was asking you if you wanted to allow.

@IVIJL
Copy link

IVIJL commented Nov 9, 2021 via email

@elifiner
Copy link

elifiner commented Nov 9, 2021

  • When I download the plugin from github and install it , I can get then content . However , when I select the content and click obsidian-clipper icon , it will open a new chrome tag but shutdown it quickly .

Workaround - paste this URL into your address bar (using your own vault name and note name as defined in the extension's settings):

https://jplattel.github.io/obsidian-clipper/clip.html?vault=Obsidian&note=Chrome%20Clippings

This time the tab will not close, and you will have time to click the box to allow the extension to do its thing.

I also needed to go to chrome://flags, search for "Insecure origins treated as secure" and add https://jplattel.github.io as a trusted origin. Otherwise Chrome doesn't display the checkbox that will always open Obsidian for obsidian://.

Those two things together got it to work on my system (Chrome 95, MacOS 10.15 Catalina).

@jroachgit
Copy link

Hi there,
When selecting the text, and then hitting the extension, I get an error, saying "Error: URI too long"
If I don't select ANY text on a webpage and click the extension, a new note is created as expected.

@jplattel
Copy link
Owner

@jroachgit the bug you talk about is #20, I'm currently not able to fix it. I'm actively looking for work-arounds but haven't found any (yet!)

@wlai-lp
Copy link

wlai-lp commented Feb 11, 2022

If test config works but the extension button doesn't capture content, then it might be a filename issue. i followed the youtube tutorial and tried to clip a medium article, link
it generated the following text for file name, which I determined it was the "|" that prevented obsidian from creating the file

Deep%20Dive%20Time%20To%20End%20The%20Two-State%20Gatekeeping%20|%20by%20Mitchell%20Plitnick%20|%20Feb,%202022%20|%20Medium-2022-02-10

there are some special characters that's not allowed in filename, | is 1 of them.

my solution is to update the "Note to clip to" setting and removed {title} place holder for now, and it works right after

@jplattel
Copy link
Owner

@wlai-lp, that's a good find! I'll run a check on what characters are allowed in the note title and strip the rest, that way it's usable. (it can still clip the characters in the note body since all chars are allowed there!)

I'll include this is a next release!

@Kayfum
Copy link

Kayfum commented Mar 1, 2022

  • When I download the plugin from github and install it , I can get then content . However , when I select the content and click obsidian-clipper icon , it will open a new chrome tag but shutdown it quickly .

Workaround - paste this URL into your address bar (using your own vault name and note name as defined in the extension's settings):

https://jplattel.github.io/obsidian-clipper/clip.html?vault=Obsidian&note=Chrome%20Clippings

This time the tab will not close, and you will have time to click the box to allow the extension to do its thing.

I find this box:
image
:(

@sideone
Copy link

sideone commented Apr 4, 2022

  • When I download the plugin from github and install it , I can get then content . However , when I select the content and click obsidian-clipper icon , it will open a new chrome tag but shutdown it quickly .

Workaround - paste this URL into your address bar (using your own vault name and note name as defined in the extension's settings):
https://jplattel.github.io/obsidian-clipper/clip.html?vault=Obsidian&note=Chrome%20Clippings
This time the tab will not close, and you will have time to click the box to allow the extension to do its thing.

I find this box: image :(

Replace 'vault=Obsidian' with the name of your Vault

@jplattel
Copy link
Owner

jplattel commented Aug 4, 2022

Closing this as the new version should now save the settings before testing, as well as keeping the test tab open to confirm any dialogs or errors that pop up!

@jplattel jplattel closed this as completed Aug 4, 2022
@ksdavidc
Copy link

ksdavidc commented Sep 9, 2022

Let me add that to this:

I also needed to go to chrome://flags, search for "Insecure origins treated as secure" and add https://jplattel.github.io as a trusted origin. Otherwise Chrome doesn't display the checkbox that will always open Obsidian for obsidian://.

Doing this did not work by itself. However, I discovered the link was in my history, and if I went back, this time it did stop and show the open dialog. There was an option to always open such links, and that worked for me.

@fritzp6
Copy link

fritzp6 commented Nov 12, 2022

I'm running Brave on KDE Neon. Things were working fine, then something changed, now your plugin is broke. (I know...usual story). After clipping a selection, I click on the Obsidian Clipper icon, I get a new empty note. In settings, if I set the note title to {title} I get only the first word of the title, but still no data in the note. I get the same results whether I use settings to have plain text or markdown. I tried your troubleshooting tips and get no errors that I can find. I just keep getting empty notes.

@gabb0z
Copy link

gabb0z commented Dec 13, 2022

Hello!
Running MacOS Ventura.

Plugin works fine with Chrome. In opera though, for some reason the test works, but the plugin doesn't work on websites.

When I run the test command from the extension page:
image

When I try to clip something:
image

It seems that when I try to use the extension on a web page, background.js:28 is not loaded

@mrmarkgithub
Copy link

mrmarkgithub commented Dec 19, 2022

Hello,

On Win10, using Chrome and Brave. After changing the Options to my liking in both browsers, I clicked to save the vault and note configuration. Then I clicked the "Test configuration" button. It works like a charm in both browsers!

However, I cannot get any other page to work! What infos can I get you to assist in troubleshooting? (I am a tech guy but not a coder.)

I have followed all of the troubleshooting steps I could find. (Please feel free to forward a list and I will try them all again.)

  1. obsidian:// ... is opening Obsidian on my Win10 machine.
  2. https://jplattel.github.io/obsidian-clipper/clip.html ... Generates this error message in both browsers: Obsidian Clipper Error A
    Full Text of Dialog Box:

[Window Title]
Error

[Main Instruction]
Vault not found

[Content]
Unable to find a vault for the URL obsidian://new/?vault=obsidian&file=Chrome%20Clippings&append=true&content=Unable%20get%20contents%20of%20the%20clip

[OK]

  1. https://jplattel.github.io/obsidian-clipper/clip.html?vault=<MainVault> ... Generates this error message in both browsers:
    Obsidian Clipper Error B
    Full Text of Dialog Box:

[Window Title]
Error

[Main Instruction]
Vault not found

[Content]
Unable to find a vault for the URL obsidian://new/?vault=%3Cvaultname%3E&file=Chrome%20Clippings&append=true&content=Unable%20get%20contents%20of%20the%20clip

[OK]

It looks to me like the value is not properly being replaced with the actual vault name; I have only 1 vault: "MainVault".

What else can I try? How else can I be of help?

Regards,

Mark

@Ches-ctrl
Copy link

Any help on this error?
image

@chrischung3
Copy link

Hi, when I finished configuring, the "Test Configuration" would be successful. But this happened when I tried to clip it with the extension:

IMG_5448.MOV

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests