Skip to content

Commit

Permalink
Tweaks: Apply "restore links to individual posts" to new post header (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
marcustyphoon authored Mar 2, 2025
1 parent 01fd52a commit 98649d8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/features/tweaks/restore_attribution_links.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ import { keyToCss } from '../../utils/css_map.js';
import { timelineObject } from '../../utils/react_props.js';
import { navigate } from '../../utils/tumblr_helpers.js';

const postAttributionLinkSelector = `header ${keyToCss('attribution')} > span:not(${keyToCss('reblogAttribution')}) a`;
const reblogAttributionLinkSelector = `header ${keyToCss('rebloggedFromName')} a`;
const postAttributionLinkSelector = 'header a[rel="author"]';
const reblogAttributionLinkSelector = `
header ${keyToCss('rebloggedFromName')} a,
header ${keyToCss('subheader')} a${keyToCss('blogLink')}
`;

const onLinkClick = event => {
event.stopPropagation();
Expand Down

0 comments on commit 98649d8

Please sign in to comment.