mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 23:33:31 +00:00
rename agilebits stuff to bitwarden
This commit is contained in:
@@ -1,32 +1,32 @@
|
|||||||
@-webkit-keyframes onepasswordfill {
|
@-webkit-keyframes bitwardenfill {
|
||||||
0% {
|
0% {
|
||||||
-webkit-transform: scale(1.0,1.0);
|
-webkit-transform: scale(1.0, 1.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
50% {
|
50% {
|
||||||
-webkit-transform: scale(1.2,1.2);
|
-webkit-transform: scale(1.2, 1.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
100% {
|
100% {
|
||||||
-webkit-transform: scale(1.0,1.0);
|
-webkit-transform: scale(1.0, 1.0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@-moz-keyframes onepasswordfill {
|
@-moz-keyframes bitwardenfill {
|
||||||
0% {
|
0% {
|
||||||
transform: scale(1.0,1.0);
|
transform: scale(1.0, 1.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
50% {
|
50% {
|
||||||
transform: scale(1.2,1.2);
|
transform: scale(1.2, 1.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
100% {
|
100% {
|
||||||
transform: scale(1.0,1.0);
|
transform: scale(1.0, 1.0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.com-agilebits-onepassword-extension-animated-fill {
|
.com-bitwarden-browser-animated-fill {
|
||||||
animation: onepasswordfill 200ms ease-in-out 0ms 1;
|
animation: bitwardenfill 200ms ease-in-out 0ms 1;
|
||||||
-webkit-animation: onepasswordfill 200ms ease-in-out 0ms 1;
|
-webkit-animation: bitwardenfill 200ms ease-in-out 0ms 1;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,6 +36,7 @@
|
|||||||
3. Unminify and format to meet Mozilla review requirements.
|
3. Unminify and format to meet Mozilla review requirements.
|
||||||
4. Remove unnecessary input types from getFormElements query selector and limit number of elements returned.
|
4. Remove unnecessary input types from getFormElements query selector and limit number of elements returned.
|
||||||
5. Remove fakeTested prop.
|
5. Remove fakeTested prop.
|
||||||
|
6. Rename com.agilebits.* stuff to com.bitwarden.*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function collect(document, undefined) {
|
function collect(document, undefined) {
|
||||||
@@ -44,8 +45,10 @@
|
|||||||
// END MODIFICATION
|
// END MODIFICATION
|
||||||
|
|
||||||
document.elementsByOPID = {};
|
document.elementsByOPID = {};
|
||||||
document.addEventListener('input', function (canuf) {
|
document.addEventListener('input', function (inputevent) {
|
||||||
false !== canuf.a && 'input' === canuf.target.tagName.toLowerCase() && (canuf.target.dataset['com.agilebits.onepassword.userEdited'] = 'yes');
|
inputevent.a !== false &&
|
||||||
|
inputevent.target.tagName.toLowerCase() === 'input' &&
|
||||||
|
(inputevent.target.dataset['com.bitwarden.browser.userEdited'] = 'yes');
|
||||||
}, true);
|
}, true);
|
||||||
|
|
||||||
function getPageDetails(theDoc, oneShotId) {
|
function getPageDetails(theDoc, oneShotId) {
|
||||||
@@ -264,7 +267,9 @@
|
|||||||
addProp(field, 'htmlClass', getElementAttrValue(el, 'class'));
|
addProp(field, 'htmlClass', getElementAttrValue(el, 'class'));
|
||||||
addProp(field, 'tabindex', getElementAttrValue(el, 'tabindex'));
|
addProp(field, 'tabindex', getElementAttrValue(el, 'tabindex'));
|
||||||
addProp(field, 'title', getElementAttrValue(el, 'title'));
|
addProp(field, 'title', getElementAttrValue(el, 'title'));
|
||||||
addProp(field, 'userEdited', !!el.dataset['com.agilebits.onepassword.userEdited']);
|
// START MODIFICATION
|
||||||
|
addProp(field, 'userEdited', !!el.dataset['com.browser.browser.userEdited']);
|
||||||
|
// END MODIFICATION
|
||||||
|
|
||||||
if ('hidden' != toLowerString(el.type)) {
|
if ('hidden' != toLowerString(el.type)) {
|
||||||
addProp(field, 'label-tag', getLabelTag(el));
|
addProp(field, 'label-tag', getLabelTag(el));
|
||||||
@@ -823,9 +828,11 @@
|
|||||||
setValueForElement(el);
|
setValueForElement(el);
|
||||||
afterValSetFunc(el);
|
afterValSetFunc(el);
|
||||||
setValueForElementByEvent(el);
|
setValueForElementByEvent(el);
|
||||||
canSeeElementToStyle(el) && (el.className += ' com-agilebits-onepassword-extension-animated-fill',
|
canSeeElementToStyle(el) && (el.className += ' com-bitwarden-browser-animated-fill',
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
el && el.className && (el.className = el.className.replace(/(\\s)?com-agilebits-onepassword-extension-animated-fill/, ''));
|
// START MODIFICATION
|
||||||
|
el && el.className && (el.className = el.className.replace(/(\\s)?com-bitwarden-browser-animated-fill/, ''));
|
||||||
|
// END MODIFICATION
|
||||||
}, styleTimeout));
|
}, styleTimeout));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user