Add a userscript to remove footer in stackoverflow - dotfiles - leot's dotfiles
(HTM) hg clone https://bitbucket.org/iamleot/dotfiles
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) changeset e3fe2bdceb41881b113cf45f74a7a5d3d9fc7b6f
(DIR) parent 2e6dff84794703abf750567af7a2d6560b2fc31a
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Fri, 28 Sep 2018 00:20:07
Add a userscript to remove footer in stackoverflow
Diffstat:
local/share/luakit/scripts/stackoverflow.user.js | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff -r 2e6dff847947 -r e3fe2bdceb41 local/share/luakit/scripts/stackoverflow.user.js
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/local/share/luakit/scripts/stackoverflow.user.js Fri Sep 28 00:20:07 2018 +0200
@@ -0,0 +1,11 @@
+// ==UserScript==
+// @name stackoverflow
+// @description Remove footers from stackoverflow
+// @include http*://stackoverflow.com/*
+// ==/UserScript==
+
+["#js-gdpr-consent-banner", ".js-dismissable-hero"].forEach(function(c) {
+ document.querySelectorAll(c).forEach(function(e) {
+ e.remove();
+ });
+});