ultrawidify/src/ext/conf/ActionList.js

180 lines
3.2 KiB
JavaScript
Raw Normal View History

var ActionList = {
'set-ar': {
name: 'Set aspect ratio',
args: [{
name: 'Automatic',
arg: 'auto',
},{
name: 'Fit width',
arg: 'fitw'
},{
name: 'Fit height',
arg: 'fith',
},{
name: 'Reset',
arg: 'reset',
},{
name: 'Ratio',
customArg: true,
hintHTML: '',
}],
scopes: {
global: false,
site: false,
page: true,
}
},
'stretch': {
name: 'Set stretch',
args: [{
name: 'Normal',
arg: 0
},{
name: 'Basic',
arg: 1,
},{
name: 'Hybrid',
arg: 2,
},{
name: 'Thin borders',
arg: 3,
},{
name: 'Default',
arg: -1,
scopes: {
site: true
}
}],
scopes: {
global: true,
site: true,
page: true,
}
},
'set-alignment': {
name: 'Set video alignment',
args: [{
name: 'Left',
arg: 'left',
},{
name: 'Center',
arg: 'center',
},{
name: 'Right',
arg: 'right'
},{
name: 'Default',
arg: 'default',
scopes: {
site: true,
}
}],
scopes: {
global: true,
site: true,
page: true,
}
},
'pan': {
name: 'Pan',
args: [{
name: '',
arg: 'toggle'
}],
scopes: {
page: true,
}
},
'toggle-pan': {
name: 'Toggle panning mode',
args: [{
name: 'Toggle',
arg: 'toggle',
},{
name: 'Enable',
arg: 'enable',
},{
name: 'Disable',
arg: 'disable'
}],
scopes: {
page: true
}
},
2019-01-03 02:07:16 +01:00
'change-zoom': {
name: 'Zoom',
args: [{
name: 'Zoom level increase/decrease',
customArg: true,
hintHTML: '<small>Positive values zoom in, negative values zoom out. Increases/decreases are logarithmic: value of \'1\' will double the zoom, value of \'-1\' will halve it.</small>'
}],
scopes: {
page: true,
}
},
2019-01-03 02:07:16 +01:00
'set-zoom': {
name: 'Set zoom level',
args: [{
name: 'Zoom level increase/decrease',
customArg: true,
hintHTML: '<small>Examples: 0.5 sets zoom to 50%, 1 sets zoom to 100%, 2 sets zoom to 200%. Don\'t use negative values unless you want to experience Australian youtube.</small>'
}],
scopes: {
page: true,
}
},
'set-extension-mode': {
name: 'Set extension mode',
args: [{
name: 'Enable',
arg: 'blacklist',
},{
name: 'On whitelisted only',
arg: 'whitelist',
scopes: {
global: true,
}
},{
name: 'Default',
arg: 'default',
scopes: {
page: true,
}
},{
name: 'Disable',
arg: 'disabled'
}],
scopes: {
global: true,
site: true,
}
},
'set-autoar-mode': {
name: 'Set automatic aspect ratio detection mode',
args: [{
name: 'Enable',
arg: 'blacklist',
},{
name: 'On whitelisted only',
arg: 'whitelist',
scopes: {
global: true,
}
},{
name: 'Default',
arg: 'default',
scopes: {
page: true,
}
},{
name: 'Disable',
arg: 'disabled'
}],
scopes: {
global: true,
site: true,
}
}
};
export default ActionList;