Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add reply button selector for text button labels mode (#738) #739

Merged
merged 1 commit into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# Changelog

## Version 1.1.13

- Fix reply button selector to support Gmail in text labels mode

## Version 1.1.12

- Use MutationObserver for DOM Node changes. Thanks @cancan101!
Expand Down
2 changes: 1 addition & 1 deletion src/gmail.js
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@
"false": !1,
"null": null
};
each(params.replace(/\+/g, " ").split("&"), function (v, j) {

Check warning on line 742 in src/gmail.js

View workflow job for this annotation

GitHub Actions / build (16.x)

'j' is defined but never used

Check warning on line 742 in src/gmail.js

View workflow job for this annotation

GitHub Actions / build (17.x)

'j' is defined but never used

Check warning on line 742 in src/gmail.js

View workflow job for this annotation

GitHub Actions / build (18.x)

'j' is defined but never used
var param = v.split("="),
key = decodeURIComponent(param[0]),
val,
Expand Down Expand Up @@ -790,7 +790,7 @@
}
};

api.tools.parse_actions = function(params, xhr) {

Check warning on line 793 in src/gmail.js

View workflow job for this annotation

GitHub Actions / build (16.x)

'xhr' is defined but never used

Check warning on line 793 in src/gmail.js

View workflow job for this annotation

GitHub Actions / build (17.x)

'xhr' is defined but never used

Check warning on line 793 in src/gmail.js

View workflow job for this annotation

GitHub Actions / build (18.x)

'xhr' is defined but never used

// upload_attachment event - if found, don"t check other observers. See issue #22
if(params.url.act === "fup" || params.url.act === "fuv" || params.body_is_object) {
Expand Down Expand Up @@ -1908,7 +1908,7 @@
}

let parsedResponse = [];
let originalResponse = response;

Check warning on line 1911 in src/gmail.js

View workflow job for this annotation

GitHub Actions / build (16.x)

'originalResponse' is assigned a value but never used

Check warning on line 1911 in src/gmail.js

View workflow job for this annotation

GitHub Actions / build (17.x)

'originalResponse' is assigned a value but never used

Check warning on line 1911 in src/gmail.js

View workflow job for this annotation

GitHub Actions / build (18.x)

'originalResponse' is assigned a value but never used
try {
// gmail post response structure
// )}]"\n<datalength><rawData>\n<dataLength><rawData>...
Expand Down Expand Up @@ -2087,7 +2087,7 @@
const win = api.helper.get_xhr_window();

api.tools.patch(win.XMLHttpRequest.prototype.open, (orig) => {
win.XMLHttpRequest.prototype.open = function (method, url, async, user, password) {

Check warning on line 2090 in src/gmail.js

View workflow job for this annotation

GitHub Actions / build (16.x)

'async' is defined but never used

Check warning on line 2090 in src/gmail.js

View workflow job for this annotation

GitHub Actions / build (16.x)

'user' is defined but never used

Check warning on line 2090 in src/gmail.js

View workflow job for this annotation

GitHub Actions / build (16.x)

'password' is defined but never used

Check warning on line 2090 in src/gmail.js

View workflow job for this annotation

GitHub Actions / build (17.x)

'async' is defined but never used

Check warning on line 2090 in src/gmail.js

View workflow job for this annotation

GitHub Actions / build (17.x)

'user' is defined but never used

Check warning on line 2090 in src/gmail.js

View workflow job for this annotation

GitHub Actions / build (17.x)

'password' is defined but never used

Check warning on line 2090 in src/gmail.js

View workflow job for this annotation

GitHub Actions / build (18.x)

'async' is defined but never used

Check warning on line 2090 in src/gmail.js

View workflow job for this annotation

GitHub Actions / build (18.x)

'user' is defined but never used

Check warning on line 2090 in src/gmail.js

View workflow job for this annotation

GitHub Actions / build (18.x)

'password' is defined but never used
var out = orig.apply(this, arguments);
this.xhrParams = {
method: method.toString(),
Expand Down Expand Up @@ -2353,7 +2353,7 @@
// if an object of actions (triggered events of format { event: [response] }) is passed, check if any of these are bound
if(typeof action === "object") {
var match = false;
$.each(action,function(key,response){

Check warning on line 2356 in src/gmail.js

View workflow job for this annotation

GitHub Actions / build (16.x)

'response' is defined but never used

Check warning on line 2356 in src/gmail.js

View workflow job for this annotation

GitHub Actions / build (17.x)

'response' is defined but never used

Check warning on line 2356 in src/gmail.js

View workflow job for this annotation

GitHub Actions / build (18.x)

'response' is defined but never used
if(typeof api.tracker.watchdog[type][key] === "object") match = true;
});
return match;
Expand Down Expand Up @@ -2389,7 +2389,7 @@
delete api.tracker.watchdog[type][action];
}
} else {
$.each(api.tracker.watchdog[type], function(act,callbacks) {

Check warning on line 2392 in src/gmail.js

View workflow job for this annotation

GitHub Actions / build (16.x)

'callbacks' is defined but never used

Check warning on line 2392 in src/gmail.js

View workflow job for this annotation

GitHub Actions / build (17.x)

'callbacks' is defined but never used

Check warning on line 2392 in src/gmail.js

View workflow job for this annotation

GitHub Actions / build (18.x)

'callbacks' is defined but never used
if(typeof api.tracker.watchdog[type][act] === "object") {
api.tracker.bound[act] -= api.tracker.watchdog[type][act].length;
api.tracker.bound[type] -= api.tracker.watchdog[type][act].length;
Expand Down Expand Up @@ -2746,7 +2746,7 @@

// observes every element inserted into the DOM by Gmail and looks at the classes on those elements,
// checking for any configured observers related to those classes
api.tools.insertion_observer = function(target, dom_observers, dom_observer_map, sub) {

Check warning on line 2749 in src/gmail.js

View workflow job for this annotation

GitHub Actions / build (16.x)

'sub' is defined but never used

Check warning on line 2749 in src/gmail.js

View workflow job for this annotation

GitHub Actions / build (17.x)

'sub' is defined but never used

Check warning on line 2749 in src/gmail.js

View workflow job for this annotation

GitHub Actions / build (18.x)

'sub' is defined but never used
//console.log("insertion", target, target.className);
if(!dom_observer_map) return;

Expand Down Expand Up @@ -4455,7 +4455,7 @@
attachments: "div.hq.gt div.aQH span.aZo",

// buttons
reply_button: "div[role=button].aaq",
reply_button: "div[role=button].aaq, div[role=button].bsQ",
menu_button: "div[role=button].aap",
details_button: "div[role=button].ajz"
};
Expand Down
Loading