All Projects → pd4d10 → Console Importer

pd4d10 / Console Importer

Licence: mit
Easily import JS and CSS resources from Chrome console.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Console Importer

Archiveror
Archiveror will help you preserve the webpages you love. 💾
Stars: ✭ 246 (-42.25%)
Mutual labels:  chrome-extension, browser-extension
Hide Files On Github
Chrome extension - Hide nonessential files from the GitHub file browser
Stars: ✭ 277 (-34.98%)
Mutual labels:  chrome-extension, browser-extension
Chromelogger
chrome extension for server side console logging
Stars: ✭ 884 (+107.51%)
Mutual labels:  console, chrome-extension
Refined Github
Browser extension that simplifies the GitHub interface and adds useful features
Stars: ✭ 16,446 (+3760.56%)
Mutual labels:  chrome-extension, browser-extension
Svg Screenshots
📸🧩 Browser extension to take scalable, semantic, accessible screenshots of websites in SVG format.
Stars: ✭ 404 (-5.16%)
Mutual labels:  chrome-extension, browser-extension
Cato
Spotlight and alfred app like search in your browser 🔍.
Stars: ✭ 237 (-44.37%)
Mutual labels:  chrome-extension, browser-extension
Web Archives
Browser extension for viewing archived and cached versions of web pages
Stars: ✭ 263 (-38.26%)
Mutual labels:  chrome-extension, browser-extension
Awesome Browser Extensions For Github
A collection of awesome browser extensions for GitHub.
Stars: ✭ 2,255 (+429.34%)
Mutual labels:  chrome-extension, browser-extension
Browser Extension Template
📕 Barebones boilerplate with webpack, options handler and auto-publishing
Stars: ✭ 296 (-30.52%)
Mutual labels:  chrome-extension, browser-extension
Memex
Browser Extension to full-text search your browsing history & bookmarks.
Stars: ✭ 3,344 (+684.98%)
Mutual labels:  chrome-extension, browser-extension
Ghosttext
👻 Use your text editor to write in your browser. Everything you type in the editor will be instantly updated in the browser (and vice versa).
Stars: ✭ 2,614 (+513.62%)
Mutual labels:  chrome-extension, browser-extension
Extanalysis
Browser Extension Analysis Framework - Scan, Analyze Chrome, firefox and Brave extensions for vulnerabilities and intels
Stars: ✭ 351 (-17.61%)
Mutual labels:  chrome-extension, browser-extension
Grasp
A reliable org-capture browser extension for Chrome/Firefox
Stars: ✭ 193 (-54.69%)
Mutual labels:  chrome-extension, browser-extension
Contributors On Github
🌵 Show stats about contributors on github
Stars: ✭ 391 (-8.22%)
Mutual labels:  chrome-extension, browser-extension
Azure Mask
A browser extension (Chrome, Firefox) that toggles concealment of sensitive information found in the Azure Portal web page such as Subscription Id's
Stars: ✭ 189 (-55.63%)
Mutual labels:  chrome-extension, browser-extension
Glee
Keyboard glee for your web.
Stars: ✭ 182 (-57.28%)
Mutual labels:  console, chrome-extension
Find
A find-in-page extension for Chrome and Firefox that supports regular expressions.
Stars: ✭ 157 (-63.15%)
Mutual labels:  chrome-extension, browser-extension
Spotify Lyrics
🎉 Desktop Spotify Web Player Instant Synchronised Lyrics
Stars: ✭ 162 (-61.97%)
Mutual labels:  chrome-extension, browser-extension
Jjb
一个帮助你自动申请京东价格保护的chrome拓展
Stars: ✭ 3,083 (+623.71%)
Mutual labels:  chrome-extension, browser-extension
Buster
Captcha solver extension for humans
Stars: ✭ 4,244 (+896.24%)
Mutual labels:  chrome-extension, browser-extension

Console Importer

Build Status codecov Chrome Web Store Chrome Web Store Chrome Web Store

Demo

Installation

Install it from Chrome Web Store:

https://chrome.google.com/webstore/detail/console-importer/hgajpakhafplebkdljleajgbpdmplhie

Usage

Open Chrome devtools console, a function named $i could be used to import JavaScript and CSS resources.

$i('jquery')

Import specific version:

$i('[email protected]')

Also, you can import a valid script URL:

$i('https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js')

CSS is supported, too:

$i('https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css')

Trouble shooting

Q: $i doesn't work as expected

Some websites like Google Inbox already have $i used as a global variable. This extension doesn't overwrite it.

You can use console.$i on these websites.

Q: $i fail to import resources

On some websites like GitHub, $i will fail to import resources. Console warning may be like follows:

Refused to load the stylesheet 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css' because it violates the following Content Security Policy directive: "style-src 'unsafe-inline' assets-cdn.github.com".

It is because of strict Content Security Policy of these websites. For more information, see Content Security Policy (CSP) wiki

How does it work?

  • If it is like a JavaScript lib name, like jquery, try to load it from cdnjs
  • If it has version number, like [email protected], try to load it from unpkg
  • If it is a valid URL(CSS or JS), load it directly

For advanced use, there are also two functions $i.unpkg and $i.cdnjs which could be used to import resources from specific CDN.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].