Disable 4chan's inline extension by default.
This commit is contained in:
parent
e12c9a9f7a
commit
09d8ecb482
@ -86,6 +86,7 @@
|
|||||||
Config = {
|
Config = {
|
||||||
main: {
|
main: {
|
||||||
Enhancing: {
|
Enhancing: {
|
||||||
|
'Disable 4chan\'s extension': [true, 'Avoid conflicts between 4chan X and 4chan\'s inline extension.'],
|
||||||
'404 Redirect': [true, 'Redirect dead threads and images'],
|
'404 Redirect': [true, 'Redirect dead threads and images'],
|
||||||
'Keybinds': [true, 'Binds actions to keys'],
|
'Keybinds': [true, 'Binds actions to keys'],
|
||||||
'Time Formatting': [true, 'Arbitrarily formatted timestamps, using your local time'],
|
'Time Formatting': [true, 'Arbitrarily formatted timestamps, using your local time'],
|
||||||
@ -2544,16 +2545,6 @@
|
|||||||
|
|
||||||
Options = {
|
Options = {
|
||||||
init: function() {
|
init: function() {
|
||||||
if (!$.get('firstrun')) {
|
|
||||||
$.set('firstrun', true);
|
|
||||||
localStorage.setItem('4chan-settings', '{"disableAll":true}');
|
|
||||||
$.ready(function() {
|
|
||||||
if (!Favicon.el) {
|
|
||||||
Favicon.init();
|
|
||||||
}
|
|
||||||
return Options.dialog();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return $.ready(Options.initReady);
|
return $.ready(Options.initReady);
|
||||||
},
|
},
|
||||||
initReady: function() {
|
initReady: function() {
|
||||||
@ -2569,6 +2560,13 @@
|
|||||||
$.on(a, 'click', Options.dialog);
|
$.on(a, 'click', Options.dialog);
|
||||||
$.prepend($.id(settings), [$.tn('['), a, $.tn('] ')]);
|
$.prepend($.id(settings), [$.tn('['), a, $.tn('] ')]);
|
||||||
}
|
}
|
||||||
|
if (!$.get('firstrun')) {
|
||||||
|
$.set('firstrun', true);
|
||||||
|
if (!Favicon.el) {
|
||||||
|
Favicon.init();
|
||||||
|
}
|
||||||
|
return Options.dialog();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
dialog: function() {
|
dialog: function() {
|
||||||
var arr, back, checked, description, dialog, favicon, fileInfo, filter, hiddenNum, hiddenThreads, indicator, indicators, input, key, li, obj, overlay, sauce, time, tr, ul, _i, _len, _ref, _ref1, _ref2;
|
var arr, back, checked, description, dialog, favicon, fileInfo, filter, hiddenNum, hiddenThreads, indicator, indicators, input, key, li, obj, overlay, sauce, time, tr, ul, _i, _len, _ref, _ref1, _ref2;
|
||||||
@ -4982,6 +4980,9 @@
|
|||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (Conf['Disable 4chan\'s extension']) {
|
||||||
|
localStorage.setItem('4chan-settings', '{"disableAll":true}');
|
||||||
|
}
|
||||||
Options.init();
|
Options.init();
|
||||||
if (Conf['Quick Reply'] && Conf['Hide Original Post Form']) {
|
if (Conf['Quick Reply'] && Conf['Hide Original Post Form']) {
|
||||||
Main.css += '#postForm { display: none; }';
|
Main.css += '#postForm { display: none; }';
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
master
|
master
|
||||||
- Mayhem
|
- Mayhem
|
||||||
|
Add an option to disable 4chan's inline extension. Enabled by default.
|
||||||
Fix compatibility with Scriptish's auto-udpater.
|
Fix compatibility with Scriptish's auto-udpater.
|
||||||
|
|
||||||
2.34.10
|
2.34.10
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
Config =
|
Config =
|
||||||
main:
|
main:
|
||||||
Enhancing:
|
Enhancing:
|
||||||
|
'Disable 4chan\'s extension': [true, 'Avoid conflicts between 4chan X and 4chan\'s inline extension.']
|
||||||
'404 Redirect': [true, 'Redirect dead threads and images']
|
'404 Redirect': [true, 'Redirect dead threads and images']
|
||||||
'Keybinds': [true, 'Binds actions to keys']
|
'Keybinds': [true, 'Binds actions to keys']
|
||||||
'Time Formatting': [true, 'Arbitrarily formatted timestamps, using your local time']
|
'Time Formatting': [true, 'Arbitrarily formatted timestamps, using your local time']
|
||||||
@ -1995,13 +1996,6 @@ QR =
|
|||||||
|
|
||||||
Options =
|
Options =
|
||||||
init: ->
|
init: ->
|
||||||
unless $.get 'firstrun'
|
|
||||||
$.set 'firstrun', true
|
|
||||||
localStorage.setItem '4chan-settings', '{"disableAll":true}'
|
|
||||||
$.ready ->
|
|
||||||
# Prevent race conditions
|
|
||||||
Favicon.init() unless Favicon.el
|
|
||||||
Options.dialog()
|
|
||||||
$.ready Options.initReady
|
$.ready Options.initReady
|
||||||
initReady: ->
|
initReady: ->
|
||||||
for settings in ['navtopright', 'navbotright']
|
for settings in ['navtopright', 'navbotright']
|
||||||
@ -2011,7 +2005,11 @@ Options =
|
|||||||
textContent: '4chan X Settings'
|
textContent: '4chan X Settings'
|
||||||
$.on a, 'click', Options.dialog
|
$.on a, 'click', Options.dialog
|
||||||
$.prepend $.id(settings), [$.tn('['), a, $.tn('] ')]
|
$.prepend $.id(settings), [$.tn('['), a, $.tn('] ')]
|
||||||
return
|
unless $.get 'firstrun'
|
||||||
|
$.set 'firstrun', true
|
||||||
|
# Prevent race conditions
|
||||||
|
Favicon.init() unless Favicon.el
|
||||||
|
Options.dialog()
|
||||||
|
|
||||||
dialog: ->
|
dialog: ->
|
||||||
dialog = $.el 'div'
|
dialog = $.el 'div'
|
||||||
@ -3876,6 +3874,9 @@ Main =
|
|||||||
location.href = url if url
|
location.href = url if url
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if Conf['Disable 4chan\'s extension']
|
||||||
|
localStorage.setItem '4chan-settings', '{"disableAll":true}'
|
||||||
|
|
||||||
Options.init()
|
Options.init()
|
||||||
|
|
||||||
if Conf['Quick Reply'] and Conf['Hide Original Post Form']
|
if Conf['Quick Reply'] and Conf['Hide Original Post Form']
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user