honestbleeps / babelext Goto Github PK
View Code? Open in Web Editor NEWBabelExt is a cross browser boilerplate/library for extension development
Home Page: http://babelext.com/
License: MIT License
BabelExt is a cross browser boilerplate/library for extension development
Home Page: http://babelext.com/
License: MIT License
It looks like BabelExt is missing functions for handling userscripts the way GreaseMonkey did.
The way I see it, this could best be accomplished, in an appropriately DIY fashion, by providing:
@keys
" converted to properties of the object, with strings as values (or arrays of strings when there is more than one instance of a key such as @require
). This function can then be used by eg. a build script that reads all files, then outputs a "userscripts.json" that will be read in at runtime to determine which scripts to include.@require
) in a new context (eg. XPCNativeWrapper in FF, with access to unsafeWindow
) either before or after pageload. It can also insert https://github.com/honestbleeps/BabelExt/blob/master/lib/extension.js#L44-51 and/or extension API functions based on @grant
.Any plans to expand to the dreaded IE?
Hi,
Can anyone tell me how can I create .crx file for chrome to distribute the extension?
Thanks
Raf
var BabelExt = (function() {
// define private variables here...
var instance = this;
instance.detectedBrowser = '';
Here why do you use this? I know browsers all have some kind of sandbox and you can access the real window
this way, but then I browse your code and can't find anything relies on window
, so why not use var instance = {};
?
It looks like RES is one of the preview Edge extensions. Was this updated to support Edge or was that a new implementation?
I'd love this feature. I could have fun with it. This would have to include hooks so I could run things when the icon was clicked and also to update the icon as I needed.
For me, BabelExt and the "Kitchen Sink Demo" works in Chrome, but under cfx run
(Firefox 29) I see no page modifications on http://babelext.com/sink.html. Seems the add-on is not running, although cfx/Firefox lists it under Add-Ons.
Is it the URL selector in main.js ("*.babelext.com" vs bare "babelext.com")? - dunno.
Just another note: the makelinks.sh script only works (on Ubuntu) with the shebang #!/bin/bash.
refresh theis page
Example added to extension.js:
BabelExt.xhr({
method: "GET",
url: 'http://www.babelext.com/',
onload: function(response) {
alert("YEAH!");
}
});
Error in safari console:
DataCloneError: DOM Exception 25: An object could not be cloned.
Safari version: 8.0.2 (10600.2.5)
Is the project dead? I was hoping this would keep being developed...
Firstly, extensions cannot be installed directly from a site anymore.
Second, even loading it as unpacked from a folder it doesnt do anything on: http://babelext.com/sink.html
Chrome Version 27.0.1453.110, tested on Linux 32-bit
I'd love to add a link to the context menu.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.