summaryrefslogtreecommitdiffstats
path: root/.config/qutebrowser/greasemonkey
diff options
context:
space:
mode:
Diffstat (limited to '.config/qutebrowser/greasemonkey')
-rwxr-xr-x.config/qutebrowser/greasemonkey/density-github.js274
-rwxr-xr-x.config/qutebrowser/greasemonkey/density-gitlab.js425
-rwxr-xr-x.config/qutebrowser/greasemonkey/density-stackexchange.js147
-rwxr-xr-x.config/qutebrowser/greasemonkey/google.js7
-rwxr-xr-x.config/qutebrowser/greasemonkey/instagram-to-bibliogram.js9
-rwxr-xr-x.config/qutebrowser/greasemonkey/linkedin.js13
-rwxr-xr-x.config/qutebrowser/greasemonkey/unsplash.js23
-rwxr-xr-x.config/qutebrowser/greasemonkey/yewtube.js2
8 files changed, 886 insertions, 14 deletions
diff --git a/.config/qutebrowser/greasemonkey/density-github.js b/.config/qutebrowser/greasemonkey/density-github.js
new file mode 100755
index 0000000..38ead9e
--- /dev/null
+++ b/.config/qutebrowser/greasemonkey/density-github.js
@@ -0,0 +1,274 @@
+// ==UserScript==
+// @name density github
+// @match https://github.com/*
+// @grant none
+// ==/UserScript==
+
+GM_addStyle(`
+ .container-xl {
+ max-width: unset;
+ }
+ .py-lg-3 {
+ padding: 0 !important;
+ }
+ .py-2 {
+ padding-top: 3px !important;
+ padding-bottom: 3px !important;
+ }
+ .py-4 {
+ padding-top: 6px !important;
+ padding-bottom: 6px !important;
+ }
+ .py-6 {
+ padding-top: 9px !important;
+ padding-bottom: 9px !important;
+ }
+ .pt-3 {
+ padding-top: 4px !important;
+ }
+ .p-4 {
+ padding: 6px !important;
+ }
+ .p-2 {
+ padding: 2px !important;
+ }
+ .pt-6 {
+ padding-top: 10px !important;
+ }
+ .pb-2 {
+ padding-bottom: 2px !important;
+ }
+ .mt-6 {
+ margin-top: 10px !important;
+ }
+ .mt-4 {
+ margin-top: 6px !important;
+ }
+ .btn-sm,
+ .social-count {
+ padding: 1px 4px;
+ }
+ .btn {
+ padding: 1px 8px;
+ }
+ .p-3 {
+ padding: 4px !important;
+ }
+ .mt-2 {
+ margin-top: 2px !important;
+ }
+ .py-md-3 {
+ padding-top: 0 !important;
+ padding-bottom: 0 !important;
+ }
+ .px-3 {
+ padding-right: 4px !important;
+ padding-left: 4px !important;
+ }
+ .px-5 {
+ padding-right: 8px !important;
+ padding-left: 8px !important;
+ }
+ .mb-2 {
+ margin-bottom: 2px !important;
+ }
+ .mb-4 {
+ margin-bottom: 6px !important;
+ }
+ .mb-md-3 {
+ margin-bottom: 4px !important;
+ }
+ .mt-1 {
+ margin-top: 1px !important;
+ }
+ .mb-5 {
+ margin-bottom: 8px !important;
+ }
+ .mb-3 {
+ margin-bottom: 4px !important;
+ }
+ .mt-3 {
+ margin-top: 4px !important;
+ }
+ .mt-md-2 {
+ margin-top: 2px !important;
+ }
+ .my-md-2 {
+ margin-top: 2px !important;
+ margin-bottom: 2px !important;
+ }
+ .my-2 {
+ margin-top: 2px !important;
+ margin-bottom: 2px !important;
+ }
+ .my-3 {
+ margin-top: 4px !important;
+ margin-bottom: 4px !important;
+ }
+ .my-5 {
+ margin-top: 5px !important;
+ margin-bottom: 5px !important;
+ }
+ .my-6 {
+ margin-top: 7px !important;
+ margin-bottom: 7px !important;
+ }
+ .UnderlineNav-item {
+ padding: 0 16px;
+ line-height: unset;
+ }
+ .UnderlineNav {
+ min-height: 30px;
+ }
+ p {
+ margin-bottom: 3px;
+ }
+ .Box-header,
+ .Box-body,
+ .Box-row,
+ .Box-footer {
+ padding: 4px;
+ }
+ .form-control,
+ .form-select {
+ padding: 1px 3px;
+ }
+ .subnav-search-input {
+ padding-left: 32px;
+ }
+ .subnav-search-icon {
+ top: 4px;
+ }
+ .subnav-item {
+ padding: 1px 4px;
+ }
+ .protip {
+ margin-top: 5px;
+ }
+ .paginate-container {
+ margin-top: 4px;
+ margin-bottom: 4px;
+ }
+ .f1,
+ h1 {
+ font-size: 22px !important;
+ font-weight: bold;
+ }
+ .gh-header-actions {
+ margin: 0 !important;
+ }
+ .gh-header.issue .gh-header-meta {
+ margin-bottom: 4px;
+ }
+ .gh-header-meta {
+ padding-bottom: 4px;
+ }
+ .state,
+ .State {
+ padding: 1px 6px;
+ }
+ .pl-lg-5,
+ .px-lg-5 {
+ padding-right: 8px !important;
+ padding-left: 8px !important;
+ }
+ .timeline-comment-header-text {
+ padding-top: 2px;
+ padding-bottom: 2px;
+ }
+ .timeline-comment-action {
+ padding: 0;
+ }
+ .comment-body {
+ padding: 4px 8px;
+ }
+ .TimelineItem {
+ margin-left: 4px;
+ }
+ .TimelineItem-avatar {
+ left: -56px;
+ }
+ .gutter-lg {
+ margin: 0 !important;
+ }
+ .gutter-lg>[class*=col-] {
+ padding-right: 4px !important;
+ padding-left: 4px !important;
+ }
+ .BorderGrid {
+ margin-top: -4px !important;
+ }
+ .BorderGrid-cell {
+ padding-top: 4px !important;
+ padding-bottom: 4px !important;
+ }
+ .discussion-sidebar-item {
+ padding-top: 4px;
+ }
+ .discussion-sidebar-item+.discussion-sidebar-item {
+ margin-top: 4px;
+ }
+ .TimelineItem {
+ padding: 4px 0;
+ }
+ .timeline-comment-wrapper {
+ margin-top: 4px;
+ }
+ .tabnav-tab {
+ padding: 2px 4px;
+ }
+ .toolbar-item {
+ padding: 2px 4px;
+ }
+ .markdown-body blockquote,
+ .markdown-body details,
+ .markdown-body dl,
+ .markdown-body ol,
+ .markdown-body p,
+ .markdown-body pre,
+ .markdown-body table,
+ .markdown-body ul {
+ margin-bottom: 8px;
+ }
+ .markdown-body .highlight pre,
+ .markdown-body pre {
+ padding: 4px;
+ }
+ .py-3 {
+ padding-top: 4px !important;
+ padding-bottom: 4px !important;
+ }
+ .merge-pr {
+ margin: 5px 0 0;
+ }
+ .branch-action-item {
+ padding: 4px 4px 4px 44px;
+ }
+ .markdown-body h1,
+ .markdown-body h2,
+ .markdown-body h3,
+ .markdown-body h4,
+ .markdown-body h5,
+ .markdown-body h6 {
+ margin-top: 8px;
+ margin-bottom: 4px;
+ }
+ .input-sm {
+ min-height: unset;
+ }
+ svg.octicon.octicon-mark-github {
+ height: 27px;
+ }
+ .avatar-user {
+ border-radius: unset !important;
+ }
+ .Header {
+ padding: 0;
+ }
+ body {
+ line-height: unset;
+ }
+ .f1-light {
+ font-size: unset !important;
+ }
+`)
diff --git a/.config/qutebrowser/greasemonkey/density-gitlab.js b/.config/qutebrowser/greasemonkey/density-gitlab.js
new file mode 100755
index 0000000..73f7936
--- /dev/null
+++ b/.config/qutebrowser/greasemonkey/density-gitlab.js
@@ -0,0 +1,425 @@
+// ==UserScript==
+// @name density gitlab
+// @match https://gitlab.com/*
+// @match https://gitlab.infra.online.net/*
+// @grant none
+// ==/UserScript==
+
+GM_addStyle(`
+ .sidebar-sub-level-items > li a {
+ padding: 2px 8px 2px 20px;
+ }
+ .nav-sidebar li a {
+ padding: 6px 8px;
+ }
+ .nav-sidebar {
+ width: 180px;
+ }
+ .toggle-sidebar-button,
+ .close-nav-button {
+ width: 180px;
+ }
+ .page-with-contextual-sidebar {
+ padding-left: 180px;
+ }
+ .content-wrapper .container-fluid,
+ .content-wrapper .container-sm,
+ .content-wrapper .container-md,
+ .content-wrapper .container-lg,
+ .content-wrapper .container-xl {
+ padding: 0 8px;
+ }
+ .navbar-gitlab {
+ height: 26px;
+ min-height: unset;
+ }
+ .content-wrapper {
+ margin-top: 26px;
+ }
+ body {
+ line-height: 1;
+ }
+ .breadcrumbs-container {
+ padding-top: 0;
+ padding-bottom: 0;
+ }
+ .breadcrumbs {
+ min-height: unset;
+ }
+ .nav-links:not(.quick-links) li:not(.md-header-toolbar) a,
+ .nav-links:not(.quick-links) li:not(.md-header-toolbar) button {
+ line-height: 1;
+ padding: 0 10px;
+ }
+ .btn,
+ .project-buttons .stat-text {
+ padding: 0 10px;
+ }
+ .row-content-block {
+ padding: 4px;
+ }
+ .form-control,
+ .search form {
+ padding: 0;
+ }
+ .filtered-search-box .form-control,
+ .filtered-search-box .search form,
+ .search .filtered-search-box form {
+ height: unset;
+ }
+ .board-labels-toggle-wrapper,
+ .board-swimlanes-toggle-wrapper {
+ height: unset;
+ }
+ .pt-3,
+ .py-3 {
+ padding: 0 !important;
+ }
+ .board-title {
+ padding: 0;
+ }
+ .gl-button.gl-button.btn-icon,
+ .gl-button.gl-button.btn-block.btn-icon,
+ .login-page input.gl-button.gl-button.btn-icon[type='submit'] {
+ padding: .5em;
+ }
+ .p-3 {
+ padding: 3px !important;
+ }
+ .gl-mt-2 {
+ margin-top: unset;
+ }
+ .gl-mr-3 {
+ margin-top: unset;
+ }
+ .board-card-title {
+ font-size: 12px;
+ }
+ .board-card-footer {
+ position: absolute;
+ top: 0;
+ right: 0;
+ background: rgba(255,255,255,0.8);
+ }
+ .boards-list {
+ height: unset;
+ }
+ .context-header>a,
+ .context-header>button {
+ padding: 0;
+ }
+ .identicon.s40 {
+ line-height: unset;
+ }
+ .avatar-container.s40 {
+ min-height: unset;
+ }
+ .s40.avatar,
+ .s40.avatar-container {
+ height: unset;
+ width: 30px;
+ }
+ .group-home-panel,
+ .project-home-panel {
+ padding: 0;
+ }
+ .gl-mb-3 {
+ margin-bottom: 0;
+ }
+ .gl-banner {
+ padding: 0;
+ height: 65px;
+ overflow: auto;
+ }
+ .gl-banner-content > * {
+ margin: 0;
+ }
+ .tree-holder .add-to-tree {
+ padding: 1px;
+ }
+ .breadcrumb.repo-breadcrumb {
+ line-height: unset;
+ }
+ .commit {
+ min-height: unset !important;
+ }
+ .clipboard-group .label,
+ .clipboard-group .btn,
+ .clipboard-group .project-buttons .stat-text,
+ .project-buttons .clipboard-group .stat-text,
+ .commit-sha-group .label,
+ .commit-sha-group .btn,
+ .commit-sha-group .project-buttons .stat-text,
+ .project-buttons .commit-sha-group .stat-text {
+ padding: 1px;
+ }
+ .info-well {
+ margin: 0;
+ }
+ .tree-holder .nav-block {
+ margin: 5px;
+ }
+ table.table tr td,
+ .md table:not(.code) tr td,
+ table.table tr th,
+ .md table:not(.code) tr th {
+ padding: 3px;
+ }
+ .container-limited.limit-container-width {
+ max-width: unset;
+ }
+ .limit-container-width .detail-page-header,
+ .limit-container-width .page-content-header,
+ .limit-container-width .commit-box,
+ .limit-container-width .info-well,
+ .limit-container-width .commit-ci-menu,
+ .limit-container-width .files-changed-inner,
+ .limit-container-width .limited-header-width,
+ .limit-container-width .limited-width-notes {
+ max-width: unset;
+ }
+ .container-limited {
+ max-width: unset;
+ }
+ .info-well .well-segment {
+ padding: 2px;
+ }
+ .blob-content-holder {
+ margin-top: unset;
+ }
+ .file-title-flex-parent,
+ .file-holder .file-title-flex-parent {
+ padding: 0;
+ }
+ ul.content-list>li {
+ padding: 3px 0;
+ }
+ .dropdown-toggle,
+ .dropdown-menu-toggle,
+ .confidential-merge-request-fork-group .dropdown-toggle,
+ .confidential-merge-request-fork-group .dropdown-menu-toggle {
+ padding: 2px;
+ }
+ .dropdown-menu-toggle .fa-chevron-down,
+ .dropdown-menu-toggle .fa-spinner {
+ top: 3px;
+ }
+ .form-control,
+ .search form {
+ height: unset;
+ }
+ .issues-list .issue {
+ padding: 3px 0 0 0;
+ }
+ .manage-labels-list>li:not(.empty-message):not(.no-border) {
+ padding: 1px;
+ }
+ .input-group-prepend .btn,
+ .input-group-prepend .project-buttons .stat-text,
+ .project-buttons .input-group-prepend .stat-text,
+ .input-group-append .btn,
+ .input-group-append .project-buttons .stat-text,
+ .project-buttons .input-group-append .stat-text {
+ padding: 0;
+ }
+ .labels-container {
+ padding: 0;
+ }
+ .prioritized-labels {
+ margin-bottom: 0;
+ }
+ .identicon.s64 {
+ font-size: unset;
+ line-height: unset;
+ }
+ .avatar-container.s64 {
+ min-height: unset;
+ }
+ .s64.avatar,
+ .s64.avatar-container {
+ height: unset;
+ max-height: 32px;
+ width: auto;
+ }
+ .group-home-panel .home-panel-avatar,
+ .project-home-panel .home-panel-avatar {
+ height: unset;
+ }
+ .project-repo-buttons .home-panel-action-button,
+ .project-repo-buttons .project-action-button {
+ margin: 0;
+ }
+ .project-repo-buttons .count-buttons {
+ margin: 0;
+ }
+ .home-panel-title-row > * {
+ flex-direction: row !important;
+ }
+ .home-panel-title {
+ margin: 0;
+ }
+ .project-stats .nav .stat-text,
+ .project-stats .nav .stat-link,
+ .project-buttons .nav .stat-text,
+ .project-buttons .nav .stat-link {
+ padding: 0;
+ }
+ .project-stats .nav .btn,
+ .project-stats .nav .project-buttons .stat-text,
+ .project-buttons .project-stats .nav .stat-text,
+ .project-buttons .nav .btn,
+ .project-buttons .nav .stat-text {
+ padding: 0;
+ margin-top: 0;
+ }
+ .event-item {
+ padding: 0 0 0 40px;
+ }
+ .limit-container-width .issuable-details .detail-page-description,
+ .limit-container-width .issuable-details .mr-source-target,
+ .limit-container-width .issuable-details .mr-state-widget,
+ .limit-container-width .issuable-details .merge-manually {
+ max-width: unset;
+ }
+ .right-sidebar .block {
+ padding: 3px;
+ }
+ .right-sidebar .title {
+ margin-bottom: 0;
+ }
+ .issuable-details .title {
+ margin-bottom: 0;
+ }
+ .gl-mb-6 {
+ margin-bottom: 0;
+ }
+ .detail-page-description {
+ padding: unset;
+ }
+ .card-header {
+ padding: 0 16px;
+ }
+ .gl-p-3-deprecated-no-really-do-not-use-me {
+ padding: 3px 16px;
+ }
+ h4,
+ .h4,
+ h5,
+ .h5,
+ h6,
+ .h6 {
+ margin-bottom: unset;
+ }
+ .pt-2,
+ .py-2 {
+ padding-top: 0 !important;
+ }
+ .pb-2,
+ .py-2 {
+ padding-bottom: 0 !important;
+ }
+ .note-wrapper {
+ padding: 4px;
+ }
+ .notes.timeline > .timeline-entry {
+ margin: 8px 0;
+ }
+ .md blockquote,
+ .md .blockquote {
+ padding: 2px 12px;
+ margin: 4px 0;
+ }
+ .md p {
+ margin: 0 0 6px;
+ }
+ p {
+ margin-bottom: 0.5rem;
+ }
+ .page-content-header {
+ padding: 0;
+ }
+ .commit-box {
+ padding: 4px 0;
+ }
+ .content-block {
+ padding: 0;
+ }
+ .content-block.oneline-block {
+ line-height: 20px;
+ }
+ .limit-container-width .issuable-details .detail-page-description,
+ .limit-container-width .issuable-details .mr-source-target,
+ .limit-container-width .issuable-details .mr-state-widget,
+ .limit-container-width .issuable-details .merge-manually {
+ max-width: unset;
+ }
+ .build-page .top-bar {
+ height: unset;
+ min-height: 21px;
+ padding: unset;
+ top: 26px;
+ }
+ .gl-filtered-search-scrollable {
+ padding: 0;
+ }
+ .gl-filtered-search-term-input,
+ .gl-filtered-search-token-segment {
+ height: unset;
+ }
+ .gl-toggle {
+ height: 1rem;
+ }
+ .gl-toggle .toggle-icon {
+ top: unset;
+ }
+ .gl-py-5 {
+ padding: 0;
+ }
+ .board-title {
+ height: unset;
+ }
+ .gl-p-5 {
+ padding: 4px;
+ }
+ .board-card:not(:last-child) {
+ margin-bottom: 2px;
+ }
+ .gl-px-3 {
+ padding: 0 2px;
+ }
+ .gl-tab-nav-item {
+ padding: 2px;
+ }
+ ul.content-list.issuable-list>li,
+ ul.content-list.todos-list>li,
+ .card>.content-list>li {
+ padding: 3px 0 0 0;
+ }
+ .md table:not(.code) tr td,
+ .md table:not(.code) tr th,
+ table.table:not(.gl-table) tr td,
+ table.table:not(.gl-table) tr th {
+ line-height: unset;
+ padding: 3px;
+ }
+ .project-last-commit {
+ min-height: unset;
+ }
+
+ .merge-request-tabs-container .merge-request-tabs,
+ .limit-container-width .merge-request-tabs-container {
+ max-height: 2em;
+ }
+ .limit-container-width .merge-request-tabs-container {
+ margin-left: 0em;
+ margin-top: .5em;
+ margin-bottom: .5em;
+ }
+ .merge-request-tabs-holder {
+ padding-top: .5em;
+ top: var(--header-height, 26px);
+ }
+ .diff-file.has-body .file-title
+ --initial-top: calc(var(--header-height, 48px) + 28px) !important;
+ }
+`)
diff --git a/.config/qutebrowser/greasemonkey/density-stackexchange.js b/.config/qutebrowser/greasemonkey/density-stackexchange.js
new file mode 100755
index 0000000..8ed5776
--- /dev/null
+++ b/.config/qutebrowser/greasemonkey/density-stackexchange.js
@@ -0,0 +1,147 @@
+
+// ==UserScript==
+// @name density-userstyle
+// @match https://*.stackexchange.com/*
+// @match https://*.stackoverflow.com/*
+// @match https://*.askubuntu.com/*
+// @match https://*.superuser.com/*
+// @grant none
+// ==/UserScript==
+
+GM_addStyle(`
+ #mainbar,
+ .mainbar {
+ width: calc(100% - 230px - var(--su-static24));
+ }
+ #sidebar {
+ width: 230px !important;
+ }
+ .question table,
+ .answer table {
+ table-layout: fixed;
+ width: 100%;
+ }
+ .js-comment-form-layout td:last-child {
+ width: 115px;
+ }
+ .js-comment-form-layout textarea {
+ padding: 0;
+ width: 100% !important;
+ }
+ .comments > table > tfoot > tr:first-child > td:first-child,
+ .comments > table > tbody > tr:first-child > td:first-child {
+ width: 15px;
+ }
+ #content,
+ .inner-content,
+ .answer,
+ #answers,
+ .post-text,
+ .comments,
+ #answers-header,
+ .post-editor,
+ #wmd-preview,
+ #questions,
+ #header,
+ .container {
+ width: initial !important;
+ max-width: initial !important;
+ }
+ .wmd-ybutton-bar,
+ .wmd-input,
+ .grippie {
+ width: 100% !important;
+ }
+ .grippie {
+ background-position: 50% -364px !important;
+ }
+ .votecell {
+ width: 45px;
+ }
+ .page {
+ width: unset;
+ }
+ body {
+ --su24: 8px;
+ padding-top: 25px;
+ --lh-md: var(--lh-md);
+ --lh-lg: var(--lh-md);
+ --lh-xl: var(--lh-md);
+ --lh-xxl: var(--lh-md);
+ }
+ .s-navigation .s-navigation--item {
+ padding: 2px 8px;
+ }
+ .s-input,
+ .s-textarea {
+ padding: unset;
+ }
+ .s-topbar .s-topbar--content .s-topbar--item__unset,
+ .s-btn,
+ .s-btn.s-btn__xs {
+ padding: 2px 8px;
+ }
+ .s-topbar {
+ height: unset;
+ }
+ .mb8 {
+ margin-bottom: 2px !important;
+ }
+ .mb16 {
+ margin-bottom: 4px !important;
+ }
+ .mt16 {
+ margin-top: 4px !important;
+ }
+ #answers {
+ padding-top: unset;
+ }
+ .space {
+ padding-top: 4px;
+ }
+ .s-sidebarwidget--header {
+ padding: 2px;
+ }
+ .s-sidebarwidget--item {
+ margin: 2px;
+ padding: 0 !important;
+ }
+ .s-sidebarwidget--content,
+ .s-sidebarwidget--content.s-sidebarwidget__items {
+ padding: 4px;
+ }
+ .py16 {
+ padding-top: 2px !important;
+ padding-bottom: 2px !important;
+ }
+ #sidebar h4,
+ .sidebar h4 {
+ margin-bottom: unset;
+ }
+ .mb24,
+ .mb12 {
+ margin-bottom: 4px !important;
+ }
+ .mt8 {
+ margin-top: 2px !important;
+ }
+ .s-post-summary {
+ padding: 4px;
+ }
+ .s-card {
+ padding: 4px;
+ }
+ .subtabs a,
+ .filter a {
+ padding: 2px;
+ }
+ .user-info {
+ padding: 2px;
+ }
+ .p12 {
+ padding: 2px !important;
+ }
+ .g8 {
+ gap: 2px;
+ }
+`)
diff --git a/.config/qutebrowser/greasemonkey/google.js b/.config/qutebrowser/greasemonkey/google.js
index b410eff..44acf47 100755
--- a/.config/qutebrowser/greasemonkey/google.js
+++ b/.config/qutebrowser/greasemonkey/google.js
@@ -11,3 +11,10 @@
e.remove();
});
})();
+
+GM_addStyle(`
+ * {
+ // font-size: .98em !important;
+ // font-family: monospace, monospace !important;
+ }
+`)
diff --git a/.config/qutebrowser/greasemonkey/instagram-to-bibliogram.js b/.config/qutebrowser/greasemonkey/instagram-to-bibliogram.js
deleted file mode 100755
index 53f11ee..0000000
--- a/.config/qutebrowser/greasemonkey/instagram-to-bibliogram.js
+++ /dev/null
@@ -1,9 +0,0 @@
-// ==UserScript==
-// @name instagram to biliogram
-// @match *://*.instagram.com/*
-// @grant none
-// @run-at document-start
-// ==/UserScript==
-
-top.location.hostname = "bibliogram.pussthecat.org";
-// document.getElementsByClassName('explanation')[0].getElementsByTagName('a')[0].click()
diff --git a/.config/qutebrowser/greasemonkey/linkedin.js b/.config/qutebrowser/greasemonkey/linkedin.js
index b8468ec..d0eb289 100755
--- a/.config/qutebrowser/greasemonkey/linkedin.js
+++ b/.config/qutebrowser/greasemonkey/linkedin.js
@@ -10,7 +10,7 @@
// Selectors
const storySelector = '.feed-shared-update-v2';
- const descriptionSelector = '.feed-shared-actor__description, .feed-shared-actor__sub-description';
+ const descriptionSelector = '.update-components-text-view';
// Search strings
const searchStrings = {
@@ -25,12 +25,17 @@
function blockSponsoredPosts() {
const stories = document.querySelectorAll(storySelector);
for (const story of stories) {
- if (story.style.display == 'none') {
- continue;
- }
+
+ // console.log('Handling story', story);
+ // if (story.style.display == 'none') {
+ // continue;
+ // }
const descriptions = story.querySelectorAll(descriptionSelector);
+ console.debug('Found descriptions', descriptions);
+
for (const description of descriptions) {
+ console.debug('Handling description', description);
const descriptionContent = description.innerText.trim();
if (searchStrings[language].find(searchString => searchString == descriptionContent)) {
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;
+ }
+`)
diff --git a/.config/qutebrowser/greasemonkey/yewtube.js b/.config/qutebrowser/greasemonkey/yewtube.js
index 0362a7b..c9f592b 100755
--- a/.config/qutebrowser/greasemonkey/yewtube.js
+++ b/.config/qutebrowser/greasemonkey/yewtube.js
@@ -6,4 +6,4 @@
// @run-at document-start
// ==/UserScript==
-document.cookie = "PREFS=%7B%22annotations%22%3Afalse%2C%22annotations_subscribed%22%3Afalse%2C%22autoplay%22%3Atrue%2C%22automatic_instance_redirect%22%3Afalse%2C%22captions%22%3A%5B%22%22%2C%22%22%2C%22%22%5D%2C%22comments%22%3A%5B%22youtube%22%2C%22reddit%22%5D%2C%22continue%22%3Afalse%2C%22continue_autoplay%22%3Atrue%2C%22dark_mode%22%3A%22%22%2C%22latest_only%22%3Afalse%2C%22listen%22%3Afalse%2C%22local%22%3Atrue%2C%22watch_history%22%3Afalse%2C%22vr_mode%22%3Atrue%2C%22show_nick%22%3Afalse%2C%22locale%22%3A%22en-US%22%2C%22region%22%3A%22US%22%2C%22max_results%22%3A40%2C%22notifications_only%22%3Afalse%2C%22player_style%22%3A%22invidious%22%2C%22quality%22%3A%22dash%22%2C%22quality_dash%22%3A%221080p%22%2C%22default_home%22%3A%22Popular%22%2C%22feed_menu%22%3A%5B%22Popular%22%2C%22Trending%22%5D%2C%22related_videos%22%3Atrue%2C%22sort%22%3A%22published%22%2C%22speed%22%3A1%2C%22thin_mode%22%3Afalse%2C%22unseen_only%22%3Afalse%2C%22video_loop%22%3Afalse%2C%22extend_desc%22%3Afalse%2C%22volume%22%3A50%2C%22save_player_pos%22%3Afalse%7D";
+document.cookie = "PREFS=%7B%22annotations%22%3Atrue%2C%22annotations_subscribed%22%3Afalse%2C%22autoplay%22%3Atrue%2C%22automatic_instance_redirect%22%3Atrue%2C%22captions%22%3A%5B%22%22%2C%22%22%2C%22%22%5D%2C%22comments%22%3A%5B%22youtube%22%2C%22reddit%22%5D%2C%22continue%22%3Afalse%2C%22continue_autoplay%22%3Atrue%2C%22dark_mode%22%3A%22light%22%2C%22latest_only%22%3Afalse%2C%22listen%22%3Afalse%2C%22local%22%3Atrue%2C%22watch_history%22%3Afalse%2C%22vr_mode%22%3Atrue%2C%22show_nick%22%3Afalse%2C%22locale%22%3A%22en-US%22%2C%22region%22%3A%22US%22%2C%22max_results%22%3A40%2C%22notifications_only%22%3Afalse%2C%22player_style%22%3A%22invidious%22%2C%22quality%22%3A%22dash%22%2C%22quality_dash%22%3A%221080p%22%2C%22default_home%22%3A%22%22%2C%22feed_menu%22%3A%5B%22Popular%22%2C%22Trending%22%5D%2C%22related_videos%22%3Atrue%2C%22sort%22%3A%22published%22%2C%22speed%22%3A1.0%2C%22thin_mode%22%3Afalse%2C%22unseen_only%22%3Afalse%2C%22video_loop%22%3Afalse%2C%22extend_desc%22%3Afalse%2C%22volume%22%3A50%2C%22save_player_pos%22%3Afalse%7D"
remember that computers suck.