Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Locke23rus/dotfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Locke23rus committed Nov 30, 2024
2 parents 095817c + 2cc42aa commit 274bc50
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
18 changes: 6 additions & 12 deletions violentmonkey/twitter.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// ==UserScript==
// @name twitter
// @match https://twitter.com/*
// @match https://x.com/*
// @grant GM_addStyle
// @version 0.4
// @version 0.5
// ==/UserScript==

GM_addStyle(`
Expand All @@ -15,17 +15,11 @@ const removeAds = () => {
if (document.hidden) {
return;
}
[...document.querySelectorAll("div[data-testid='cellInnerDiv']")].forEach(
(card) => {
if (
[...card.querySelectorAll("span")].some(
(span) => span.textContent === "Ad"
)
) {
card.style.display = "none";
}
[...document.querySelectorAll("div[data-testid='cellInnerDiv']")].forEach((card) => {
if ([...card.querySelectorAll("span")].some((span) => span.textContent === "Ad")) {
card.style.display = "none";
}
);
});
};

removeAds();
Expand Down
5 changes: 5 additions & 0 deletions zsh/aliases.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ alias gci='git commit'
alias gc='git commit'
alias gg='git lol'
alias gdm='git delete-merged-branches'
alias gco='git checkout'
alias gcb='git checkout -b'
alias gb='git branch'
alias gmm='git merge master'
alias gs='git status'

alias optisvg='svgo --disable=removeXMLProcInst --enable=removeTitle'
alias download-audio="youtube-dl -f 'bestaudio' -o '%(title)s.%(ext)s'"
Expand Down

0 comments on commit 274bc50

Please sign in to comment.