Thanks Eric, I had everything working, but had no clue how to use it.
Having to navigate to the site is okay, but that's a completely different
use case than the one in the OP, which is about grabbing links on a page.
On Monday, May 1, 2023 at 5:27:40 PM UTC-3 Eric Shulman wrote:
> To create the bookmarklet:
> (note: these instructions are for Chrome. Similar actions are available
> for other browsers, though the menu item and dialog may vary somewhat)
>
> - First, select and copy the code posted by cskrisz to your clipboard:
>
>
> - ```
> javascript:
>
> navigator.clipboard.writeText(`[[${document.title.replaceAll('|','–')}|${document.location.href}]]`);
>
>
> - ```
> - Then, right-click on your browser's bookmark bar and select "Add
> page..." from the popup menu.
> - In the dialog that appears, in the "Name" input, enter something
> like "Make a TW prettylink", and in the "URL" input, paste the
> "javascript:..." code from your clipboard.
> - Press "Save" to add the bookmark to your browser.
> - Note that the new bookmark will appear at the end of your existing
> bookmarks. You can use drag-and-drop or "Bookmark manager" to relocate
> the
> bookmark within the bookmark bar
>
> To use the bookmarklet:
>
> - Go to any page on any website you like
> - Press the "Make a TW prettylink" bookmark
> - This will copy the current URL's title and href to your system
> clipboard, formatted as a TW prettylink (e.g., `[[Title|URL]]`)
>
> To add the prettylink to your TW document:
>
> - Open your TW document
> - Press "+" to create a new tiddler (or edit an existing tiddler)
> - Place the cursor in the tiddler's text area input
> - Press ctrl-V or right-click and select "Paste" from the popup menu.
>
> done.
> On Monday, May 1, 2023 at 12:56:04 PM UTC-7 [email protected] wrote:
>
>> I just wasted the last hour trying to get that bookmarklet to work.
>>
>> If you recommend this as a good way to go, could you give some pointers
>> on how to get it working?
>>
>> On Monday, May 1, 2023 at 9:31:05 AM UTC-3 Charlie Veniot wrote:
>>
>>> Why on earth would you have not provided that crucial observation in
>>> your first post? I only tested with links that do not have gibberish in
>>> the URL.
>>>
>>> On Monday, May 1, 2023 at 2:24:16 AM UTC-3 Krisztián Csordás wrote:
>>>
>>>> Bookmarklet - Wikipedia <https://en.wikipedia.org/wiki/Bookmarklet>
>>>>
>>>> Personally, I prefer `[[URL Import Gadget (URL to WikiText external
>>>> link)|https://groups.google.com/g/TiddlyWiki/c/q3A8j3sIXjI]]`
>>>> <https://groups.google.com/g/TiddlyWiki/c/q3A8j3sIXjI%5D%5D> over
>>>> `[[q3A8j3sIXjI|https://groups.google.com/g/TiddlyWiki/c/q3A8j3sIXjI]]`
>>>> <https://groups.google.com/g/TiddlyWiki/c/q3A8j3sIXjI%5D%5D>.
>>>>
>>>>
>>>> On Sunday, 30 April 2023 at 17:14:31 UTC+2 Charlie Veniot wrote:
>>>>
>>>>> Click (on what, I'm not sure) to copy and then paste is a great option
>>>>> for those who cannot drag and drop.
>>>>>
>>>>> Drag and drop makes me much happier.
>>>>>
>>>>> On Sunday, April 30, 2023 at 4:40:56 AM UTC-3 Krisztián Csordás wrote:
>>>>>
>>>>>> When you click it in the bookmarks bar, it copies a wikitext link
>>>>>> created from the current page title and URL. Then you can paste it into
>>>>>> the
>>>>>> tiddler like any other text.
>>>>>>
>>>>>> On Sunday, 30 April 2023 at 02:09:43 UTC+2 Charlie Veniot wrote:
>>>>>>
>>>>>>> I have no idea how your bookmarklet helps to create a WikiText link
>>>>>>> (in TiddlyWiki) to an external site.
>>>>>>>
>>>>>>> Could you clarify?
>>>>>>>
>>>>>>> On Saturday, April 29, 2023 at 7:50:44 PM UTC-3 Krisztián Csordás
>>>>>>> wrote:
>>>>>>>
>>>>>>>> I use a bookmarklet that copies the wikitext link to the clipboard:
>>>>>>>>
>>>>>>>> javascript:
>>>>>>>> navigator.clipboard.writeText(`[[${document.title.replaceAll('|','–')}|${document.location.href}]]`);
>>>>>>>> On Sunday, 16 April 2023 at 00:43:16 UTC+2 Charlie Veniot wrote:
>>>>>>>>
>>>>>>>>> Please find attached in this post the JSON file you need to
>>>>>>>>> download and drag into any TiddlyWiki to add this gadget.
>>>>>>>>>
>>>>>>>>> https://youtu.be/EIAgESf6K8s
>>>>>>>>>
>>>>>>>>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/a86648a0-a851-41f3-bfbd-396f1b55cfc8n%40googlegroups.com.