Coder Social home page Coder Social logo

Comments (2)

ssborbis avatar ssborbis commented on July 16, 2024

That message you are seeing no double-click event, trigger immediately is indicating that you don't have a double-click search action also assigned to the mouse button you are using, and therefore the addon won't wait to check for a second click event on the search engine. Instead, it will trigger the search immediately on the first click.

Did you have another question regarding your script? Also, is the background tab issue with Edge happening only with your script, or with this addon? I'll check also.

from contextsearch-web-ext.

DandyClubs avatar DandyClubs commented on July 16, 2024

A script search
B script search

text select

quick menu A or B click

first script search icon click work

but not work when script search icon click until page reload

just console.log no double-click event, trigger immediately

Edge quick menu search icon new tab open and focus search tab

not work background tab open

so i try script

i try

 let searchText = (Text) => {
            let SearchWord = Text.replace(/\s&\s/g, ' ').split(/\s-\s/)
            SearchWord = SearchWord.map(e => e.replace(/\n/g, '').trim())
            SearchWord[0] = SearchWord[0].replace(/[^[:alnum:]]/g, '').replace(/\s/g, '')
            SearchWord[0] = /\s-\s/.test(Text) ? SearchWord[0] : Text
            return SearchWord.join(' ')
        }

to

function searchText(Text){
            let SearchWord = Text.replace(/\s&\s/g, ' ').split(/\s-\s/)
            SearchWord = SearchWord.map(e => e.replace(/\n/g, '').trim())
            SearchWord[0] = SearchWord[0].replace(/[^[:alnum:]]/g, '').replace(/\s/g, '')
            SearchWord[0] = /\s-\s/.test(Text) ? SearchWord[0] : Text
            return SearchWord.join(' ')
        }

so fine work

from contextsearch-web-ext.

Related Issues (20)

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.