Add userscripts - dotfiles - leot's dotfiles
 (HTM) hg clone https://bitbucket.org/iamleot/dotfiles
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) changeset c35bda076fc6864c1589cda201de7ebef4ea909f
 (DIR) parent a4dbd8e7683ead55e370774e3668c590b3510b24
 (HTM) Author: Leonardo Taccari <iamleot@gmail.com>
       Date:   Thu, 27 Sep 2018 02:35:39 
       
       Add userscripts
       
       Diffstat:
        local/share/luakit/scripts/economist.user.js                 |   9 ++++++
        local/share/luakit/scripts/internazionale.user.js            |  11 +++++++
        local/share/luakit/scripts/medium.user.js                    |  12 ++++++++
        local/share/luakit/scripts/ondarock.user.js                  |  10 ++++++
        local/share/luakit/scripts/technologyreview-download.user.js |  10 ++++++
        local/share/luakit/scripts/technologyreview.user.js          |  10 ++++++
        local/share/luakit/scripts/twitter.user.js                   |  18 ++++++++++++
        7 files changed, 80 insertions(+), 0 deletions(-)
       ---
       diff -r a4dbd8e7683e -r c35bda076fc6 local/share/luakit/scripts/economist.user.js
       --- /dev/null   Thu Jan 01 00:00:00 1970 +0000
       +++ b/local/share/luakit/scripts/economist.user.js      Thu Sep 27 02:35:39 2018 +0200
       @@ -0,0 +1,9 @@
       +// ==UserScript==
       +// @name economist
       +// @descript Remove ads from Economist
       +// @include http*://www.economist.com/*
       +// ==/UserScript==
       +
       +document.querySelectorAll("div.fe-blogs__top-ad-wrapper").forEach(function(e) {
       +       e.remove();
       +});
       diff -r a4dbd8e7683e -r c35bda076fc6 local/share/luakit/scripts/internazionale.user.js
       --- /dev/null   Thu Jan 01 00:00:00 1970 +0000
       +++ b/local/share/luakit/scripts/internazionale.user.js Thu Sep 27 02:35:39 2018 +0200
       @@ -0,0 +1,11 @@
       +// ==UserScript==
       +// @name internazionale
       +// @description Remove ads from Internazionale
       +// @include http*://www.internazionale.it/*
       +// ==/UserScript==
       +
       +[".ads_content_top", ".content_adv", ".wrapAd"].forEach(function(c) {
       +       document.querySelectorAll(c).forEach(function(e) {
       +               e.remove();
       +       });
       +});
       diff -r a4dbd8e7683e -r c35bda076fc6 local/share/luakit/scripts/medium.user.js
       --- /dev/null   Thu Jan 01 00:00:00 1970 +0000
       +++ b/local/share/luakit/scripts/medium.user.js Thu Sep 27 02:35:39 2018 +0200
       @@ -0,0 +1,12 @@
       +// ==UserScript==
       +// @name medium
       +// @description Remove bar and bottom banner on Medium
       +// @include http*://medium.com/*
       +// @include http*://hackernoon.com/*
       +// ==/UserScript==
       +
       +["div.metabar", "div.u-bottom0"].forEach(function(c) {
       +       document.querySelectorAll(c).forEach(function(e) {
       +               e.remove();
       +       });
       +});
       diff -r a4dbd8e7683e -r c35bda076fc6 local/share/luakit/scripts/ondarock.user.js
       --- /dev/null   Thu Jan 01 00:00:00 1970 +0000
       +++ b/local/share/luakit/scripts/ondarock.user.js       Thu Sep 27 02:35:39 2018 +0200
       @@ -0,0 +1,10 @@
       +// ==UserScript==
       +// @name ondarock
       +// @description Remove the bottom banner on OndaRock
       +// @include http*://www.ondarock.it/*
       +// ==/UserScript==
       +
       +e = document.querySelector("#bottom-banner");
       +if (e) {
       +       e.remove();
       +}
       diff -r a4dbd8e7683e -r c35bda076fc6 local/share/luakit/scripts/technologyreview-download.user.js
       --- /dev/null   Thu Jan 01 00:00:00 1970 +0000
       +++ b/local/share/luakit/scripts/technologyreview-download.user.js      Thu Sep 27 02:35:39 2018 +0200
       @@ -0,0 +1,10 @@
       +// ==UserScript==
       +// @name technologyreview-download
       +// @description Show just the article of The Download
       +// @include http*://www.technologyreview.com/the-download/*/*
       +// ==/UserScript==
       +
       +a = document.querySelector("article");
       +if (a) {
       +       document.body.replaceWith(a);
       +}
       diff -r a4dbd8e7683e -r c35bda076fc6 local/share/luakit/scripts/technologyreview.user.js
       --- /dev/null   Thu Jan 01 00:00:00 1970 +0000
       +++ b/local/share/luakit/scripts/technologyreview.user.js       Thu Sep 27 02:35:39 2018 +0200
       @@ -0,0 +1,10 @@
       +// ==UserScript==
       +// @name technologyreview
       +// @description Remove the counter at the bottom of the page
       +// @include http*://www.technologyreview.com/s/*
       +// ==/UserScript==
       +
       +e = document.querySelector("div.meter");
       +if (e) {
       +       e.remove();
       +}
       diff -r a4dbd8e7683e -r c35bda076fc6 local/share/luakit/scripts/twitter.user.js
       --- /dev/null   Thu Jan 01 00:00:00 1970 +0000
       +++ b/local/share/luakit/scripts/twitter.user.js        Thu Sep 27 02:35:39 2018 +0200
       @@ -0,0 +1,18 @@
       +// ==UserScript==
       +// @name twitter
       +// @description Adjust and clean up timeline of Mobile Twitter
       +// @include http*://mobile.twitter.com/*
       +// ==/UserScript==
       +
       +["#brand_bar", ".toast", "#footer"].forEach(function(c) {
       +       document.querySelectorAll(c).forEach(function(e) {
       +               e.remove();
       +       });
       +});
       +
       +a = document.querySelector("#container");
       +if (a) {
       +       a.style.width = "640px";
       +       a.style.marginTop = "20px";
       +       a.style.borderWidth = "1px";
       +}