A library to help you set up configure in greasemonkey script.
Script này sẽ không được không được cài đặt trực tiếp. Nó là một thư viện cho các script khác để bao gồm các chỉ thị meta
// @require https://update.greatest.deepsurf.us/scripts/11562/66657/GM_config%208%2B.js
Based on height version. It adds Section insertion such as:
SectionOptions: {
label: "Options",
type: "section"
}
Insert the code before a new section of options.
And you can easily add your own CSS style to your config such as:
var settings = {
PlayerType: {
label: "Player Type",
type: "radio", // 'checkbox', 'number', 'text', 'textarea', 'radio', 'section', 'select'
default: "html",
options: {
html: "HTML (force)",
flash: "FLASH (or auto)"
}
}
}
var configStyle = 'fieldset>.radio{display:inline-block !important;padding-left:15px !important}\
.radio+.radio{margin-left:20px !important}';
GM_config.init('Dailymotion Custom Player',settings,configStyle);