diff --git a/CHANGELOG.md b/CHANGELOG.md
index f753b1d05..6e1a9e88c 100755
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,3 @@
-
**MayhemYDG**:
- Thread and post hiding changes:
- The posts' menu now has a label entry listing the reasons why a post got hidden or highlighted.
@@ -39,21 +38,27 @@
Filter (hiding, highlighting)
Thread Hiding
Linkify
-
Auto-GIF
+
Thumbnail Replacemenu
Image Hover
- Support for the official catalog will be removed in the future, once the catalog mode for the index is deemed satisfactory.
- Added `Original filename` variable to Sauce panel.
- Fixed a bug which prevented QR cooldowns from being pruned from storage.
- On Chrome, the storage could reach the quota and prevent 4chan X from saving data like QR name/mail or auto-watch for example.
+- Clicking on the border of the Header will not toggle `Header auto-hide` anymore.
+ You can still change the setting in the Header menu → Header.
+- Bugfixes
**Vampiricwulf**
- Flash embedding and other Flash features.
-**Zixaphir**
+**Zixaphir**
+- Update Custom Navigation legend to reflect index mode changes.
+- JSON Navigation now works for backlinks (when Quote Inlining is disabled) and backlink hashlinks.
+- JSON Navigation (Index, Catalog) performance improvements.
- Added a nifty bread-crumb for the JSON Navigation.
- Many spiffy performance, state awareness, and sanity improvements to JSON Navigation.
-
+- Added a return button to the JSON Navigation that will switch you back to non-catalog view (requires NavLinks not to be hidden).
### v1.4.1
*2014-03-01*
diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js
index 4eccf46de..b71f97587 100644
--- a/builds/4chan-X.user.js
+++ b/builds/4chan-X.user.js
@@ -135,7 +135,6 @@
'Catalog Links': [true, 'Add toggle link in header menu to turn Navigation links into links to each board\'s catalog.'],
'External Catalog': [false, 'Link to external catalog instead of the internal one.'],
'QR Shortcut': [false, 'Adds a small [QR] link in the header.'],
- 'Announcement Hiding': [true, 'Add button to hide 4chan announcements.'],
'Desktop Notifications': [false, 'Enables desktop notifications across various 4chan X features.'],
'404 Redirect': [true, 'Redirect dead threads and images.'],
'Keybinds': [true, 'Bind actions to keyboard shortcuts.'],
@@ -2295,18 +2294,14 @@
},
setBarVisibility: function(hide) {
Header.headerToggler.checked = hide;
- $.event('CloseMenu');
- (hide ? $.addClass : $.rmClass)(Header.bar, 'autohide');
- return (hide ? $.addClass : $.rmClass)(doc, 'autohide');
+ return (hide ? $.addClass : $.rmClass)(Header.bar, 'autohide');
},
- toggleBarVisibility: function() {
- var hide, message;
- hide = this.nodeName === 'INPUT' ? this.checked : !$.hasClass(Header.bar, 'autohide');
- this.checked = hide;
- $.set('Header auto-hide', Conf['Header auto-hide'] = hide);
- Header.setBarVisibility(hide);
- message = "The header bar will " + (hide ? 'automatically hide itself.' : 'remain visible.');
- return new Notice('info', message, 2);
+ toggleBarVisibility: function(e) {
+ var hide;
+ hide = this.checked;
+ Conf['Header auto-hide'] = hide;
+ $.set('Header auto-hide', hide);
+ return Header.setBarVisibility(hide);
},
setHideBarOnScroll: function(hide) {
Header.scrollHeaderToggler.checked = hide;
@@ -5098,6 +5093,9 @@
}),
order: 20,
open: function(post) {
+ if (post.isReply) {
+ return false;
+ }
this.el.textContent = post.isHidden ? 'Unhide thread' : 'Hide thread';
if (this.cb) {
$.off(this.el, 'click', this.cb);
@@ -9282,7 +9280,9 @@
};
})(),
toggle: function(e) {
- return Menu.menu.toggle(e, this, Get.postFromNode(this));
+ var fullID;
+ fullID = $.x('ancestor::*[@data-full-i-d]', this).dataset.fullID;
+ return Menu.menu.toggle(e, this, g.posts[fullID]);
}
};
@@ -10909,9 +10909,6 @@
PSAHiding = {
init: function() {
- if (!Conf['Announcement Hiding']) {
- return;
- }
$.addClass(doc, 'hide-announcement');
return $.on(d, '4chanXInitFinished', this.setup);
},
diff --git a/builds/crx/script.js b/builds/crx/script.js
index f36219a85..0f9f91260 100644
--- a/builds/crx/script.js
+++ b/builds/crx/script.js
@@ -111,7 +111,6 @@
'Catalog Links': [true, 'Add toggle link in header menu to turn Navigation links into links to each board\'s catalog.'],
'External Catalog': [false, 'Link to external catalog instead of the internal one.'],
'QR Shortcut': [false, 'Adds a small [QR] link in the header.'],
- 'Announcement Hiding': [true, 'Add button to hide 4chan announcements.'],
'Desktop Notifications': [false, 'Enables desktop notifications across various 4chan X features.'],
'404 Redirect': [true, 'Redirect dead threads and images.'],
'Keybinds': [true, 'Bind actions to keyboard shortcuts.'],
@@ -2354,18 +2353,14 @@
},
setBarVisibility: function(hide) {
Header.headerToggler.checked = hide;
- $.event('CloseMenu');
- (hide ? $.addClass : $.rmClass)(Header.bar, 'autohide');
- return (hide ? $.addClass : $.rmClass)(doc, 'autohide');
+ return (hide ? $.addClass : $.rmClass)(Header.bar, 'autohide');
},
- toggleBarVisibility: function() {
- var hide, message;
- hide = this.nodeName === 'INPUT' ? this.checked : !$.hasClass(Header.bar, 'autohide');
- this.checked = hide;
- $.set('Header auto-hide', Conf['Header auto-hide'] = hide);
- Header.setBarVisibility(hide);
- message = "The header bar will " + (hide ? 'automatically hide itself.' : 'remain visible.');
- return new Notice('info', message, 2);
+ toggleBarVisibility: function(e) {
+ var hide;
+ hide = this.checked;
+ Conf['Header auto-hide'] = hide;
+ $.set('Header auto-hide', hide);
+ return Header.setBarVisibility(hide);
},
setHideBarOnScroll: function(hide) {
Header.scrollHeaderToggler.checked = hide;
@@ -5150,6 +5145,9 @@
}),
order: 20,
open: function(post) {
+ if (post.isReply) {
+ return false;
+ }
this.el.textContent = post.isHidden ? 'Unhide thread' : 'Hide thread';
if (this.cb) {
$.off(this.el, 'click', this.cb);
@@ -9297,7 +9295,9 @@
};
})(),
toggle: function(e) {
- return Menu.menu.toggle(e, this, Get.postFromNode(this));
+ var fullID;
+ fullID = $.x('ancestor::*[@data-full-i-d]', this).dataset.fullID;
+ return Menu.menu.toggle(e, this, g.posts[fullID]);
}
};
@@ -10923,9 +10923,6 @@
PSAHiding = {
init: function() {
- if (!Conf['Announcement Hiding']) {
- return;
- }
$.addClass(doc, 'hide-announcement');
return $.on(d, '4chanXInitFinished', this.setup);
},
diff --git a/html/General/Index-navlinks.html b/html/General/Index-navlinks.html
deleted file mode 100644
index fe613b761..000000000
--- a/html/General/Index-navlinks.html
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
- — [Show]
-
-
-
-
diff --git a/html/General/Settings-section-Main.html b/html/General/Settings-section-Main.html
deleted file mode 100644
index c2d7f086c..000000000
--- a/html/General/Settings-section-Main.html
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
-
diff --git a/html/General/Settings.html b/html/General/Settings.html
deleted file mode 100644
index f2f2ae111..000000000
--- a/html/General/Settings.html
+++ /dev/null
@@ -1,15 +0,0 @@
-