pd4d10 / console-importer

Easily import JS and CSS resources from Chrome console.
https://chrome.google.com/webstore/detail/console-importer/hgajpakhafplebkdljleajgbpdmplhie
MIT License
863 stars 58 forks source link

doesn't initialize in empty/blank tabs #2

Open getify opened 7 years ago

getify commented 7 years ago

My home page -- where I do most of my console'ing -- is about:blank. I also use this extension for blank new tabs: https://chrome.google.com/webstore/detail/blank-new-tab-page/jonikckfpolfcdcgdficelkfffkloemh

In both cases, $i is not getting created, only for "real" web sites. :(

pd4d10 commented 7 years ago

Thanks for your report.

It is a pity that Chrome extension can't auto inject script to some pages, like about:blank and chrome-extension://web-page-from-other-extension.html in your case.

Maybe we could add a button to extension bar(browser action), which inject $i to current tab when user click it. I think this way could partly solve your problem.

it is on the way, next version probably.