summaryrefslogtreecommitdiffstats
path: root/.config/qutebrowser/greasemonkey/unsplash.js
diff options
context:
space:
mode:
Diffstat (limited to '.config/qutebrowser/greasemonkey/unsplash.js')
-rwxr-xr-x.config/qutebrowser/greasemonkey/unsplash.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/.config/qutebrowser/greasemonkey/unsplash.js b/.config/qutebrowser/greasemonkey/unsplash.js
new file mode 100755
index 0000000..7d65781
--- /dev/null
+++ b/.config/qutebrowser/greasemonkey/unsplash.js
@@ -0,0 +1,23 @@
+// ==UserScript==
+// @name custom unsplash
+// @match https://unsplash.com/*
+// @grant none
+// @run-at document-end
+// ==/UserScript==
+
+(function() {
+ 'use strict';
+
+ document.querySelectorAll('[data-ad="true"]').forEach(function(e){
+ console.log("AAAAAAAA");
+ e.remove();
+ });
+})();
+
+GM_addStyle(`
+ div[data-ad="true"], div[data-test="AffiliatesGrid-Content"] {
+ visibility: hidden;
+ width: 0;
+ height: 0;
+ }
+`)
remember that computers suck.