summaryrefslogtreecommitdiff
path: root/qutebrowser/javascript
AgeCommit message (Collapse)Author
2021-08-02Add support for overrideMimeType in Greasemonkey scriptsjcromero
2021-05-18Add a new site-specific quirk for Google DocsFlorian Bruhin
See #6464, #5472, #4805, #4810 e010afd3a20a86639396a9c844abfea7b23cc67a https://bugreports.qt.io/browse/QTBUG-69652
2021-04-28Add a site-specific quirk for DiscordFlorian Bruhin
Closes #4379
2021-02-24Handle regex special chars in replaceAll polyfillFlorian Bruhin
Fixes #6206 See #6047 and #6208
2021-02-11Add unit tests for JS quirksFlorian Bruhin
2021-01-26doc: Switch URLs to httpsFlorian Bruhin
2021-01-22Add String.replaceAll polyfillFlorian Bruhin
See #6047
2021-01-20Bump copyright yearsFlorian Bruhin
Closes #6015
2021-01-16webelem: Correctly handle null in find_at_posFlorian Bruhin
2021-01-08Move JS quirks into subfolderFlorian Bruhin
2020-12-28fixed typing mistakefreddii
2020-11-20lint: Bump up eslint/yamllint line length to 88Florian Bruhin
To agree with what we do via Black for Python
2020-11-19Fix lintFlorian Bruhin
2020-11-19Add polyfill/quirk for Object.fromEntries()Florian Bruhin
With Qt 5.12, https://www.vr.fi/en fails to load connections because it uses Object.fromEntries() which was added in Chromium 73: https://caniuse.com/mdn-javascript_builtins_object_fromentries however, Qt 5.12 is based on Chromium 69. This adds a polyfill from here: https://gitlab.com/moongoal/js-polyfill-object.fromentries/-/tree/master Possible alternatives: https://github.com/es-shims/Object.fromEntries (too complex) https://github.com/feross/fromentries/blob/master/index.js (not actually a polyfill but a "ponyfill", uses other unsupported JS features)
2020-11-04old qt: Update caret handlingFlorian Bruhin
2020-11-04old qt: Remove legacy printing supportFlorian Bruhin
2020-08-13Fix lintFlorian Bruhin
2020-08-13Fix site-specific quirk for QtWebEngineFlorian Bruhin
2020-07-23Add yamllintFlorian Bruhin
2020-07-16Add underscoresFlorian Bruhin
2020-07-16Merge remote-tracking branch 'origin/pr/4722'Florian Bruhin
2020-07-16hints/webelem: Handle Twitter bootstrap checkboxesFlorian Bruhin
See #178
2020-07-16webelem: Refactor visibility handling for hintsFlorian Bruhin
- Split off is_hidden_css from is_visible - Always check visibility before comparing rects - Make the ACE check more narrow-scoped - Remove the area check, which seems to be Firefox specific
2020-06-08Add quirk for missing globalThisFlorian Bruhin
globalThis was introduced in Chrome 71: https://caniuse.com/#feat=mdn-javascript_builtins_globalthis Since those websites are quite common and we probably want to continue supporting Qt 5.12 for a bit, let's bite the bullet and add a small polyfill, because it's trivial. Fixes #5486
2020-05-22eslint: Turn off no-negated-conditionFlorian Bruhin
2020-05-22caret: Use strings instead of ints for enumsFlorian Bruhin
2020-05-22caret: Fix toggling behavior with QtWebEngineFlorian Bruhin
The behavior when pressing `v` in line selection mode was different between QtWebKit and QtWebEngine: With QtWebKit, normal selection mode was entered, while with QtWebEngine, selection mode was left. Do the former with QtWebEngine as well, as that's also what vim does.
2020-05-22caret: Style improvements for line modeFlorian Bruhin
2020-05-11removed selectionEnabled function in caret.jssvetelna
2020-05-02implementing visual-line-mode on webengine sidesvetelna
2020-04-30Fix some LGTM issuesFlorian Bruhin
Closes #4678
2020-03-24Improve WhatsApp quirkFlorian Bruhin
Probably faster to search for the link rather than a full-text search, and it works in any language.
2020-03-24Move WhatsApp quirk to separate fileFlorian Bruhin
2020-03-07Use a shared window proxy for Greasemonkey scriptsJordan Cannon
Using a new proxy for each script causes incompatability with some Greasemonkey scripts. See #5266.
2020-01-04Adjust copyrights for 2020Florian Bruhin
2019-08-20eslint: Turn off new function-call-argument-newline ruleFlorian Bruhin
2019-08-01Fix some typosFlorian Bruhin
2019-05-11Merge branch 'master' of https://github.com/qutebrowser/qutebrowser into ↵Jay Kamat
jay/contenteditable
2019-05-06Add delete target for hintsJay Kamat
2019-04-17Use isContentEditable as a fallback for determining if editableJay Kamat
2019-03-28Merge remote-tracking branch 'origin/pr/4513'Florian Bruhin
2019-03-18Use window.hasOwnProperty for window._qutebrowserFlorian Bruhin
With an element like this in the page: <h2 id="_qutebrowser">qutebrowser</h2> accessing window._qutebrowser will return the HTMLElement (thanks, JS...), making qutebrowser's JS think it's already initialized when it actually isn't. Fixes #4633
2019-03-05Turn off named capture group eslint warningJay Kamat
We cannot use named capture groups, as older versions of chrome (from 5.9) do not support them.
2019-02-22Update copyright for 2019Jay Kamat
2019-02-14Fix lint errorsJay Kamat
2019-01-09Fix linting problems and write feature testsadam
Changes to be committed: modified: qutebrowser/components/caretcommands.py modified: qutebrowser/javascript/caret.js modified: tests/end2end/features/caret.feature
2019-01-07Implement caret cursor switch (#3714, webengine)adam
Issue https://github.com/qutebrowser/qutebrowser/issues/3714 Only for WebEngine, not for WebKit. Changes to be committed: modified: qutebrowser/browser/browsertab.py Add "reverse_selection" to AbstractTab modified: qutebrowser/browser/webengine/webenginetab.py Implement "reverse_selection" in WebEngineTab modified: qutebrowser/components/caretcommands.py Register "reverse-selection" command modified: qutebrowser/config/configdata.yml Bind "reverse-selection" to o modified: qutebrowser/javascript/caret.js Write "reverseSelection" function
2018-12-29Add mutation observer when documentElement does not exist yetJay Kamat
2018-12-29Merge branch 'master' into stylesheet-fixJay Kamat
2018-12-10Fix lintFlorian Bruhin