GithubHelp home page GithubHelp logo

piroor / textlink Goto Github PK

View Code? Open in Web Editor NEW
59.0 11.0 9.0 1.75 MB

Text Link, Allows URI texts written in webpages to be loaded by double clicks.

Home Page: http://piro.sakura.ne.jp/xul/textlink/

License: Other

Makefile 1.75% JavaScript 91.19% CSS 2.29% HTML 4.76%
firefox addon firefox-addon webextensions hacktoberfest

textlink's Introduction

Text Link

Build Status

Privacy Policy

This software does not collect any privacy data automatically, but this includes ability to synchronize options across multiple devices automatically via Firefox Sync. Any data you input to options may be sent to Mozilla's Sync server, if you configure Firefox to activate Firefox Sync.

このソフトウェアはいかなるプライバシー情報も自動的に収集しませんが、Firefox Syncを介して自動的に設定情報をデバイス間で同期する機能を含みます。 Firefox Syncを有効化している場合、設定画面に入力されたデータは、Mozillaが運用するSyncサーバーに送信される場合があります。

textlink's People

Contributors

dependabot[bot] avatar gontazaka avatar infocatcher avatar piotrdrag avatar piroor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

textlink's Issues

TextLink works out if you select a paragraph with double click and if this paragraph has at least one link

The example test case is on your homepage: http://piro.sakura.ne.jp/xul/textlink/index.html.en#testcases

There is a nice feature that lets users not to aim at exactly the beginning of a word if they select some word/text - you can double click the word to select it, or you can double click that word and without releasing the 2nd click move the cursor to select more then one word.

Now try to use it on the test case: as a result, when you release the 2nd click, after selecting the whole paragraph "Test cases" - Text Link will work out and it will recognize that the selected text contains some links and it will open the first of them.

The expected behavior is that TextLink shouldn't work out in this case, as it is obvious that I'm not selecting a link, I'm selecting just some text.

Can't recognize URI text in input text area.

At Text Link version.4.0.2011020501, on Firefox 3.6 and 4.0b12pre,
it does not recognize the URI text in input area.

I seem this problem is solved with adding the flag "gContextMenu.onTextInput" to TextLinkService.initContextMenu().

最前面のタブに開きません

Firefox v10.0.1 + Text Link v4.0.2011021601

「新しい最前面のタブで開く」に設定していても、最前面のタブで開かず、一番右端のタブで開いてしまいます。
アドオンはテキストリンク以外導入していません。firefoxとアドオンをインストールし直しても変わりませんでした。
修正をお願いします。

Does not work on Firefox 37.0.1 32 bit

Probably same problem as reported in Jan, etc. Possibly competing add ons installed: CoLT, Local Link, Copy Plain Text 2, Copy on Select. But these all worked together fine on previous versions of FIrefox.

Not work with fx 38.0 dev edition (x64)

text link does not work with the newest version of fx x64.

I do not know whether it's fx's problem or tl's problem.

I did not try on other x64 realization like pale moon.

Performance problems with context menu

When selecting a lot of text and invoking the context menu (e.g. when copying the entire page - I do this a lot when copying spam from Gmail into SpamCop), the context menu can take several seconds to appear; only then can I finally get to e.g. the regular Copy command. The problem/delay does not occur when all of Text Link's additions to the context menu are turned off in the options dialog.

URIs with three slashes after the protocol name (e.g. evernote:///view/<something>) are not recognized by Text Link

Tools like Evernote generate URIs containing three slashes after the protocol name (evernote:///). Example:

evernote:///view/252711/3/a70666-e544-48cc-9fa3-90a98dbb2f/a70666-e544-48cc-9fa3-190a98dbb2af/

Text Link doesn't recognize those URIs. When I remove a slash, i.e. the above URI becomes

evernote://view/252711/3/a70666-e544-48cc-9fa3-90a98dbb2f/a70666-e544-48cc-9fa3-190a98dbb2af/

Text link works once again.

Script does not respond or so error in Thunderbird

Hello,

I am getting this kind of error on one type of message that contains txt attachment. It renders in message and cause that TB does not respond for about 30 seconds and then shows error message to wait or end script.
It offers option not to ask again but I have not tried it yet. Not to loose add on functionality.

Error is in my language but may help:
Skript na této stránce je buď zaneprázdněn nebo přestal reagovat. Nyní můžete skript ukončit nebo počkat, zda se dokončí sám.

Skript: file:///C:/Documents%20and%20Settings/Administrator/Data%20aplikac%C3%AD/Thunderbird/Profiles/w8xescg0.default/extensions/%7B54BB9F3F-07E5-486c-9B39-C7398B99391C%7D/modules/utils.js:746

screen is here http://dl.dropbox.com/u/610163/errortext2link.jpg

Txt file is bigger, 164 Kb. At the end it contain on active email address and one inactive text url. And contains some strange characters as is seen on screen shot.

Hope it can be enough to deal with it.

Thanks a lot

Frantisek

Can't recognize "about:" scheme.

It does not recognize "about:" scheme at Text Link version.4.0.2011020501. on Firefox 3.6 and 4.0b12pre.
This happens in everywhere. (copying URI, open URI with double-click)

[improvements] "Open All in New Tabs"

1) A modification to the context menu item Open All in New Tabs

text selected? behavior
yes open all URLs in selected text
no menu item hidden
open all URLs in clipboard text

Opening URLs from the clipboard would be very useful when needing to open a list of URLs stored outside of the browser.

2) The context menu item "Open All in New Tabs" should open tabs in an unloaded state (ie. in the same way as the Firefox option "Don't load tabs until selected"). This would greatly speed up the process of opening multiple tabs at once.

Text link broken on nightly.

Hi!

It seems like text link (v5.0.2016110400a163907) totally broke on nightly. I did a mozregression-gui test with this result:

2016-11-24T11:22:08: INFO : Narrowed inbound regression window from [10daeea4, 55d9f54c] (3 revisions) to [10daeea4, 578dfd6d] (2 revisions) (~1 steps left)
2016-11-24T11:22:08: DEBUG : Starting merge handling...
2016-11-24T11:22:08: DEBUG : Using url: https://hg.mozilla.org/integration/mozilla-inbound/json-pushes?changeset=578dfd6dba5e20d87b7642acef8d093d8be8e268&full=1
2016-11-24T11:22:09: DEBUG : Found commit message:
Bug 1318971 - Update !MOZ_WEBSPEECH case in ContentParent::RecvPSpeechSynthesisConstructor to return mozilla::ipc::IPCResult. r=kanru

2016-11-24T11:22:09: INFO : The bisection is done.
2016-11-24T11:22:09: INFO : Stopped

So cause is apparently: https://bugzilla.mozilla.org/show_bug.cgi?id=1318971

License?

There are quite a few license headers included in the project, but I didn't see a copy of the license? If it is missing, could you please put a copy of the license in the root directory? Thank you.

Inactive entries in page content area context menu

Hi,
I love this extension, it works great. There's but one bug: If some text is selected which is not an URI the context menu entries are deactivated but still there. If textlink doesn't recognize an URI it should hide the context menu entries.
Firefox 29.0.1
textlink 4.1.2013040601
Windows 7 Professional 64 bit SP1

Multiple-line URL not linkified

Hi @piroor

Thanks very much for textlink. I installed it in the hope to have some long, over multiple-lines stretched, URLs linkified and clickable.

Therefore I enabled both options:

Linkify URI strings in plain text messages
Parse URIs split in multiple lines (unrecommended)

However, some URLs are still not linkified. Particularly the ones from CouchSurfing.

Excerpt from the email:

RESPONSE LINK: http://www.couchsurfing.org/send_message.html?id=6N5SV85&mid=1P8CX22Y5&utm_campaign=message&utm_medium=email&utm_source=cs

Screenshot:
screenshot

Any idea how I can linkify them?

Thanks ahead!

Robert

[Request] Use Text Link on white listed websites only

Hello,

First i want to thank you for this addon, it saved me a lot of time using it.

My request:
Is it possible to add a white list to the addon so it only works on websites you put on the list?
I use this addon a lot, but only on a few websites. On the other 98% of the websites i visit, i don't need it.

The PC i use is still a powerful machine (Win 7 64 / i7 3770K / 16GB RAM) although it's a few years old, but lately i notice web browsing is getting slower and slower with all the addons running in the background of Firefox. Specially on websites that contain lots of texts.
So i think it's not a bad idea to have some addons that can put themself in stand-by mode when you don't need them. Sure i can turn off an addon manually if i don't need it, but it's more practical if the addon can do it by itself.

I know if i was only using Text Link it would hardly make a difference, but in combination with other text searching and weblink cleaning addons i think it will make web surfing faster if it doesn't search for URI texts when i don't need it.

Consumes CPU

I've been struggling with Firefox consuming CPU cycles and have finally narrowed it down to Text Link. If I disable Text Link, CPU cycles immediately fall back to 0. If I go back and enable Text Link, CPU cycles are still fine. However, if once enabled I tab over to a rendered page, CPU cycles jump again.

I know it's pretty vague and as much as it hurts, I'm going to have to move on to a different add-on until this is fixed. If you need any input, please let me know and I'll do what I can.

Bind menu items with menupopup in content-area context menu

If user enables textlink's menu items of a content-area context menu, opening the context menu is too slow on some pages. (e.g. https://github.com/piroor/textlink/blob/master/modules/utils.js)

This bug is caused by searching URIs on opening the context menu.
But user does not always use textlink's context menu.

So I propose that, binding textlink's menu items with menupopup in content-area context menu.
This approach can delay the timing of searching URIs.

Double-clicking a paragraph opens text links elsewhere in the same paragraph

Sometimes this extension opens a new tab when I'm selecting text (I often double click to select, as that allows to select whole words at a time which makes selecting text easier).

Suggested fix: after finding a link, check whether the cursor is actually over the link or not and abort if the cursor is outside. If this is not 100% accurate, you can just leave it as it is, as it's better to open more links than less IMHO.

PS: I really like your addon, even with this minor flaw :)

URLs with inline passwords no longer work

Since the upgrade to the 4.x series of textlink urls(ftp, http etc) with the user/pass inline no longer work. They always have worked in all previous builds. I have FTP and web servers that I manage and this extension is a great time saver.
Example:
http://user:[email protected]
If you double click on this with "Parse IDN" enabled then only the "google.com" portion of the link gets selected and opened. If you disable Parse IDN then "[email protected]" gets selected and opened. In previous builds the entire string would get selected and log you in to the ftp. I have tried all combination of settings and none of them seem to work.
Thanks

URL's containing a colon (':') are not working

Hi, when double clicking on a url that contains a colon, only the first portion of the url is opened in a tab. The remaining characters after the colon are not included in the request.

For instance, an url might be written like 'protocol://host:port/resource', when double clicking only 'protocol://host' is accessed.

In the web is hard to find a web site not running in port 80 or 443 which are the default ones (hence no colon is present in the url), but this extension is great and I use it also at work where we use any number for ports.

It would be great if you could modify the extension to support colons.

[Legacy] yield in strict mode

58.0b1

I would like to keep the legacy version for use it in internal pages, like view-source: (I'm using dozens of legacy addons in Fx 58, including TST).

I've already fixed things like nsIPrefBranch2 -> nsIPrefBranch and for each -> for ... of, but I coudn't solve the yield thing.

Fx 57 enforces strict mode, so I tried to change from
getURIRangesIterator : function(aFrameOrEditable, aMode, aStrict, aExceptionsHash, aContinuationChecker)
to
getURIRangesIterator : function*(aFrameOrEditable, aMode, aStrict, aExceptionsHash, aContinuationChecker)
And the same in getURIRangesIteratorFromRange.

But it seems that this isn't enough.

I also tried to replace iterator.next() by iterator.next().value, but still unsuccessful.

Could you tell what is wrong? Thank you.

Open in foreground tab does not switch to the tab.

Running the latest version on Fx44. I would think that opening the link in a foreground tab should also switch to it. It acts exactly as a background tab.

Also, will text link be signed in the near future?

"linkify URI strings in plain text" causes tb5 not show valid links properly

howdy y'all,

in thunderbird 5.0 with text link v-4.0.2011021601 if you enable "linkify URI strings in plaint ext messages" [the default], tbird stops showing valid text links as links. normally, the links are blue and respond to a single click. when TL is enabled and that [default] option is enabled, the links be come simply text and require a double click to activate.

this was not the case with tbird 3.1.11 and the same version of TL.

take care,
lee

broken on v52.0a2 aurora

72fb63c

this breaks compatibility with v52.0a2
double clicking a textlink doesn't do anything now, i went back to the older build which does work fine here.

thanks. :)

Firefox 57

I love this extension. Please update to work with Firefox 57.. I like the double click method.

To support detecting mail addresses ?

Do you have a plan to support detecting mail addresses ?

I use "Linkification" now, but it sometimes be confused by multibyte text.
Otherwise, Your textlink supports multibyte but doesn't support mail addresses.

Can't recognize some http:// links

http://govnokod.ru/11690 (backup: https://gist.github.com/3573894)
See

.replace(/<smiley1>/g,'<img src="http://vk.com/images/emoji/D83DDE0A.png">')
.replace(/<smiley2>/g,'<img src="http://vk.com/images/emoji/D83DDE03.png">')
.replace(/<smiley3>/g,'<img src="http://vk.com/images/emoji/D83DDE06.png">')
...

Works for first two links, but fails for third and following (except last).
And fails with
View – Page Style – No Style
too

* GitHub says: Comment contains unicode characters above 0xffff
So I remove unicode smileys.

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.