fix(browser-extension): user is able to duplicate issues if clicking too fast
This commit is contained in:
parent
d97c73d062
commit
d6f0e5c459
@ -1,59 +0,0 @@
|
||||
action.com###CybotCookiebotDialogBodyLevelButtonLevelOptinDeclineAll##click
|
||||
amazon.de###sp-cc-rejectall-link##click
|
||||
automobielmanagement.nl##body > *##resetAll##filter
|
||||
bilbaomuseoa.eus##.alert_message .btn-confirm##click
|
||||
breitbart.com##.twitter-tweet##resetAll##display
|
||||
breitbart.com##.twitter-tweet##resetAll##visibility
|
||||
buscotelefonosgratis.es###cookie_action_close_header_reject##click
|
||||
chollometro.com##[data-t="continueWithoutAccepting"]##click
|
||||
classicube.net###acceptcookies##click
|
||||
compact-online.de##[id*="bnnr-body-rightSide-"] div + div > span##click
|
||||
consent.google##[aria-label="Reject all"]##click
|
||||
consent.yahoo##.reject-all##click
|
||||
consent.youtube##[aria-label="Reject all"]##click
|
||||
dailymotion.com##[class*="TCF2Popup__containerButtons"] > button:nth-child(2)##click
|
||||
dealabs.com##[data-t="continueWithoutAccepting"]##click
|
||||
fiberplane.dev##button[aria-label="Close Banner"]##click
|
||||
foto-erhardt.de##[class="modal show"]##click
|
||||
gamestar.de###content##reset##filter
|
||||
gettr.com##button.bold##click
|
||||
gmx.com###onetrust-accept-btn-handler##click
|
||||
gmx.net##[data-section="accept"]##click
|
||||
golem.de##[title="Zustimmen und weiter"]##click
|
||||
google##[aria-label*="Google"][role="dialog"] button:not([aria-label]):not([tabindex]):first-child##click
|
||||
google##[aria-label="Alle ablehnen"]##click
|
||||
google##[aria-label="Odrzuć wszystko"]##click
|
||||
google##[aria-label="Rechazar todo"]##click
|
||||
google##[aria-label="Recusar tudo"]##click
|
||||
google##[aria-label="Reject all"]##click
|
||||
google##[aria-label="Rejeitar tudo"]##click
|
||||
google##[aria-label="Respinge tot"]##click
|
||||
google##[aria-label="Rifiuta tutto"]##click
|
||||
google##[aria-label="Tout refuser"]##click
|
||||
google##[aria-label="Отклонить все"]##click
|
||||
hagglezon.com##[data-test="cookie-submit"]##click
|
||||
instagram.com##[role="dialog"] > [style="display: flex; flex-direction: column; height: 100%; max-width: 100%;"] > button##click
|
||||
motorolasound.com###cookie-btn-denied##click
|
||||
mydealz.de##[data-t="continueWithoutAccepting"]##click
|
||||
myprivacy.dpgmedia##.pg-accept-button##click
|
||||
play.google##body > div##reset##z-index
|
||||
popeyes.es##.cookie-buttons > .cookie-buttons-column > div:last-child##click
|
||||
producthunt.com##[data-test="dismiss-CookiePopup"] button##click
|
||||
resonanz-labor.de###wrapwrap##reset##overflow
|
||||
staylibere.com##[class*="LayoutCookieBanner_buttons"] > button:last-child##click
|
||||
twitch.tv##[data-a-target="consent-banner-accept"]##click
|
||||
usnews.com###gdpr-modal-agree##click
|
||||
web.de###reminder##click
|
||||
web.dev##a[href*="cookies"] + button##click
|
||||
youtube##[aria-label="Alle ablehnen"]##click
|
||||
youtube##[aria-label="Odrzuć wszystko"]##click
|
||||
youtube##[aria-label="Rechazar todo"]##click
|
||||
youtube##[aria-label="Recusar tudo"]##click
|
||||
youtube##[aria-label="Reject all"]##click
|
||||
youtube##[aria-label="Rejeitar tudo"]##click
|
||||
youtube##[aria-label="Respinge tot"]##click
|
||||
youtube##[aria-label="Rifiuta tutto"]##click
|
||||
youtube##[aria-label="Tout refuser"]##click
|
||||
youtube##[aria-label="Отклонить все"]##click
|
||||
zdf.de###aria-dialog-cmp-error-dialog > .dialog-close##click
|
||||
zeit.de##[title="ACCEPT AND CONTINUE"]##click
|
255
data/skips.json
255
data/skips.json
@ -1,255 +0,0 @@
|
||||
{
|
||||
"domains": [
|
||||
"app.diagrams.net",
|
||||
"blog.sapegin.me",
|
||||
"buyagift.co.uk",
|
||||
"canvasjs.com",
|
||||
"chessmadra.com",
|
||||
"correos.es",
|
||||
"diariodeunlondinense.com",
|
||||
"flickr.com",
|
||||
"godotforums.org",
|
||||
"godotvr.github.io",
|
||||
"google.*",
|
||||
"gudog.com",
|
||||
"iea.org",
|
||||
"jobs.lever.co",
|
||||
"key-shortcut.com",
|
||||
"login.microsoftonline.com",
|
||||
"mantisbt.org",
|
||||
"mossgreen.github.io",
|
||||
"musicmeter.nl",
|
||||
"personio.com",
|
||||
"restaurantguru.com",
|
||||
"retroachievements.org",
|
||||
"seeklogo.com",
|
||||
"shuttledirect.com",
|
||||
"stackage.org",
|
||||
"steamcommunity.com",
|
||||
"substack.com",
|
||||
"sucuri.net",
|
||||
"tesla.com",
|
||||
"visualstudio.com",
|
||||
"xkcd.com",
|
||||
"yandex.ru",
|
||||
"youtube.com"
|
||||
],
|
||||
"tags": [
|
||||
"A",
|
||||
"ABBR",
|
||||
"ADDRESS",
|
||||
"AREA",
|
||||
"AUDIO",
|
||||
"B",
|
||||
"BADGE-SHAPE",
|
||||
"BASE",
|
||||
"BDI",
|
||||
"BDO",
|
||||
"BLOCKQUOTE",
|
||||
"BODY",
|
||||
"BR",
|
||||
"BUTTON",
|
||||
"CANVAS",
|
||||
"CAPTION",
|
||||
"CIRCLE",
|
||||
"CITE",
|
||||
"CLIPPATH",
|
||||
"CODE",
|
||||
"COL",
|
||||
"COLGROUP",
|
||||
"DATA",
|
||||
"DATALIST",
|
||||
"DD",
|
||||
"DEFS",
|
||||
"DEL",
|
||||
"DETAILS-MENU",
|
||||
"DETAILS",
|
||||
"DEVELOPMENT-MENU",
|
||||
"DFN",
|
||||
"DL",
|
||||
"DOM-IF",
|
||||
"DOM-REPEAT",
|
||||
"DT",
|
||||
"EM",
|
||||
"EMBED",
|
||||
"FIELDSET",
|
||||
"FIGCAPTION",
|
||||
"FIGURE",
|
||||
"G-EMOJI",
|
||||
"G",
|
||||
"H1",
|
||||
"H2",
|
||||
"H3",
|
||||
"H4",
|
||||
"H5",
|
||||
"H6",
|
||||
"HEAD",
|
||||
"HEADER",
|
||||
"HGROUP",
|
||||
"HR",
|
||||
"HTML",
|
||||
"I",
|
||||
"ICON-SHAPE",
|
||||
"IFRAME",
|
||||
"IMG",
|
||||
"INCLUDE-FRAGMENT",
|
||||
"INPUT",
|
||||
"INS",
|
||||
"IRON-A11Y-ANNOUNCER",
|
||||
"IRON-ICONSET-SVG",
|
||||
"IRON-MEDIA-QUERY",
|
||||
"KBD",
|
||||
"LABEL",
|
||||
"LEGEND",
|
||||
"LINEARGRADIENT",
|
||||
"LINK",
|
||||
"MAIN",
|
||||
"MAP",
|
||||
"MARK",
|
||||
"MASK",
|
||||
"MENU",
|
||||
"META",
|
||||
"METER",
|
||||
"NAV",
|
||||
"NOSCRIPT",
|
||||
"OBJECT",
|
||||
"OL",
|
||||
"OPTGROUP",
|
||||
"OPTION",
|
||||
"OUTPUT",
|
||||
"P",
|
||||
"PATH",
|
||||
"PICTURE",
|
||||
"POLYGON",
|
||||
"PRE",
|
||||
"PROGRESS",
|
||||
"Q",
|
||||
"RADIALGRADIENT",
|
||||
"RECT",
|
||||
"RELATIVE-TIME",
|
||||
"RP",
|
||||
"RT",
|
||||
"RUBY",
|
||||
"S",
|
||||
"SAMP",
|
||||
"SCRIPT",
|
||||
"SEARCH",
|
||||
"SELECT",
|
||||
"SLOT",
|
||||
"SMALL",
|
||||
"SOURCE",
|
||||
"SPAN",
|
||||
"STOP",
|
||||
"STRONG",
|
||||
"STYLE",
|
||||
"SUB",
|
||||
"SUMMARY",
|
||||
"SUP",
|
||||
"SVG",
|
||||
"TASK-LISTS",
|
||||
"TBODY",
|
||||
"TD",
|
||||
"TEMPLATE",
|
||||
"TEXT",
|
||||
"TEXTAREA",
|
||||
"TFOOT",
|
||||
"TH",
|
||||
"THEAD",
|
||||
"TIME",
|
||||
"TITLE",
|
||||
"TOOL-TIP",
|
||||
"TP-YT-APP-DRAWER",
|
||||
"TP-YT-PAPER-BUTTON",
|
||||
"TP-YT-PAPER-SPINNER-LITE",
|
||||
"TP-YT-PAPER-SPINNER",
|
||||
"TP-YT-PAPER-TOOLTIP",
|
||||
"TR",
|
||||
"TRACK",
|
||||
"U",
|
||||
"UL",
|
||||
"USE",
|
||||
"VAR",
|
||||
"VIDEO",
|
||||
"WBR",
|
||||
"YT-ANIMATED-ROLLING-NUMBER",
|
||||
"YT-ATTRIBUTED-STRING",
|
||||
"YT-BUTTON-SHAPE",
|
||||
"YT-COLLECTIONS-STACK",
|
||||
"YT-FORMATTED-STRING",
|
||||
"YT-GUIDE-MANAGER",
|
||||
"YT-HOTKEY-MANAGER",
|
||||
"YT-ICON-BADGE-SHAPE",
|
||||
"YT-ICON-BUTTON",
|
||||
"YT-ICON-SHAPE",
|
||||
"YT-ICON",
|
||||
"YT-IMAGE",
|
||||
"YT-IMG-SHADOW",
|
||||
"YT-INLINE-PLAYER-CONTROLS",
|
||||
"YT-INTERACTION",
|
||||
"YT-MDX-MANAGER",
|
||||
"YT-PAGE-NAVIGATION-PROGRESS",
|
||||
"YT-PLAYABILITY-ERROR-SUPPORTED-RENDERERS",
|
||||
"YT-PLAYLIST-MANAGER",
|
||||
"YT-TOUCH-FEEDBACK-SHAPE",
|
||||
"YTD-APP",
|
||||
"YTD-BADGE-SUPPORTED-RENDERER",
|
||||
"YTD-BROWSE",
|
||||
"YTD-BUTTON-RENDERER",
|
||||
"YTD-CHANNEL-LEGAL-INFO-RENDERER",
|
||||
"YTD-CHANNEL-NAME",
|
||||
"YTD-COMMENTS",
|
||||
"YTD-CONTINUATION-ITEM-RENDERER",
|
||||
"YTD-GHOST-GRID-RENDERER",
|
||||
"YTD-LOGO",
|
||||
"YTD-LOTTIE-PLAYER",
|
||||
"YTD-MASTHEAD",
|
||||
"YTD-MENU-RENDERER",
|
||||
"YTD-METADATA-ROW-CONTAINER-RENDERER",
|
||||
"YTD-MINI-GUIDE-ENTRY-RENDERER",
|
||||
"YTD-MINI-GUIDE-RENDERER",
|
||||
"YTD-MINIPLAYER-TOAST",
|
||||
"YTD-MINIPLAYER",
|
||||
"YTD-NOTIFICATION-TOPBAR-BUTTON-RENDERER",
|
||||
"YTD-PAGE-MANAGER",
|
||||
"YTD-PERMISSION-ROLE-BOTTOM-BAR-RENDERER",
|
||||
"YTD-PLAYER",
|
||||
"YTD-PLAYLIST-HEADER-RENDERER",
|
||||
"YTD-PLAYLIST-PANEL-RENDERER",
|
||||
"YTD-PLAYLIST-SIDEBAR-RENDERER",
|
||||
"YTD-PLAYLIST-THUMBNAIL",
|
||||
"YTD-POPUP-CONTAINER",
|
||||
"YTD-REFRESH",
|
||||
"YTD-RICH-GRID-MEDIA",
|
||||
"YTD-RICH-GRID-RENDERER",
|
||||
"YTD-RICH-GRID-ROW",
|
||||
"YTD-RICH-GRID-SLIM-MEDIA",
|
||||
"YTD-RICH-ITEM-RENDERER",
|
||||
"YTD-RICH-SECTION-RENDERER",
|
||||
"YTD-RICH-SHELF-RENDERER",
|
||||
"YTD-SEARCHBOX",
|
||||
"YTD-SENTIMENT-BAR-RENDERER",
|
||||
"YTD-SETTINGS-SIDEBAR-RENDERER",
|
||||
"YTD-SHELF-RENDERER",
|
||||
"YTD-STRUCTURED-DESCRIPTION-CONTENT-RENDERER",
|
||||
"YTD-TEXT-INLINE-EXPANDER",
|
||||
"YTD-THIRD-PARTY-MANAGER",
|
||||
"YTD-THUMBNAIL-OVERLAY-EQUALIZER",
|
||||
"YTD-THUMBNAIL-OVERLAY-NOW-PLAYING-RENDERER",
|
||||
"YTD-THUMBNAIL-OVERLAY-TIME-STATUS-RENDERER",
|
||||
"YTD-THUMBNAIL",
|
||||
"YTD-TOPBAR-LOGO-RENDERER",
|
||||
"YTD-TOPBAR-MENU-BUTTON-RENDERER",
|
||||
"YTD-TWO-COLUMN-BROWSE-RESULTS-RENDERER",
|
||||
"YTD-VIDEO-META-BLOCK",
|
||||
"YTD-VIDEO-OWNER-RENDERER",
|
||||
"YTD-VIDEO-PREVIEW",
|
||||
"YTD-VIDEO-PRIMARY-INFO-RENDERER",
|
||||
"YTD-VIDEO-QUALITY-PROMO-RENDERER",
|
||||
"YTD-WATCH-ENGAGEMENT-PANELS",
|
||||
"YTD-WATCH-FLEXY",
|
||||
"YTD-WATCH-INFO-TEXT",
|
||||
"YTD-WATCH-METADATA",
|
||||
"YTD-WATCH-NEXT-SECONDARY-RESULTS-RENDERER",
|
||||
"YTD-YOODLE-RENDERER"
|
||||
]
|
||||
}
|
12846
data/tokens.json
12846
data/tokens.json
File diff suppressed because it is too large
Load Diff
@ -195,7 +195,14 @@ function showReportDialog() {
|
||||
* @param {MouseEvent} event
|
||||
*/
|
||||
async function submitButtonClickHandler(event) {
|
||||
const target = event.currentTarget;
|
||||
|
||||
if (target.getAttribute('aria-disabled') === 'true') {
|
||||
return;
|
||||
}
|
||||
|
||||
event.preventDefault();
|
||||
target.setAttribute('aria-disabled', 'true');
|
||||
|
||||
const dialog = document.getElementById(reportDialogId);
|
||||
const formView = dialog?.getElementsByTagName('report-dialog-form-view')[0];
|
||||
|
@ -106,11 +106,16 @@ async function handleContentLoaded() {
|
||||
*/
|
||||
async function handleDatabaseRefresh(event) {
|
||||
const target = event.currentTarget;
|
||||
|
||||
if (target.getAttribute('aria-disabled') === 'true') {
|
||||
return;
|
||||
}
|
||||
|
||||
const checkIcon = target.querySelector('#refresh-database-check');
|
||||
const spinnerIcon = target.querySelector('#refresh-database-spinner');
|
||||
|
||||
target.setAttribute('data-refreshing', 'true');
|
||||
target.setAttribute('disabled', 'true');
|
||||
target.setAttribute('aria-disabled', 'true');
|
||||
await browser.runtime.sendMessage({ type: 'REFRESH_DATA' });
|
||||
checkIcon.style.setProperty('display', 'block');
|
||||
spinnerIcon.style.setProperty('display', 'none');
|
||||
@ -121,7 +126,7 @@ async function handleDatabaseRefresh(event) {
|
||||
window.setTimeout(() => {
|
||||
checkIcon.style.setProperty('display', 'none');
|
||||
spinnerIcon.style.setProperty('display', 'block');
|
||||
target.removeAttribute('disabled');
|
||||
target.removeAttribute('aria-disabled');
|
||||
target.setAttribute('data-animation', 'flip');
|
||||
}, 5000);
|
||||
}
|
||||
@ -147,13 +152,13 @@ async function handleLinkRedirect(event) {
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
async function handlePowerToggle(event) {
|
||||
const element = event.currentTarget;
|
||||
const target = event.currentTarget;
|
||||
const next = { enabled: !state.enabled };
|
||||
|
||||
browser.runtime.sendMessage({ hostname, state: next, type: 'SET_HOSTNAME_STATE' });
|
||||
browser.tabs.sendMessage(state.tabId, { type: next.enabled ? 'RUN' : 'RESTORE' });
|
||||
element.setAttribute('disabled', 'true');
|
||||
element.setAttribute('data-value', next.enabled ? 'on' : 'off');
|
||||
target.setAttribute('aria-disabled', 'true');
|
||||
target.setAttribute('data-value', next.enabled ? 'on' : 'off');
|
||||
window.close();
|
||||
}
|
||||
|
||||
|
@ -116,7 +116,7 @@ popup-data-button {
|
||||
transition: 0.4s;
|
||||
}
|
||||
|
||||
popup-data-button:disabled {
|
||||
popup-data-button[aria-disabled='true'] {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user