From 216f7c3abbe39dba079f73c54a620952a00aa01c Mon Sep 17 00:00:00 2001 From: Mayhem Date: Sat, 15 Feb 2014 00:51:47 +0100 Subject: [PATCH] rm `Clean Links` config. --- src/General/Config.coffee | 4 +--- src/Linkification/Linkify.coffee | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/General/Config.coffee b/src/General/Config.coffee index 45c8bc544..426c17b37 100644 --- a/src/General/Config.coffee +++ b/src/General/Config.coffee @@ -6,6 +6,7 @@ Config = 'Announcement Hiding': [true, 'Add button to hide 4chan announcements.'] '404 Redirect': [true, 'Redirect dead threads and images.'] 'Keybinds': [true, 'Bind actions to keyboard shortcuts.'] + 'Linkify': [true, 'Convert text links into hyperlinks.'] 'Time Formatting': [true, 'Localize and format timestamps.'] 'Relative Post Dates': [false, 'Display dates like "3 minutes ago". Tooltip shows the timestamp.'] 'File Info Formatting': [true, 'Reformat the file information.'] @@ -27,9 +28,6 @@ Config = 'Image Hover in Catalog': [false, 'Show a floating expanded image on hover in the catalog.'] 'Sauce': [true, 'Add sauce links to images.'] 'Reveal Spoilers': [false, 'Reveal spoiler thumbnails.'] - 'Linkification': - 'Linkify': [true, 'Convert text links into hyperlinks.'] - 'Clean Links': [true, 'Remove spoiler and code tags commonly used to bypass blocked links.'] 'Menu': 'Menu': [true, 'Add a drop-down menu to posts.'] 'Report Link': [true, 'Add a report link to the menu.'] diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index 1d9e15c34..fce9bbe53 100644 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -60,7 +60,7 @@ Linkify = # Replace already-linkified links, # f.e.: https://boards.4chan.org/b/% $.replace parent, anchor - Linkify.cleanLink anchor, link if Conf['Clean Links'] + Linkify.cleanLink anchor, link walker.currentNode = anchor.lastChild else walker.previousNode()