-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbtdd.js
22 lines (19 loc) · 786 Bytes
/
btdd.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*!
* Back To Drive v0.3.0 (http://amazansky.github.io/back-to-drive)
* Copyright 2015-2020 Alex Mazansky
* Licensed under MIT
* btdd.js
*/
var container = document.querySelector('#docs-branding-container a');
var img = document.querySelectorAll(".docs-branding-icon-img")[1]
container.href = "http://drive.google.com";
img.className = "docs-branding-icon-img docs-branding-icon-drive";
var observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutation) {
if (mutation.type == "attributes" && container.getAttribute("data-tooltip") != "Back to Drive") {
container.setAttribute("data-tooltip", "Back to Drive");
container.setAttribute("aria-label", "Back to Drive");
}
});
});
observer.observe(container, { attributes: true });