Remove all userscript special comments - dotfiles - leot's dotfiles
(HTM) hg clone https://bitbucket.org/iamleot/dotfiles
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) changeset 71ff813d60cdeffe89aefd7388cb8d53ccca6296
(DIR) parent 69900ec281d9d18423126ca0c4629091ad6daae2
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Thu, 25 Oct 2018 23:40:33
Remove all userscript special comments
Needed a lot of space and hopefully a possible rationale will be present in the
commit message and/or if the userscript_*() function will do something not
completely trivial directly in the function.
Diffstat:
config/vimb/scripts.js | 77 --------------------------------------------------
1 files changed, 0 insertions(+), 77 deletions(-)
---
diff -r 69900ec281d9 -r 71ff813d60cd config/vimb/scripts.js
--- a/config/vimb/scripts.js Thu Oct 25 23:22:45 2018 +0200
+++ b/config/vimb/scripts.js Thu Oct 25 23:40:33 2018 +0200
@@ -1,8 +1,3 @@
-// ==UserScript==
-// @name bandcamp
-// @description Show images from Bandcamp without JavaScript
-// @include http*://bandcamp.com/*
-// ==/UserScript==
function userscript_bandcamp()
{
document.querySelectorAll("img[data-original]").forEach(function(e) {
@@ -10,11 +5,6 @@
});
}
-// ==UserScript==
-// @name economist
-// @description Remove ads from Economist
-// @include http*://www.economist.com/*
-// ==/UserScript==
function userscript_economist()
{
document.querySelectorAll("div.fe-blogs__top-ad-wrapper").forEach(function(e) {
@@ -22,11 +12,6 @@
});
}
-// ==UserScript==
-// @name github
-// @description Remove signup banners from GitHub
-// @include http*://github.com/*
-// ==/UserScript==
function userscript_github()
{
[".signup-prompt-bg"].forEach(function(c) {
@@ -36,11 +21,6 @@
});
}
-// ==UserScript==
-// @name internazionale
-// @description Remove ads from Internazionale
-// @include http*://www.internazionale.it/*
-// ==/UserScript==
function userscript_internazionale()
{
[".ads_content_top", ".content_adv", ".hentry--banner", ".lazyload_ad", ".wrapAd"].forEach(function(c) {
@@ -56,12 +36,6 @@
}
-// ==UserScript==
-// @name medium
-// @description Remove bar and bottom banner on Medium
-// @include http*://medium.com/*
-// @include http*://hackernoon.com/*
-// ==/UserScript==
function userscript_medium()
{
["div.metabar", "div.u-bottom0"].forEach(function(c) {
@@ -71,11 +45,6 @@
});
}
-// ==UserScript==
-// @name nvd
-// @description Show Change History
-// @include http*://nvd.nist.gov/vuln/detail/*
-// ==/UserScript==
function userscript_nvd()
{
[".vuln-change-history-container"].forEach(function(c) {
@@ -85,11 +54,6 @@
});
}
-// ==UserScript==
-// @name nytimes
-// @description Remove top and bottom banners on The New York Times
-// @include http*://www.nytimes.com/*
-// ==/UserScript==
function userscript_nytimes()
{
["#top-wrapper", "#bottom-wrapper"].forEach(function(c) {
@@ -99,11 +63,6 @@
});
}
-// ==UserScript==
-// @name ondarock
-// @description Remove the bottom banner on OndaRock
-// @include http*://www.ondarock.it/*
-// ==/UserScript==
function userscript_ondarock()
{
e = document.querySelector("#bottom-banner");
@@ -112,11 +71,6 @@
}
}
-// ==UserScript==
-// @name stackoverflow
-// @description Remove footers from stackoverflow
-// @include http*://stackoverflow.com/*
-// ==/UserScript==
function userscript_stackoverflow()
{
["#js-gdpr-consent-banner", ".js-dismissable-hero"].forEach(function(c) {
@@ -126,11 +80,6 @@
});
}
-// ==UserScript==
-// @name technologyreview-download
-// @description Show just the article of The Download
-// @include http*://www.technologyreview.com/the-download/*/*
-// ==/UserScript==
function userscript_technologyreview_download()
{
a = document.querySelector("article");
@@ -139,11 +88,6 @@
}
}
-// ==UserScript==
-// @name technologyreview
-// @description Remove the counter at the bottom of the page
-// @include http*://www.technologyreview.com/s/*
-// ==/UserScript==
function userscript_technologyreview()
{
e = document.querySelector("div.meter");
@@ -152,11 +96,6 @@
}
}
-// ==UserScript==
-// @name theatlantic
-// @description Show images from The Atlantic without JavaScript
-// @include http*://www.theatlantic.com/*
-// ==/UserScript==
function userscript_theatlantic()
{
document.querySelectorAll("img[data-src]").forEach(function(e) {
@@ -165,11 +104,6 @@
});
}
-// ==UserScript==
-// @name theverge
-// @description Remove the privacy consent footer
-// @include http*://www.theverge.com/*
-// ==/UserScript==
function userscript_theverge()
{
e = document.querySelector("div#privacy-consent");
@@ -178,12 +112,6 @@
}
}
-// ==UserScript==
-// @name twitter
-// @description Adjust and clean up timeline of Mobile Twitter
-// @include http*://twitter.com/*
-// @include http*://mobile.twitter.com/*
-// ==/UserScript==
function userscript_twitter()
{
if (window.location.href.search('://twitter.com/') != -1) {
@@ -204,11 +132,6 @@
}
}
-// ==UserScript==
-// @name wsj-amp
-// @description Remove annoying containers on AMP wsj.com pages
-// @include http*://www.wsj.com/amp/*
-// ==/UserScript==
function userscript_wsj_amp()
{
[".login-section-container", ".wsj-ad", "amp-geo", "amp-consent"].forEach(function(c) {