Add a userscript for nytimes.com to remove {top,bottom}-wrapper-s. - dotfiles - leot's dotfiles
(HTM) hg clone https://bitbucket.org/iamleot/dotfiles
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) changeset 34c57055208a03dd806865f3dfb96948611ccc9d
(DIR) parent e3fe2bdceb41881b113cf45f74a7a5d3d9fc7b6f
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Sat, 29 Sep 2018 12:45:49
Add a userscript for nytimes.com to remove {top,bottom}-wrapper-s.
Diffstat:
local/share/luakit/scripts/nytimes.user.js | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff -r e3fe2bdceb41 -r 34c57055208a local/share/luakit/scripts/nytimes.user.js
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/local/share/luakit/scripts/nytimes.user.js Sat Sep 29 12:45:49 2018 +0200
@@ -0,0 +1,11 @@
+// ==UserScript==
+// @name nytimes
+// @description Remove top and bottom banners on The New York Times
+// @include http*://www.nytimes.com/*
+// ==/UserScript==
+
+["#top-wrapper", "#bottom-wrapper"].forEach(function(c) {
+ document.querySelectorAll(c).forEach(function(e) {
+ e.remove();
+ });
+});