GithubHelp home page GithubHelp logo

pistom / hohser Goto Github PK

View Code? Open in Web Editor NEW
121.0 6.0 12.0 5.91 MB

Highlight or Hide Search Engine Results

License: Mozilla Public License 2.0

JavaScript 2.68% HTML 0.49% TypeScript 93.41% SCSS 3.42%
chrome-extension firefox-addon search-engine google duckduckgo

hohser's Introduction

Highlight or Hide Search Engine Results

A web extension that allows to highlight or hide search results.

Available for

Supported search engines

Add an issue if you would like to use the extension with another search engine.

Development

The extension is created with ReactJs, Redux, Material UI and TypeScript.

Requirements

$ git clone [email protected]:pistom/hohser.git
$ cd hohser
$ yarn

Build

$ yarn build    # Packages will be built in the "build" directory.

Run

Using the web-ext library, you can launch a browser window with the extension installed using the following:

$ yarn load        # runs in Firefox

or

$ yarn load:msedge # runs in MS Edge

The extension will be automatically reloaded when you re-run yarn build.

Import domains JSON structure

[
  {
    "domainName":"www.domain1.com",
    "display":"HIGHLIGHT",
    "color":"COLOR_1"
  },
  {
    "domainName":"www.domain2.com",
    "display":"PARTIAL_HIDE"
  },
  {
    "domainName":"www.domain3.com",
    "display":"FULL_HIDE"
  },
  ...
]

hohser's People

Contributors

ahmetdereli avatar crimx avatar dependabot[bot] avatar hanstzou avatar jackymancs4 avatar jgierer12 avatar pistom avatar vidminas avatar yzrsng 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  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

hohser's Issues

multiple google domain support?

Thanks for making this extension but when i use with google.com.tw and google.com.vn it not works, it seem only work only with google.com, can you fix it?

Accordion Open/Close results

Could you add an option, rather than dimming or removing, that simply causes the results of certain URLs to minimize (like an accordion menu). This way those results appear and it can opened only if interested.

Domain lists management popup is slow with large number of domains

It takes 10 seconds to open a domains' list containing about 13000 domains from the toolbar.
Other actions on the popup are also laggy such as deleting a domain, scrolling the domain list, open the menu, and so on.
On search pages (I use DuckDuckGo) there are apparently no performance issues and it works perfectly.

Environment:

Firefox 67.0 (64 bit)
Linux 4.15.0-50-generic #54-Ubuntu SMP Mon May 6 18:46:08 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Enble on image search

First off, thank you thank you thank you for this extention.
So far, it works beautifully but one thing I noticed it doesn't work on the Google Image Search tab. Would be great if that could be included in the filtering.

Apply the most specific selector to result

For now, if there are more than one entries on the domain's list for one domain, the first one is applied to results.
For example if we want results for wikipedia.org are highlighted in blue and results for pl.wikipedia.org are green and if wikipedia.org is higher on the domain's list, all wikipedia's results will be highlighted in blue.
As a search engine user
I want to be able add multiple entries for one domain
So that I can manage results according to sudomain.

Support for Internationalized Domain Name

This Japanese domain cannot be blocked nor marked.

https://www.あれるぎー.com/

Its translated version is www.xn--l8jya2od67c.com.

This domain appears in the DuckDuckGo search page below.

https://duckduckgo.com/?q=%E3%81%82%E3%82%8C%E3%82%8B%E3%81%8E%E3%83%BC+.com&t=canonical&ia=web

I tested 3 methods to add this domain and none of them worked.

  1. simply click the block icon on the search page (I use DuckDuckGo).
  2. add www.あれるぎー.com to the domain list from the management popup.
  3. add www.xn--l8jya2od67c.com to the domain list from the management popup.

Environment:

The addon version: 2.2.1
Firefox: 67.0 (64 bits)
OS: Ubuntu 18.04

Feature Request: Support Qwant Dark Theme

In a similar way of Duckduckgo, Qwant offer a dark theme option.
But unlike on DDG, when this theme is enabled, the hohser selector stays dark grey, becoming quite difficult to be seen on a big screen.

Schermata 2019-07-09 alle 18 02 50 2

I have not thoroughly investigated how you manage this kind of things but my take on this is something along adding this

body.theme-dark .hohser_result_management svg {
    color: #c8cbd3 !important;
}

to content.css

Editing entries

Allow users to edit parameters and delete domain entries.

[Enhancement] Add a way to view hidden items

I think it might be useful to be able to look at hidden items from time to time. Not sure how this could be implemented but maybe a link at the top of each page that says x items hidden and clicking it would show the hidden items?

Bug: Popup completely white

Hello @pistom
From yesterday, the popup always appears completely white, after a very brief flash.

My environment:
SO: MacOS 10.14.5
Firefox: 68.0
hohser: 3.0.1

From the Addons Debug console:

Webconsole context has changed
TypeError: "e.props.domainsList[t].domainName is undefined"
    render moz-extension://06a96554-8f2c-ed4c-b172-6c95b1f248d4/static/js/popup.js:1
    render moz-extension://06a96554-8f2c-ed4c-b172-6c95b1f248d4/static/js/popup.js:1
    Ta moz-extension://06a96554-8f2c-ed4c-b172-6c95b1f248d4/static/js/popup.js:1
    ja moz-extension://06a96554-8f2c-ed4c-b172-6c95b1f248d4/static/js/popup.js:1
    Ma moz-extension://06a96554-8f2c-ed4c-b172-6c95b1f248d4/static/js/popup.js:1
    Vi moz-extension://06a96554-8f2c-ed4c-b172-6c95b1f248d4/static/js/popup.js:1
    $i moz-extension://06a96554-8f2c-ed4c-b172-6c95b1f248d4/static/js/popup.js:1
    Tl moz-extension://06a96554-8f2c-ed4c-b172-6c95b1f248d4/static/js/popup.js:1
    Sl moz-extension://06a96554-8f2c-ed4c-b172-6c95b1f248d4/static/js/popup.js:1
    wl moz-extension://06a96554-8f2c-ed4c-b172-6c95b1f248d4/static/js/popup.js:1
    Xi moz-extension://06a96554-8f2c-ed4c-b172-6c95b1f248d4/static/js/popup.js:1
    enqueueSetState moz-extension://06a96554-8f2c-ed4c-b172-6c95b1f248d4/static/js/popup.js:1
    setState moz-extension://06a96554-8f2c-ed4c-b172-6c95b1f248d4/static/js/popup.js:1
    onStateChange moz-extension://06a96554-8f2c-ed4c-b172-6c95b1f248d4/static/js/popup.js:1
    v moz-extension://06a96554-8f2c-ed4c-b172-6c95b1f248d4/static/js/popup.js:1
    a moz-extension://06a96554-8f2c-ed4c-b172-6c95b1f248d4/static/js/popup.js:1
    dispatch moz-extension://06a96554-8f2c-ed4c-b172-6c95b1f248d4/static/js/popup.js:1
    a moz-extension://06a96554-8f2c-ed4c-b172-6c95b1f248d4/static/js/popup.js:1
popup.js:1:160059
port.sender.tab is undefined index.js:1498
[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMWindowUtils.removeSheetUsingURIString]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: resource://gre/modules/ExtensionCommon.jsm :: runSafeSyncWithoutClone :: line 65"  data: no] ExtensionCommon.jsm:65:12
TypeError: e.props.domainsList[t].domainName is undefined popup.js:1:506654

Results dosnt hide automatcily with ddg

When i press the hide button from the quickmenu, it dosnt hide the results from the specific domains.

I use Firefox nighlty with Windows 10 and duckduckgo.

For now, when i trying to hide facebook.com from quickmenu or when i add it to hide list (manual), it dosnt hide results from facebook.

Idea: Please add some info somewhere what these other buttons does.

Support for local storage

Sync storage has limits. Chrome sync storage can store about 100 domain entries. User will be able to choice between local and sync storage

[Enhancement] Add tooltip to icons

Hello, firstly thanks for this updated plugin. I was using ddghur but glad to see this version that works across multiple search engines.

I only just installed the add-on but though this box could use tooltips for each of the icons. As a new user it would help me to more quickly get adapted to the plugin. It's minor since they icons are relatively intuitive but I think would help usability.

image

Something like this would do the trick (using title attribute here):

image

Recommendations:

  • Hide
  • Set Back
  • Highlight (Red)
  • Highlight (Green)
  • Highlight (Blue)

Handy way to "block/mark current page"?

Hello @pistom .
Are there any plans to implement a convenient method to block/mark the domain of the current active tab?
My preference is automatically filling the domain input field with the current domain in the popup menu.

I'm missing such feature in my daily use of this addon.
My typical workflow is

  1. googling.
  2. click some link.
  3. "Oh, this page is useless. I want to block this domain."
  4. move cursor to the url field, select the domain in that field (it takes several seconds) and Ctrl+C.
  5. click this addon's icon, move cursor to the domain input field, Ctrl+V and click Add+.

Fourth action (especially selecting a domain string from a url string) is very time-consuming.
I wish this burden could be eliminated.

Actually I block/mark domains more frequently after opening pages than before opening them.
The reason of that is that we can judge the values of domains with more confidence after we read the entire content of a page on the domains.
We often cannot evaluate domains only with titles and snippets in search engine pages.

I'm already satisfied with the quality of this addon.
New features to excellent products are of course more appreciated anyway.

add yandex.com

thank you for your wonderful extensions but it seem that your extension support yandex.ru but not yandex.com
can you add support for yandex.com ? thanks.

Validate forms

  • do not allow empty domain name
  • allow to set color only for highlighted domains

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.