Skip to content

Commit ba8b3d3

Browse files
author
maro114510
committed
fix: Delete unneeded
1 parent 9881868 commit ba8b3d3

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

content.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,6 @@ async function getSavedEntriesWithUrls(settings) {
254254
continue;
255255
}
256256

257-
entry.scrollIntoView({ block: "center", inline: "center" });
258-
await revealToolbar(entry);
259257
const button = findUnsaveButton(entry);
260258
if (!button) {
261259
continue;
@@ -269,17 +267,12 @@ async function getSavedEntriesWithUrls(settings) {
269267
}
270268

271269
async function unsaveEntry(entry, knownButton) {
272-
entry.scrollIntoView({ block: "center", inline: "center" });
273-
await revealToolbar(entry);
274-
await delay(120);
275270
const button = knownButton || findUnsaveButton(entry);
276271
if (!button) {
277272
return false;
278273
}
279274
clickElement(button);
280-
await delay(80);
281-
activateAsButton(button);
282-
await delay(120);
275+
await delay(100);
283276
return true;
284277
}
285278

@@ -307,8 +300,6 @@ async function revealToolbar(entry) {
307300
// =============================================================================
308301

309302
function clickElement(element) {
310-
element.scrollIntoView({ block: "center", inline: "center" });
311-
312303
const mouseEvents = [
313304
"mouseover",
314305
"pointerdown",

0 commit comments

Comments
 (0)