jamesyu / gmailr Goto Github PK
View Code? Open in Web Editor NEWA Gmail Javascript API
License: MIT License
A Gmail Javascript API
License: MIT License
I'm seeing the following error in my console at random times:
Uncaught ReferenceError: $LAB is not defined
It pops from time to time, but most of the time the page is loading properly. Any idea what might be causing this?
Error getting canvas_frame for delayed_loader
line 77.
Gmail changed their view and there is no longer a canvas_frame.
Uncaught TypeError: undefined is not a function
In main.js:
When trying to access the Gmailr 'body' and 'canvas' objects, it seems that they are only responsive to JQuery calls $("tagname", [object]). Selecting by class or id doesn't seem to return any elements for known id's or classes. Standard Javascript DOM traversal also doesn't seem to work on the objects.
I have been able to reach the DOM using notations such as:
top.document.getElementsByTagName("iframe")[4].contentDocument;
I may just need to dig deeper into the library, but has anyone else found similar issues?
Also, this may take more digging, but I can't seem to find where top is explicitly declared (I was hoping maybe it could be used to add the support for standard Javascript DOM traversal to the Gmailr object.
Does this extension work in other languages?
because I only get the cargo manes in the English version of gmail.
In the Spanish version, the following message remains loading several times:
"101gmailr.js: 14 Calling delayed loader ..."
Can I add the custom button at the compose page in gmail.
Not sure if anyone is maintaining this or interested, but in case someone comes across the same issue I have...
The "new" gmail interface that is being phased in in mid to late 2018 breaks this plugin.
The specific issue happens in line 243 of gmailr.js
Line 243 in 0c588f3
Gmail no longer includes the iframe with this script. The script itself is included in the document itself.
This seems to fix the issue.
try{ win = top.document.getElementById("js_frame").contentDocument.defaultView; //Old Gmail } catch(e){ win = window; //New Gmail }
Be aware that there are a whole host of other issues that cropped up with this "new" interface...One of which being the format of the data that is sent out (It is no longer a url string...It is now a json object).
Does this API still work, and is fine?
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.