summaryrefslogtreecommitdiffstats
path: root/.config/qutebrowser/greasemonkey/linkedin.js
diff options
context:
space:
mode:
Diffstat (limited to '.config/qutebrowser/greasemonkey/linkedin.js')
-rwxr-xr-x.config/qutebrowser/greasemonkey/linkedin.js13
1 files changed, 9 insertions, 4 deletions
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)) {
remember that computers suck.