From 703ed1915c69911a95cab6e1fb6524629c976800 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Thu, 3 Feb 2022 21:31:55 +0100 Subject: Thu Feb 3 09:31:55 PM CET 2022 --- .config/qutebrowser/config.py | 1 + .config/qutebrowser/greasemonkey/boursorama-css.js | 20 ------------------ .config/qutebrowser/greasemonkey/boursorama.js | 20 ++++++++++++++++++ .config/qutebrowser/greasemonkey/github-css.js | 14 ------------- .config/qutebrowser/greasemonkey/glassdoor-css.js | 19 ----------------- .config/qutebrowser/greasemonkey/glassdoor.js | 24 ++++++++++++++++++++++ .../qutebrowser/greasemonkey/no-sticky-headers.js | 15 -------------- .config/qutebrowser/greasemonkey/scaleway-css.js | 11 ---------- .config/qutebrowser/greasemonkey/scaleway.js | 11 ++++++++++ .config/qutebrowser/greasemonkey/scribe-css.js | 16 --------------- .config/qutebrowser/greasemonkey/scribe.js | 16 +++++++++++++++ .../qutebrowser/greasemonkey/stackoverflow-css.js | 15 -------------- .config/qutebrowser/greasemonkey/stackoverflow.js | 15 ++++++++++++++ 13 files changed, 87 insertions(+), 110 deletions(-) delete mode 100755 .config/qutebrowser/greasemonkey/boursorama-css.js create mode 100755 .config/qutebrowser/greasemonkey/boursorama.js delete mode 100755 .config/qutebrowser/greasemonkey/github-css.js delete mode 100755 .config/qutebrowser/greasemonkey/glassdoor-css.js create mode 100755 .config/qutebrowser/greasemonkey/glassdoor.js delete mode 100755 .config/qutebrowser/greasemonkey/no-sticky-headers.js delete mode 100755 .config/qutebrowser/greasemonkey/scaleway-css.js create mode 100755 .config/qutebrowser/greasemonkey/scaleway.js delete mode 100755 .config/qutebrowser/greasemonkey/scribe-css.js create mode 100755 .config/qutebrowser/greasemonkey/scribe.js delete mode 100755 .config/qutebrowser/greasemonkey/stackoverflow-css.js create mode 100755 .config/qutebrowser/greasemonkey/stackoverflow.js (limited to '.config/qutebrowser') diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py index c86a473..cd3695d 100755 --- a/.config/qutebrowser/config.py +++ b/.config/qutebrowser/config.py @@ -42,6 +42,7 @@ config.set('scrolling.smooth', False) config.set('qt.highdpi', False) config.set('qt.force_software_rendering', 'none') config.set('qt.args', select_qt_arguments()) +config.set('messages.timeout', 1000) config.bind(',m', 'spawn mpv {url}') diff --git a/.config/qutebrowser/greasemonkey/boursorama-css.js b/.config/qutebrowser/greasemonkey/boursorama-css.js deleted file mode 100755 index 771bc38..0000000 --- a/.config/qutebrowser/greasemonkey/boursorama-css.js +++ /dev/null @@ -1,20 +0,0 @@ -// ==UserScript== -// @name boursorama css -// @match *://*.boursorama.com/* -// @grant none -// ==/UserScript== - -GM_addStyle(` - div[id^='alert-random-'], - .chatbot, - .c-promotional-cards-wrapper, - .c-articles-wrapper, - .c-offers__entry-card { - width: 0px !important; - height: 0px !important; - visibility: hidden; - margin: 0px; - padding: 0px; - display: block; - } -`) diff --git a/.config/qutebrowser/greasemonkey/boursorama.js b/.config/qutebrowser/greasemonkey/boursorama.js new file mode 100755 index 0000000..771bc38 --- /dev/null +++ b/.config/qutebrowser/greasemonkey/boursorama.js @@ -0,0 +1,20 @@ +// ==UserScript== +// @name boursorama css +// @match *://*.boursorama.com/* +// @grant none +// ==/UserScript== + +GM_addStyle(` + div[id^='alert-random-'], + .chatbot, + .c-promotional-cards-wrapper, + .c-articles-wrapper, + .c-offers__entry-card { + width: 0px !important; + height: 0px !important; + visibility: hidden; + margin: 0px; + padding: 0px; + display: block; + } +`) diff --git a/.config/qutebrowser/greasemonkey/github-css.js b/.config/qutebrowser/greasemonkey/github-css.js deleted file mode 100755 index 3b954b2..0000000 --- a/.config/qutebrowser/greasemonkey/github-css.js +++ /dev/null @@ -1,14 +0,0 @@ -// ==UserScript== -// @name github css -// @match *://github.com/* -// @match *://gist.github.com/* -// @grant none -// ==/UserScript== - -/* -GM_addStyle(` - *, .BtnGroup-item { - border-radius: 0px !important; - } -`) -*/ diff --git a/.config/qutebrowser/greasemonkey/glassdoor-css.js b/.config/qutebrowser/greasemonkey/glassdoor-css.js deleted file mode 100755 index ad82b26..0000000 --- a/.config/qutebrowser/greasemonkey/glassdoor-css.js +++ /dev/null @@ -1,19 +0,0 @@ -// ==UserScript== -// @name glassdoor -// @match https://*.glassdoor.com/* -// @grant none -// ==/UserScript== - -window.addEventListener('load', function () { - window.onscroll = null; -}) - -window.addEventListener('load', function() { - let functions = [ - () => document.getElementById("ContentWallHardsell").remove(), - () => document.getElementsByTagName('body')[0].style.removeProperty("overflow"), - () => document.addEventListener("scroll", event => event.stopPropagation(), true), - () => document.addEventListener("mousemove", event => event.stopPropagation(), true), - ]; - functions.forEach(f => f()); -}); diff --git a/.config/qutebrowser/greasemonkey/glassdoor.js b/.config/qutebrowser/greasemonkey/glassdoor.js new file mode 100755 index 0000000..e6e44fc --- /dev/null +++ b/.config/qutebrowser/greasemonkey/glassdoor.js @@ -0,0 +1,24 @@ +// ==UserScript== +// @name glassdoor +// @match https://*.glassdoor.com/* +// @match https://*.glassdoor.fr/* +// @run-at document-end +// @grant none +// ==/UserScript== + +window.addEventListener('load', function () { + window.onscroll = null; + console.log('bbbbbbbbbbbbbb'); +}) + +window.addEventListener('load', function() { + let functions = [ + () => document.getElementById('HardsellOverlay').remove(), + () => document.getElementsByTagName('body')[0].style.removeProperty('overflow'), + () => document.addEventListener('scroll', event => event.stopPropagation(), true), + () => document.addEventListener('mousemove', event => event.stopPropagation(), true), + ]; + functions.forEach(f => f()); +}); + +console.log('aaaaaaaaaaaaa'); diff --git a/.config/qutebrowser/greasemonkey/no-sticky-headers.js b/.config/qutebrowser/greasemonkey/no-sticky-headers.js deleted file mode 100755 index e5eefa1..0000000 --- a/.config/qutebrowser/greasemonkey/no-sticky-headers.js +++ /dev/null @@ -1,15 +0,0 @@ -// ==UserScript== -// @name no sticky header -// @match *://*.substack.com/* -// @grant none -// ==/UserScript== - -(function () { - var i, elements = document.querySelectorAll('body *'); - - for (i = 0; i < elements.length; i++) { - if (getComputedStyle(elements[i]).position === 'fixed') { - elements[i].parentNode.removeChild(elements[i]); - } - } -})(); diff --git a/.config/qutebrowser/greasemonkey/scaleway-css.js b/.config/qutebrowser/greasemonkey/scaleway-css.js deleted file mode 100755 index 99955ca..0000000 --- a/.config/qutebrowser/greasemonkey/scaleway-css.js +++ /dev/null @@ -1,11 +0,0 @@ -// ==UserScript== -// @name scaleway css -// @match *://*.scaleway.com/* -// @grant none -// ==/UserScript== - -GM_addStyle(` - #outdated { - visibility: hidden; - } -`) diff --git a/.config/qutebrowser/greasemonkey/scaleway.js b/.config/qutebrowser/greasemonkey/scaleway.js new file mode 100755 index 0000000..99955ca --- /dev/null +++ b/.config/qutebrowser/greasemonkey/scaleway.js @@ -0,0 +1,11 @@ +// ==UserScript== +// @name scaleway css +// @match *://*.scaleway.com/* +// @grant none +// ==/UserScript== + +GM_addStyle(` + #outdated { + visibility: hidden; + } +`) diff --git a/.config/qutebrowser/greasemonkey/scribe-css.js b/.config/qutebrowser/greasemonkey/scribe-css.js deleted file mode 100755 index 60fc0e2..0000000 --- a/.config/qutebrowser/greasemonkey/scribe-css.js +++ /dev/null @@ -1,16 +0,0 @@ -// ==UserScript== -// @name scribe css -// @match *://scribe.rip/* -// @grant none -// ==/UserScript== - -GM_addStyle(` - body { - background-color: #ffffff; - font-family: monospace, monospace; - } - img { - border: 1px solid #000000; - } -`) - diff --git a/.config/qutebrowser/greasemonkey/scribe.js b/.config/qutebrowser/greasemonkey/scribe.js new file mode 100755 index 0000000..60fc0e2 --- /dev/null +++ b/.config/qutebrowser/greasemonkey/scribe.js @@ -0,0 +1,16 @@ +// ==UserScript== +// @name scribe css +// @match *://scribe.rip/* +// @grant none +// ==/UserScript== + +GM_addStyle(` + body { + background-color: #ffffff; + font-family: monospace, monospace; + } + img { + border: 1px solid #000000; + } +`) + diff --git a/.config/qutebrowser/greasemonkey/stackoverflow-css.js b/.config/qutebrowser/greasemonkey/stackoverflow-css.js deleted file mode 100755 index 6c98466..0000000 --- a/.config/qutebrowser/greasemonkey/stackoverflow-css.js +++ /dev/null @@ -1,15 +0,0 @@ -// ==UserScript== -// @name stackoverflow css -// @match *://*.stackoverflow.com/* -// @match *://*.stackexchange.com/* -// @match *://*.superuser.com/* -// @match *://*.serverfault.com/* -// @grant none -// ==/UserScript== - -GM_addStyle(` - .js-consent-banner, - .js-freemium-cta { - visibility: hidden; - } -`) diff --git a/.config/qutebrowser/greasemonkey/stackoverflow.js b/.config/qutebrowser/greasemonkey/stackoverflow.js new file mode 100755 index 0000000..6c98466 --- /dev/null +++ b/.config/qutebrowser/greasemonkey/stackoverflow.js @@ -0,0 +1,15 @@ +// ==UserScript== +// @name stackoverflow css +// @match *://*.stackoverflow.com/* +// @match *://*.stackexchange.com/* +// @match *://*.superuser.com/* +// @match *://*.serverfault.com/* +// @grant none +// ==/UserScript== + +GM_addStyle(` + .js-consent-banner, + .js-freemium-cta { + visibility: hidden; + } +`) -- cgit v1.2.3