Skip to content

Commit 9ff71a9

Browse files
committed
v17: back to clean Hermit script, strip auto-update headers and zoom
1 parent 42cc926 commit 9ff71a9

2 files changed

Lines changed: 6 additions & 18 deletions

File tree

linkedin.user.js

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
11
// ==UserScript==
2-
// @name linkedin
3-
// @version 16
4-
// @match https://www.linkedin.com/*
5-
// @updateURL https://www.ezramarks.com/personal-app-tweaks/linkedin.user.js
6-
// @downloadURL https://www.ezramarks.com/personal-app-tweaks/linkedin.user.js
7-
// @run-at document-start
2+
// @name linkedin
3+
// @version 17
84
// ==/UserScript==
95
(function() {
106

117
const CSS = `
12-
html { zoom: 2.0; }
13-
148
/* Nav: hide everything except Search and Messaging.
15-
Use path fragment without trailing slash — profile pages use absolute URLs
16-
(e.g. https://www.linkedin.com/mynetwork) while messaging uses relative (/mynetwork/). */
9+
Path fragment without trailing slash — profile pages use absolute URLs. */
1710
a[href*="/feed"],
1811
a[href*="/mynetwork"],
1912
a[href*="/jobs"],
@@ -22,7 +15,7 @@
2215
display: none !important;
2316
}
2417
25-
/* Feed page: hide content. These selectors are feed-specific (verified absent on search). */
18+
/* Feed page: hide content (feed-specific, verified absent on search/profiles). */
2619
[data-testid="mainFeed"],
2720
[aria-label*="start a post" i] {
2821
display: none !important;
@@ -32,7 +25,6 @@
3225
[data-ad-banner] {
3326
display: none !important;
3427
}
35-
3628
`;
3729

3830
const style = document.createElement('style');
@@ -46,7 +38,7 @@
4638
}
4739
});
4840

49-
// Redirect away from disallowed pages — makes feed/network/jobs unreachable
41+
// Redirect away from disallowed pages
5042
const ALLOWED = [
5143
/^\/messaging(\/|$)/,
5244
/^\/search\//,
@@ -59,7 +51,7 @@
5951

6052
function enforce() {
6153
var p = location.pathname;
62-
// Redirect /search/results/all to people — no stable CSS selector to hide just the Posts section
54+
// Redirect /search/results/all to people — no stable CSS selector to hide just Posts
6355
if (p.startsWith('/search/results/all')) {
6456
location.replace(location.href.replace('/search/results/all', '/search/results/people'));
6557
return;

netlify.toml

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)