tomayac’s avatartomayac’s Twitter Archive—№ 16,430

  1. …in reply to @briankardell
    @briankardell You could very easily patch my extension to do all this for you. Just add your desired text around the url: github.com/GoogleChromeLabs/link-to-text-fragment/blob/c03321a13c936a3dfba131788e1619c4f9cf1434/background_script.js#L519. You get the originally selected text (and some more surrounding text) here: github.com/GoogleChromeLabs/link-to-text-fragment/blob/c03321a13c936a3dfba131788e1619c4f9cf1434/background_script.js#L353. At least on desktop you’d be good. Profit!
    1. …in reply to @tomayac
      @briankardell Actually, I’d happily merge a PR of yours that adds this in a configurable way: prefix + URL + suffix. Are you up for it? No pressure, I can do it myself if enough people ask for it. developer.chrome.com/docs/extensions/mv2/options/