CanisLupus / swift-selection-search

Swift Selection Search (SSS) is a simple Firefox add-on that lets you quickly search for some text in a page using your favorite search engines.
https://addons.mozilla.org/firefox/addon/swift-selection-search/
MIT License
213 stars 27 forks source link

SPC ist the fork everybody's looking for #244

Open githubbapoopa opened 2 years ago

githubbapoopa commented 2 years ago

Thanks CanisLupus for your excellent work! Your addon served me very well. Excellent piece of software.

However you yourself encouraged others to fork your work as SSS is not actively developed by you anymore.

Well here's this fork everybody's looking for.

Unfortunately the git is not updated on a regular basis. (Maybe somebody should try to contact the developer and ask him to do so). The firefox addons page has the newer files.

If you like this addon (why not it's based on your hard work) maybe you could link it in your startpage here on github.

This fork is called "Search from Popup or ContextMenu"

https://addons.mozilla.org/en-US/firefox/addon/searchfrompopuporcontextmenu/ https://github.com/YoshifumiFuyuno/Search-from-Popup-or-ContextMenu

Differences to SSS:

Fork Changes (Based on SSS Version 3.33.0): Now works with Chromium-based browsers such as Microsoft Edge and Google Chrome. The site's Content Security Policy(CSP) does not change. (Original Extension(SSS) rewrites CSP to "unsafe-inline" after Ver.3.40.0) You can search on multiple search engines at once. support POST Method search engine. support search engine folder management. added highlighting and auto-scrolling features. added Popup Style ("Icon only" / "Icon and Name" / "Name only"). (At "Icon only", the display mode can be temporarily switched by double-clicking) support Bookmarklet. You can use Bookmarklet APIs. (It can also be executed automatically when the popup is displayed) / (You can also import bookmarklets from your Bookmarks) added Search box to Popup. added omnibox search. support suggestions from Google or DuckDuckGo or Qwant or Bing or Яндекс(Yandex) or 百度(Baidu) in the popup search box or omnibox search. added Hotkey search. added a function to easily add a search engine from the text box context menu. added search URL {linkurl}. {linkurl} is supports "Advanced usage". (Used when you want to search by link URI. For Firefox, you can also do this by holding down the Ctrl key and selecting the context menu) If no text is selected, the Clipboard Text is searched. Context menu display options. You can also search by link text or image URL. added Popup Opening behaviour "click" / "drag" added "Popup/icons behaviour" -> "Right mouse button click" / "Right mouse button Long-click" / "Left mouse button Long-click" added "Context menu" -> "Middle mouse button click" / "Right mouse button click" added Open in Window ("reuse new window" / "reuse new background window" / "new incognito (private) window" / "reuse new incognito(private) window" / "new background incognito(private) window" / "reuse new background incognito(private) window" / "new popup window" / "reuse new popup window" / "new background popup window" / "reuse new background popup window" / "sidebar (tab-specific)" / "sidebar (window-specific)" / "sidebar (global)") (sidebar UserAgent can be changed) / (The Popup window can be closed automatically.(Off/LostFocus/Mouseleave)). added Open in Tab ("reuse active tab" / "reuse new tab" / "reuse new background tab" / "reuse new tab (next to current tab)" / "reuse new background tab (next to current tab)") added Ability to show last used engine first in popup. added Hide Popup with ESC key etc. added browserAction. Allow "open-popup" Command to display popup even if no string is selected. support charset (UTF-8, RAW(GET method only), Shift_JIS(SJIS), EUC-JP, ISO-2022-JP(JIS), windows-1251, windows-1252(ISO-8859-1), Big5, GB18030). When the OS is set to dark mode, the option page is displayed in dark mode. Import/Export Compatibility with the Original Extension Ver.3.33.0: Import can also import file from the Original Extension. File exported by SPC is not compatible with the Original Extension Search engines setting. Permissions different from Original Extension Ver.3.33.0: removed permissions: downloads, webNavigation. added permissions: clipboardRead(Clipboard text search), unlimitedStorage(data: scheme icons). added optional_permissions: bookmarks(Import bookmarklet), webRequest(Sidebar user agent), webRequestBlocking(Sidebar user agent). From normal permissions to optional_permissions: clipboardWrite(copyToClipboard As Html/Text).

sphh commented 2 years ago

There is another option: SelectionSK

IMHO unfortunately SPC is not as good looking as SSS and – which is more important – I could not find a Copy to clipboard and Open as link functionality. I also cannot enable Popup on selection (to mimic SSS) and use Ctrl-C. So for me, SSS still remains the best (if you do not need POST methods or any of the other functionality provided only by SPC)! Thanks @CanisLupus!!

githubbapoopa commented 2 years ago

@sphh Well you should have a close look as to what is possible with bookmarlet functionality in SPC

https://github.com/YoshifumiFuyuno/Search-from-Popup-or-ContextMenu/wiki/Bookmarklet-APIs

https://github.com/YoshifumiFuyuno/Search-from-Popup-or-ContextMenu/wiki/Example-engines

Copy to clipboard as text > Check Copy to clipboard as html > check Copy as markdown!!! > check Open URL > check

etc. .....

Just stunning.

Simply click the links on that later page to add that functionality to SPC.

And you can enable popup for sure.

Big thanks to CanisLupus and to YoshifumiFuyuno!

sphh commented 2 years ago

Sounds like you are really a very big advocate of SPC :grinning:

Thanks for pointing out, how to add an icon with Copy to clipboard functionality to SPC (which I could not detect in the first place).

I have the popup enabled on selection. But how can I now copy the selected text with Ctrl-C to the clipboard as soon as it pops up?

CanisLupus commented 2 years ago

Hey, sorry for the late reply. 😅 Just wanted to say "you are welcome!" in response to your appreciation :)

And definitely! Anybody should feel free to use SSS's code to develop their own thing. Cheers!

cheater commented 2 years ago

Wanted to second the recommendation, SPC is a great fork, and the developer is very friendly and likes to work on suggestions from users. SPC provides major improvements in functionality, time-saving features, and performance.

SelectionSK is not a fork of SSS, it's a completely different thing, and it's closed-source. It's an alternative, but it's not a fork, and I don't know if it's as good as SPC or even SSS.

cheater commented 2 years ago

@gthbububba could please edit your original post so that it points to an English version of the Mozilla site?

githubbapoopa commented 2 years ago

@cheater here you go,sorry

YoshifumiFuyuno commented 2 years ago

Hi all. I noticed this when I received a pointer from @gthbububba.

Thanks to @CanisLupus, I was able to save time developing my ideal add-on. thank you very much. Maximum gratitude to you.

@sphh Even if popup is displayed, you can copy it by pressing Ctrl+C. Or does it mean you want to copy automatically? In that case, use "add-on options" -> "General" -> "Auto-execute Bookmarklet". In any case, this is a place for SSS support, so if you have any questions about SPC, please visit my page.

I absolutely do not want to cause any trouble for CanisLupus.

Best regards

cheater commented 2 years ago

@YoshifumiFuyuno one thing makes me worried, since your repository does not include your code. Could you put it back in the repository please? I don't think anyone is out there to steal your work, we all want to contribute to one code base. It's fine if it's your repository. Others just want to be able to build features and fix issues as well. Thanks

CanisLupus commented 2 years ago

Thank you, @YoshifumiFuyuno! :) No worries. I also don't want SSS's issues list to be full of non-issues, but since people want to suggest some addon alternatives, for now I'm perfectly okay with this. I don't want to suggest or link to other addons myself because I haven't used anything besides SSS.

All the best to you and your addon! 🎉

githubbapoopa commented 2 years ago

@cheater regarding repo

https://github.com/YoshifumiFuyuno/Search-from-Popup-or-ContextMenu/discussions/52

sphh commented 2 years ago

@YoshifumiFuyuno:

Even if popup is displayed, you can copy it by pressing Ctrl+C. Or does it mean you want to copy automatically?

No, I did not want automatic copy, but copying by Ctrl+C. This was only working for me after I selected the text in the text entry field shown in the pop up. Then Ctrl+C was working.

githubbapoopa commented 2 years ago

I have to revoke my recommendation after @YoshifumiFuyuno changed "his licence"

https://github.com/YoshifumiFuyuno/Search-from-Popup-or-ContextMenu/discussions/54#discussion-3921653

cheater commented 2 years ago

@githubbapoopa do you have a place where I can ask you something in private?

Binly42 commented 1 year ago

I have to revoke my recommendation after @YoshifumiFuyuno changed "his licence"

YoshifumiFuyuno/Search-from-Popup-or-ContextMenu#54 (comment)

maybe better to edit into the top comment ...