链接,允许继续点击
navigateTo(target.href, navigateTotab); // 继续打开链接
} else {
if (searchingreasyfork == '1') {
const url = `https://${textContent}`;
navigateTo(url, navigateTotab); // 在新窗口中打开链接
}
}
}
if (searchingreasyfork == '2') {
alert("未启用");
}
});
} else {
console.log('未找到 元素');
}
function navigateTo(url, useWindowOpen) {
if (useWindowOpen) {
window.open(url, '_blank');
} else {
window.location.href = url;
}
}
//webhook页面增强 482672
function customizeWebhookInfoPage() {
if (!location.pathname.includes('/users/webhook-info')) return;
document.head.appendChild(document.createElement('style')).textContent = `
#main-header ~ .width-constraint > .text-content:only-child > ul li {
font-size: 0.88rem;
}
#main-header ~ .width-constraint > .text-content:only-child > ul a:first-child {
display: block;
font-size: 1rem;
margin-top: 4px;
text-decoration: none;
}
#main-header ~ .width-constraint > .text-content:only-child > ul a ~ a {
color: #383855;
text-decoration: none;
}
[dark] #main-header ~ .width-constraint > .text-content:only-child > ul a ~ a {
color: #9898c9;
}
#main-header ~ .width-constraint > .text-content:only-child dt {
font-weight: bold;
color: #2376a0;
}
#main-header ~ .width-constraint > .text-content:only-child dd textarea {
flex-grow: 1;
height: 5.2rem;
margin: 0px;
padding: 8px;
box-sizing: border-box;
}
#main-header ~ .width-constraint > .text-content:only-child dd form {
display: flex;
flex-direction: row;
align-items: end;
column-gap: 24px;
row-gap: 8px;
flex-wrap: wrap;
max-width: calc(100% - 48px);
}
@media all and (min-width:300px) {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: end;
column-gap: 24px;
max-width: calc(100% - 48px);
}
#main-header ~ .width-constraint > .text-content:only-child h3 {
margin-top: 18px;
margin-left: 8px;
}
#main-header ~ .width-constraint > .text-content:only-child > ul {
margin-bottom: 48px;
}
#main-header ~ .width-constraint > .text-content:only-child h3 ~ *:not(h3) {
margin-left: 48px;
}
/* Basic Styling for Submit Inputs and Buttons */
input[type="submit"], button {
font-family: 'Arial', sans-serif;
font-size: 10pt;
color: #FFFFFF;
background-color: #007BFF;
border: none;
border-radius: 5px;
padding: 8px 16px;
cursor: pointer;
transition: background-color 0.3s ease;
text-align: center;
outline: none;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
/* Hover effect */
input[type="submit"]:hover, button:hover {
background-color: #0056b3;
}
/* Active (pressed) effect */
input[type="submit"]:active, button:active {
background-color: #004494;
}
/* Focus effect for accessibility */
input[type="submit"]:focus, button:focus {
box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5);
}
dd textarea {
border: 0;
padding: 0;
font-family: inherit;
font-weight: 900;
color: #a83710;
font-size: inherit;
appearance: none;
border: none;
outline: none;
resize: none;
}
/* For WebKit browsers like Safari and Chrome */
dd textarea::-webkit-input-placeholder {
color: inherit;
}
/* Remove the inner shadow in WebKit renderings */
dd textarea:focus,
dd textarea:active {
-webkit-box-shadow: none;
box-shadow: none;
}
[dark] section>ul>li>b:nth-of-type(odd){
color: #80ecd3;
}
[dark] section>ul>li>b:nth-of-type(even){
color: #bfe6a0;
}
`;
new Promise(r => {
if (document.readyState !== 'loading') {
r();
} else {
window.addEventListener("DOMContentLoaded", r, false);
}
}).then(() => {
for (const elm of document.querySelectorAll('.text-content dd, .text-content dd textarea')) {
if (elm.nodeName !== 'TEXTAREA' && elm.firstElementChild === null) {
let s = elm.textContent;
if (s && typeof s === 'string' && s.includes('/users/') && s.includes('/webhook') && s.includes('https://')) {
let t = s.replace(/\/users\/(\d+)\-[^\/]+\//, '/users/$1/');
t = t.replace(/https:\/\/greasyfork\.org\/[-\w]+\/users\//, 'https://greasyfork.org/en/users/');
elm.textContent = t;
}
} else if (typeof elm.value === 'string') {
let s = elm.value;
// Add a click event listener to the textarea
elm.addEventListener('click', function () {
if (window.getSelection() + "" === "")
this.select();
});
elm.addEventListener('drag', function (evt) {
evt.preventDefault();
});
elm.addEventListener('drop', function (evt) {
evt.preventDefault();
});
elm.addEventListener('dragstart', function (evt) {
evt.preventDefault();
});
if (s && typeof s === 'string' && s.includes('/users/') && s.includes('/webhook') && s.includes('https://')) {
let t = s.replace(/\/users\/(\d+)\-[^\/]+\//, '/users/$1/');
t = t.replace(/https:\/\/greasyfork\.org\/[-\w]+\/users\//, 'https://greasyfork.org/en/users/');
elm.value = t;
}
}
}
});
}
// 调用函数
customizeWebhookInfoPage();
customizeWebhookInfoPage2();
function customizeWebhookInfoPage2() {
if (window.location.href.indexOf("https://greasyfork.org/zh-CN/users/webhook-info") != -1) //webhook
{
$("h3").each(function () {
if ($(this).text() == 'GitHub') {
$(this).html('
Github')
}
else if ($(this).text() == 'Bitbucket') {
$(this).html('
Bitbucket')
}
else if ($(this).text() == 'GitLab') {
$(this).html('
GitLab')
}
});
$('textarea').attr('cols', '130');
$("input").each(function () {
if ($(this).val() == "Generate")
$(this).val("生成");
if ($(this).val() == "Regenerate")
$(this).val("重新生成");
})
}
}
//功能-隐藏AD 482672
function addStyleToHideElements(classSelectors) {
classSelectors.forEach(selector => {
var style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = selector + ' { display: none !important; }';
document.head.appendChild(style);
});
}
// 使用示例
addStyleToHideElements(['.ad-entry', '.ad.ad-ea']);
//功能-语言筛选器 greasyfork.org/scripts/467463
function handleLocaleFilter(linkSelector, filterParam = 'filter_locale', defaultValue = '0') {
const currentURL = new URL(window.location.href);
const regex = /^https:\/\/greasyfork\.org\/.*\/scripts\?.*/;
if (!regex.test(currentURL)) {
return; // 如果 URL 不匹配,退出函数
}
const searchParams = new URLSearchParams(currentURL.search);
// Check if the user manually clicked the filter locale link.
const manuallyClicked = sessionStorage.getItem('filterLocaleClicked');
// If user did not manually select language, and filter_locale is not set, redirect to show scripts from all languages.
if (manuallyClicked !== 'true' && !searchParams.has(filterParam)) {
searchParams.append(filterParam, defaultValue);
currentURL.search = searchParams.toString();
window.location.replace(currentURL.toString());
}
// On a page where the locale can be filtered, add click listener to the filter locale link.
const filterLocaleLink = document.querySelector(linkSelector); // Selector for the "Show English results only" or equivalent link
if (filterLocaleLink) {
filterLocaleLink.addEventListener('click', () => {
sessionStorage.setItem('filterLocaleClicked', 'true');
});
}
}
if (userhandleLocaleFilter) {
handleLocaleFilter('.sidebarred-main-content p a');
}
//功能-旧版本视图greasyfork.org/scripts/464089/
function applyCustomStyles() {
let css = `
/* disable default properties */
.inline-script-stats {
display: unset;
margin: 0;
}
.script-meta-block {
max-width: none;
}
/* return old properties */
.inline-script-stats dt,
.inline-script-stats dd {
float: left;
width: 50%;
}
/* make 600px max width for script meta block if this is script page */
#script-content .script-meta-block {
max-width: 600px;
}
/* to prevent style breaking, 18px is minimal height if element doesn't have any content (e.g. author link may not appear) */
.inline-script-stats dd span:empty {
display: block;
height: 20px;
}
`;
if (typeof GM_addStyle !== "undefined") {
GM_addStyle(css);
} else {
let styleNode = document.createElement("style");
styleNode.appendChild(document.createTextNode(css));
(document.querySelector("head") || document.documentElement).appendChild(styleNode);
}
}
if (userapplyCustomStyles) {
applyCustomStyles();
}
// Call the function to apply the styles
//功能-高亮代码片段
// Define a function to set up code highlighting
function setupCodeHighlighting() {
if(useHighlighttocode){
if (checkMode()) {
setCodeContainerTheme(false);
} else {
setCodeContainerTheme(true);
}
}else{
const link = document.createElement('link');
link.rel = 'stylesheet';
link.href = checkMode()
? 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/dark.min.css'
: 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/default.min.css';
document.head.appendChild(link);
}
// Function to highlight code blocks
function highlightTextCode() {
const selectors = [
'pre:not([class])', // 选择没有 class 属性的
元素
'code' , // 选择所有 元素
];
selectors.forEach(selector => {
document.querySelectorAll(selector).forEach(block => {
$(block).css({
'font-size': 'smaller',
'word-break': 'break-word',
'white-space': 'pre-wrap',
'word-wrap': 'break-word'
});
// Get the text content of the element
const codeContent = block.textContent;
hljs.highlightElement(block);
});
});
}
// Run the highlightTextCode function immediately for existing code blocks
highlightTextCode();
}
if (useHighlighting) {
setupCodeHighlighting();
}
// Call the setupCodeHighlighting function to initialize code highlighting
function isMobileDevice() {
const userAgent = navigator.userAgent || navigator.vendor || window.opera;
return /android|iPad|iPhone|iPod|IEMobile|WPDesktop|Windows Phone|webOS|BlackBerry|Opera Mini|Mobile|tablet/i.test(userAgent) ||
(window.innerWidth <= 1024 && (window.innerHeight <= 768 || window.orientation !== undefined));
}
//功能-库页面增加复制按钮 greasyfork.org/scripts/463
function addCopyButtonBeforeScriptLink() {
var scriptLink = $('#script-content > p > code:first-child');
if (scriptLink.length > 0) {
GM_addStyle(`
.custom-container {
display: flex;
align-items: center;
gap: 10px; /* 增加 button 和 code 之间的间隔 */
}
.custom-button {
background-color: #007bff;
color: white;
border: none;
padding: 8px 12px;
border-radius: 5px;
cursor: pointer;
font-size: 14px;
}
.custom-button:hover {
background-color: #0056b3;
}
.custom-button:active {
background-color: #004a99;
}
`);
// 创建一个包含复制按钮和原始 code 元素的 div 元素
var container = $('');
// 创建一个复制按钮
var copyButton = $('');
// 添加点击事件来复制内容到剪贴板
copyButton.on('click', function () {
var codeContent = scriptLink.text(); // 获取原始 code 元素内容
// 直接复制内容到剪贴板
navigator.clipboard.writeText(codeContent).then(function () {
// 提示用户内容已复制
copyButton.text('Copied');
// 1 秒后将按钮标题恢复为 "Copy"
setTimeout(function () {
copyButton.text('Copy');
}, 1000);
}).catch(function (error) {
console.error('复制失败:', error);
});
});
// 将复制按钮和原始 code 元素添加到 container 中
container.append(copyButton);
container.append(scriptLink.clone());
// 用 container 替换 scriptLink
scriptLink.replaceWith(container);
}
}
// 调用函数以添加复制按钮
if(addCopyButtonBeforelibScript){
addCopyButtonBeforeScriptLink();
}
/* if (window.location.href.match(/^https:\/\/greasyfork\.org\/[^\/]+\/scripts\/\d+$/)) {
console.log('当前页面是 GreasyFork 的脚本页面');
// 在这里添加你的操作代码
// 例如,调用你的函数
replaceScriptLinkWithInput();
} else {
console.log('当前页面不是 GreasyFork 的脚本页面');
} */
//功能-代码查看页面增加梅花
function setCodeContainerTheme(isDayMode) {
const themeCSS = isDayMode ? GM_getResourceText('atom-one-light.css') : GM_getResourceText('atom-one-dark.css');
GM_addStyle(themeCSS);
let lockmode1 = GM_getValue('lockmode');
// 检查 lockmode1 是否是一个字符串,并且是否包含英文字母
if (typeof lockmode1 === 'string' && /[a-zA-Z]/.test(lockmode1)) {
//下面的CSS代码不允许添加,防止控件超出范围
return;
}
GM_addStyle(`
.code-container {
background-color: ${isDayMode ? '#f5f5f5' : '#282c34'};
border-radius: 8px;
max-height: 100%;
overflow: visible;
}
.code-container ::-webkit-scrollbar {
width: 14px;
height: 14px;
background-color: transparent;
}
.code-container ::-webkit-scrollbar-track {
background-color: transparent;
}
.code-container ::-webkit-scrollbar-thumb {
background-color: rgba(78, 86, 102, 0);
}
.code-container ::-webkit-scrollbar-corner {
background-color: transparent;
}
.code-container:hover ::-webkit-scrollbar-thumb {
background-color: ${isDayMode ? '#f5f5f5' : '#636d83'};
}
.code-container ::selection {
background-color: ${isDayMode ? '#f5f5f5' : '#636d83'};
}
.code-container pre code {
padding: 0;
font-family: Consolas;
cursor: text;
overflow: auto;
max-height: calc(100vh - 267px);
}
.code-container pre code .marker {
display: inline-block;
color:${isDayMode ? '#f5f5f5' : '#636d83'};
text-align: right;
padding-right: 20px;
user-select: none;
cursor: auto;
}
`);
}
// 选择白天模式或黑夜模式 //反选
function checkMode() {
// 获取 #script-info 元素
const scriptInfoElement = document.querySelector('#script-info');
// 检查元素是否存在
if (scriptInfoElement) {
if(lockmode==="1"){
return true; // 锁定黑夜
}
if(lockmode==="2"){
return false; // 锁定白天
}
// 获取元素的计算样式
const computedStyle = window.getComputedStyle(scriptInfoElement);
// 获取背景颜色
const backgroundColor = computedStyle.backgroundColor;
// 打印背景颜色到控制台
console.log('背景颜色:', backgroundColor);
// 判断背景颜色是否为白色
if (backgroundColor === 'rgb(255, 255, 255)') { // 白色背景
return false; // 白色背景为白天模式
} else {
return true; // 其他背景色为黑夜模式
}
} else {
return false; // 如果没有找到元素,假设为白天模式
}
}
function checkAndSetTheme() {
const scriptInfoElement = document.querySelector('#script-info');
if (scriptInfoElement) {
if (checkMode()) {
setCodeContainerTheme(false);
} else {
setCodeContainerTheme(true);
}
} else {
}
}
if(useHighlighttocode){
let lockmode1 = GM_getValue('lockmode');
// 检查 lockmode1 是否是一个字符串,并且是否包含英文字母
if (typeof lockmode1 === 'string' && /[a-zA-Z]/.test(lockmode1)) {
// 执行不等于 0、1、2 时的逻辑
const type = lockmode1;
const css = getCssRules(type);
GM_addStyle(`
.prettyprint {
font-size: 12px
}
#script-content > div.code-container > pre {
white-space: pre-wrap; /* 自动换行 */
word-wrap: break-word; /* 长单词换行 */
width: unset
}
`);
GM_addStyle(css);
return;
}
checkAndSetTheme();
$(document).ready(function() {
$('pre.lang-js').each((pre_i, pre) => {
// 调整代码,给一些压缩代码增加换行
$(pre).find('li').append('\n');
const code = $('').html(pre.innerHTML);
// 清空原始代码容器,放置新容器
$(pre).removeClass().html('').append(code).addClass('code-container');
// 高亮
hljs.highlightElement(pre.querySelector('code'));
// 增加行号
const html = $(pre).find('code').html();
const htmlSplit = html.split('\n');
const totalLines = htmlSplit.length;
$(pre).find('code').html(
htmlSplit.map((n, i) => `${i + 1}${n}`).join('\n')
);
});
});
}
//功能-选择器透明
function fuckselector() {
const languageSelector = document.querySelector("#language-selector-locale");
if (languageSelector) {
// 设置默认背景颜色为透明
languageSelector.style.backgroundColor = 'transparent';
// 取消边框
languageSelector.style.border = 'none';
// 添加样式来控制下拉时和悬停时的背景颜色
const styleSheet = document.createElement("style");
styleSheet.type = "text/css";
styleSheet.innerText = `
#language-selector-locale {
background-color: transparent !important; /* 默认状态下背景透明 */
border: none !important; /* 取消边框 */
}
#language-selector-locale:focus {
background-color: #fff !important; /* 下拉时的背景颜色 */
border: none !important; /* 取消边框 */
}
#language-selector-locale:hover {
background-color: #f0f0f0 !important; /* 鼠标悬停时的背景颜色 */
border: none !important; /* 取消边框 */
}
`;
document.head.appendChild(styleSheet);
// 监听焦点和失去焦点事件以调试背景颜色
languageSelector.addEventListener('focus', () => {
languageSelector.style.backgroundColor = '#fff'; // 下拉时的背景颜色
});
languageSelector.addEventListener('blur', () => {
languageSelector.style.backgroundColor = 'transparent'; // 收起时的背景颜色
});
}
}
// 执行函数以应用样式
fuckselector();
function getCssRules(type) {
switch (type) {
case 'Tomorrow-Night':
return `.prettyprint{background:#1d1f21;font-family:Menlo,Bitstream Vera Sans Mono,DejaVu Sans Mono,Monaco,Consolas,monospace;border:0!important}.pln{color:#c5c8c6}ol.linenums{margin-top:0;margin-bottom:0;color:#969896}li.L0,li.L1,li.L2,li.L3,li.L4,li.L5,li.L6,li.L7,li.L8,li.L9{padding-left:1em;background-color:#1d1f21;list-style-type:decimal}@media screen{.str{color:#b5bd68}.kwd{color:#b294bb}.com{color:#969896}.typ{color:#81a2be}.lit{color:#de935f}.pun{color:#c5c8c6}.opn{color:#c5c8c6}.clo{color:#c5c8c6}.tag{color:#c66}.atn{color:#de935f}.atv{color:#8abeb7}.dec{color:#de935f}.var{color:#c66}.fun{color:#81a2be}}
.ace_gutter{background:#25282c!important;color:#C5C8C6!important}.ace_print-margin{width:1px!important;background:#25282c!important}.ace_editor{background-color:#1D1F21!important;color:#C5C8C6!important}.ace_cursor{color:#AEAFAD!important}.ace_marker-layer .ace_selection{background:#373B41!important}.ace-tomorrow-night.ace_multiselect .ace_selection.ace_start{box-shadow:0 0 3px 0 #1D1F21!important}.ace_marker-layer .ace_step{background:rgb(102,82,0)!important}.ace_marker-layer .ace_bracket{margin:-1px 0 0 -1px!important;border:1px solid #4B4E55!important}.ace_marker-layer .ace_active-line{background:#282A2E!important}.ace_gutter-active-line{background-color:#282A2E!important}.ace_marker-layer .ace_selected-word{border:1px solid #373B41!important}.ace_invisible{color:#4B4E55!important}.ace_keyword,.ace_meta,.ace_storage,.ace_storage.ace_type,.ace_support.ace_type{color:#B294BB!important}.ace_keyword.ace_operator{color:#8ABEB7!important}.ace_constant.ace_character,.ace_constant.ace_language,.ace_constant.ace_numeric,.ace_keyword.ace_other.ace_unit,.ace_support.ace_constant,.ace_variable.ace_parameter{color:#DE935F!important}.ace_constant.ace_other{color:#CED1CF!important}.ace_invalid{color:#CED2CF!important;background-color:#DF5F5F!important}.ace_invalid.ace_deprecated{color:#CED2CF!important;background-color:#B798BF!important}.ace_fold{background-color:#81A2BE!important;border-color:#C5C8C6!important}.ace_entity.ace_name.ace_function,.ace_support.ace_function,.ace_variable{color:#81A2BE!important}.ace_support.ace_class,.ace_support.ace_type{color:#F0C674!important}.ace_heading,.ace_markup.ace_heading,.ace_string{color:#B5BD68!important}.ace_entity.ace_name.ace_tag,.ace_entity.ace_other.ace_attribute-name,.ace_meta.ace_tag,.ace_string.ace_regexp,.ace_variable{color:#CC6666!important}.ace_comment{color:#969896!important}.ace_indent-guide{background:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYHB3d/8PAAOIAdULw8qMAAAAAElFTkSuQmCC') right repeat-y!important}
`;
case 'Tomorrow-Night-Eighties':
return `.prettyprint{background:#2d2d2d;font-family:Menlo,Bitstream Vera Sans Mono,DejaVu Sans Mono,Monaco,Consolas,monospace;border:0!important}.pln{color:#ccc}ol.linenums{margin-top:0;margin-bottom:0;color:#999}li.L0,li.L1,li.L2,li.L3,li.L4,li.L5,li.L6,li.L7,li.L8,li.L9{padding-left:1em;background-color:#2d2d2d;list-style-type:decimal}@media screen{.str{color:#9c9}.kwd{color:#c9c}.com{color:#999}.typ{color:#69c}.lit{color:#f99157}.pun{color:#ccc}.opn{color:#ccc}.clo{color:#ccc}.tag{color:#f2777a}.atn{color:#f99157}.atv{color:#6cc}.dec{color:#f99157}.var{color:#f2777a}.fun{color:#69c}}
.ace_gutter{background:#272727!important;color:#CCC!important}.ace_print-margin{width:1px!important;background:#272727!important}.ace_editor{background-color:#2D2D2D!important;color:#CCCCCC!important}.ace_constant.ace_other,.ace_cursor{color:#CCCCCC!important}.ace_marker-layer .ace_selection{background:#515151!important}.ace-tomorrow-night-eighties.ace_multiselect .ace_selection.ace_start{box-shadow:0 0 3px 0 #2D2D2D!important}.ace_marker-layer .ace_step{background:rgb(102,82,0)!important}.ace_marker-layer .ace_bracket{margin:-1px 0 0 -1px!important;border:1px solid #6A6A6A!important}.ace-tomorrow-night-bright .ace_stack{background:rgb(66,90,44)!important}.ace_marker-layer .ace_active-line{background:#393939!important}.ace_gutter-active-line{background-color:#393939!important}.ace_marker-layer .ace_selected-word{border:1px solid #515151!important}.ace_invisible{color:#6A6A6A!important}.ace_keyword,.ace_meta,.ace_storage,.ace_storage.ace_type,.ace_support.ace_type{color:#CC99CC!important}.ace_keyword.ace_operator{color:#66CCCC!important}.ace_constant.ace_character,.ace_constant.ace_language,.ace_constant.ace_numeric,.ace_keyword.ace_other.ace_unit,.ace_support.ace_constant,.ace_variable.ace_parameter{color:#F99157!important}.ace_invalid{color:#CDCDCD!important;background-color:#F2777A!important}.ace_invalid.ace_deprecated{color:#CDCDCD!important;background-color:#CC99CC!important}.ace_fold{background-color:#6699CC!important;border-color:#CCCCCC!important}.ace_entity.ace_name.ace_function,.ace_support.ace_function,.ace_variable{color:#6699CC!important}.ace_support.ace_class,.ace_support.ace_type{color:#FFCC66!important}.ace_heading,.ace_markup.ace_heading,.ace_string{color:#99CC99!important}.ace_comment{color:#999999!important}.ace_entity.ace_name.ace_tag,.ace_entity.ace_other.ace_attribute-name,.ace_meta.ace_tag,.ace_variable{color:#F2777A!important}.ace_indent-guide{background:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWPQ09NrYAgMjP4PAAtGAwchHMyAAAAAAElFTkSuQmCC') right repeat-y!important}
`;
case 'Tomorrow-Night-Blue':
return `.prettyprint{background:#002451;font-family:Menlo,Bitstream Vera Sans Mono,DejaVu Sans Mono,Monaco,Consolas,monospace;border:0!important}.pln{color:#fff}ol.linenums{margin-top:0;margin-bottom:0;color:#7285b7}li.L0,li.L1,li.L2,li.L3,li.L4,li.L5,li.L6,li.L7,li.L8,li.L9{padding-left:1em;background-color:#002451;list-style-type:decimal}@media screen{.str{color:#d1f1a9}.kwd{color:#ebbbff}.com{color:#7285b7}.typ{color:#bbdaff}.lit{color:#ffc58f}.pun{color:#fff}.opn{color:#fff}.clo{color:#fff}.tag{color:#ff9da4}.atn{color:#ffc58f}.atv{color:#9ff}.dec{color:#ffc58f}.var{color:#ff9da4}.fun{color:#bbdaff}}
.ace_gutter{background:#00204b!important;color:#7388b5!important}.ace_print-margin{width:1px!important;background:#00204b!important}.ace_editor{background-color:#002451!important;color:#FFFFFF!important}.ace_constant.ace_other,.ace_cursor{color:#FFFFFF!important}.ace_marker-layer .ace_selection{background:#003F8E!important}.ace-tomorrow-night-blue.ace_multiselect .ace_selection.ace_start{box-shadow:0 0 3px 0 #002451!important}.ace_marker-layer .ace_step{background:rgb(127,111,19)!important}.ace_marker-layer .ace_bracket{margin:-1px 0 0 -1px!important;border:1px solid #404F7D!important}.ace_marker-layer .ace_active-line{background:#00346E!important}.ace_gutter-active-line{background-color:#022040!important}.ace_marker-layer .ace_selected-word{border:1px solid #003F8E!important}.ace_invisible{color:#404F7D!important}.ace_keyword,.ace_meta,.ace_storage,.ace_storage.ace_type,.ace_support.ace_type{color:#EBBBFF!important}.ace_keyword.ace_operator{color:#99FFFF!important}.ace_constant.ace_character,.ace_constant.ace_language,.ace_constant.ace_numeric,.ace_keyword.ace_other.ace_unit,.ace_support.ace_constant,.ace_variable.ace_parameter{color:#FFC58F!important}.ace_invalid{color:#FFFFFF!important;background-color:#F99DA5!important}.ace_invalid.ace_deprecated{color:#FFFFFF!important;background-color:#EBBBFF!important}.ace_fold{background-color:#BBDAFF!important;border-color:#FFFFFF!important}.ace_entity.ace_name.ace_function,.ace_support.ace_function,.ace_variable{color:#BBDAFF!important}.ace_support.ace_class,.ace_support.ace_type{color:#FFEEAD!important}.ace_heading,.ace_markup.ace_heading,.ace_string{color:#D1F1A9!important}.ace_entity.ace_name.ace_tag,.ace_entity.ace_other.ace_attribute-name,.ace_meta.ace_tag,.ace_string.ace_regexp,.ace_variable{color:#FF9DA4!important}.ace_comment{color:#7285B7!important}.ace_indent-guide{background:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYJDzqfwPAANXAeNsiA+ZAAAAAElFTkSuQmCC') right repeat-y!important}
`;
case 'Tomorrow-Night-Bright':
return `.prettyprint{background:#000;font-family:Menlo,Bitstream Vera Sans Mono,DejaVu Sans Mono,Monaco,Consolas,monospace;border:0!important}.pln{color:#eaeaea}ol.linenums{margin-top:0;margin-bottom:0;color:#969896}li.L0,li.L1,li.L2,li.L3,li.L4,li.L5,li.L6,li.L7,li.L8,li.L9{padding-left:1em;background-color:#000;list-style-type:decimal}@media screen{.str{color:#b9ca4a}.kwd{color:#c397d8}.com{color:#969896}.typ{color:#7aa6da}.lit{color:#e78c45}.pun{color:#eaeaea}.opn{color:#eaeaea}.clo{color:#eaeaea}.tag{color:#d54e53}.atn{color:#e78c45}.atv{color:#70c0b1}.dec{color:#e78c45}.var{color:#d54e53}.fun{color:#7aa6da}}
#ace-editor{border:1px solid rgba(255,255,255,.1)}.ace_gutter{background:#1a1a1a!important;color:#DEDEDE!important}.ace_print-margin{width:1px!important;background:#1a1a1a!important}.ace_editor{background-color:#000000!important;color:#DEDEDE!important}.ace_cursor{color:#9F9F9F!important}.ace_marker-layer .ace_selection{background:#424242!important}.ace_multiselect .ace_selection.ace_start{box-shadow:0 0 3px 0 #000000!important}.ace_marker-layer .ace_step{background:rgb(102,82,0)!important}.ace_marker-layer .ace_bracket{margin:-1px 0 0 -1px!important;border:1px solid #888888!important}.ace_marker-layer .ace_highlight{border:1px solid rgb(110,119,0)!important;border-bottom:0!important;box-shadow:inset 0 -1px rgb(110,119,0)!important;margin:-1px 0 0 -1px!important;background:rgba(255,235,0,.1)!important}.ace_marker-layer .ace_active-line{background:#2A2A2A!important}.ace_gutter-active-line{background-color:#2A2A2A!important}.ace_stack{background-color:rgb(66,90,44)!important}.ace_marker-layer .ace_selected-word{border:1px solid #888888!important}.ace_invisible{color:#343434!important}.ace_keyword,.ace_meta,.ace_storage,.ace_storage.ace_type,.ace_support.ace_type{color:#C397D8!important}.ace_keyword.ace_operator{color:#70C0B1!important}.ace_constant.ace_character,.ace_constant.ace_language,.ace_constant.ace_numeric,.ace_keyword.ace_other.ace_unit,.ace_support.ace_constant,.ace_variable.ace_parameter{color:#E78C45!important}.ace_constant.ace_other{color:#EEEEEE!important}.ace_invalid{color:#CED2CF!important;background-color:#DF5F5F!important}.ace_invalid.ace_deprecated{color:#CED2CF!important;background-color:#B798BF!important}.ace_fold{background-color:#7AA6DA!important;border-color:#DEDEDE!important}.ace_entity.ace_name.ace_function,.ace_support.ace_function,.ace_variable{color:#7AA6DA!important}.ace_support.ace_class,.ace_support.ace_type{color:#E7C547!important}.ace_heading,.ace_markup.ace_heading,.ace_string{color:#B9CA4A!important}.ace_entity.ace_name.ace_tag,.ace_entity.ace_other.ace_attribute-name,.ace_meta.ace_tag,.ace_string.ace_regexp,.ace_variable{color:#D54E53!important}.ace_comment{color:#969896!important}.ace_c9searchresults.ace_keyword{color:#C2C280!important}.ace_indent-guide{background:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYFBXV/8PAAJoAXX4kT2EAAAAAElFTkSuQmCC') right repeat-y!important}
`;
case 'Vibrant-Ink':
return `.prettyprint{background:#000;font-family:Menlo,Bitstream Vera Sans Mono,DejaVu Sans Mono,Monaco,Consolas,monospace;border:0!important}.pln{color:#fff}ol.linenums{margin-top:0;margin-bottom:0;color:#666}li.L0,li.L1,li.L2,li.L3,li.L4,li.L5,li.L6,li.L7,li.L8,li.L9{padding-left:1em;background-color:#000;list-style-type:decimal}@media screen{.str{color:#6f0}.kwd{color:#f60}.com{color:#93c}.typ{color:#458}.lit{color:#458}.pun{color:#fff}.opn{color:#fff}.clo{color:#fff}.tag{color:#fff}.atn{color:#9c9}.atv{color:#6f0}.dec{color:#fff}.var{color:#fff}.fun{color:#fc0}}
.ace_gutter{background:#1a1a1a!important;color:#BEBEBE!important}.ace_print-margin{width:1px!important;background:#1a1a1a!important}.ace_editor{background-color:#0F0F0F!important;color:#FFFFFF!important}.ace_cursor{color:#FFFFFF!important}.ace_marker-layer .ace_selection{background:#6699CC!important}.ace-vibrant-ink.ace_multiselect .ace_selection.ace_start{box-shadow:0 0 3px 0 #0F0F0F!important}.ace_marker-layer .ace_step{background:rgb(102,82,0)!important}.ace_marker-layer .ace_bracket{margin:-1px 0 0 -1px!important;border:1px solid #404040!important}.ace_marker-layer .ace_active-line{background:#333333!important}.ace_gutter-active-line{background-color:#333333!important}.ace_marker-layer .ace_selected-word{border:1px solid #6699CC!important}.ace_invisible{color:#404040!important}.ace_keyword,.ace_meta{color:#FF6600!important}.ace_constant,.ace_constant.ace_character,.ace_constant.ace_character.ace_escape,.ace_constant.ace_other{color:#339999!important}.ace_constant.ace_numeric{color:#99CC99!important}.ace_invalid,.ace_invalid.ace_deprecated{color:#CCFF33!important;background-color:#000000!important}.ace_fold{background-color:#FFCC00!important;border-color:#FFFFFF!important}.ace_entity.ace_name.ace_function,.ace_support.ace_function,.ace_variable{color:#FFCC00!important}.ace_variable.ace_parameter{font-style:italic!important}.ace_string{color:#66FF00!important}.ace_string.ace_regexp{color:#44B4CC!important}.ace_comment{color:#9933CC!important}.ace_entity.ace_other.ace_attribute-name{font-style:italic!important;color:#99CC99!important}.ace_indent-guide{background:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYNDTc/oPAALPAZ7hxlbYAAAAAElFTkSuQmCC') right repeat-y!important}
`;
case 'Hemisu-Dark':
return `.prettyprint{background:#000;font-family:Menlo,Bitstream Vera Sans Mono,DejaVu Sans Mono,Monaco,Consolas,monospace;border:0!important}.pln{color:#eee}ol.linenums{margin-top:0;margin-bottom:0;color:#777}li.L0,li.L1,li.L2,li.L3,li.L4,li.L5,li.L6,li.L7,li.L8,li.L9{padding-left:1em;background-color:#000;list-style-type:decimal}@media screen{.str{color:#b1d631}.kwd{color:#b1d631}.com{color:#777}.typ{color:#bfa}.lit{color:#9fd3e6}.pun{color:#eee}.opn{color:#eee}.clo{color:#eee}.tag{color:#eee}.atn{color:#b1d631}.atv{color:#bfa}.dec{color:#eee}.var{color:#eee}.fun{color:#9fd3e6}}
`;
case 'Tranquil-Heart':
return `.prettyprint{background:#2f3640;font-family:Menlo,Bitstream Vera Sans Mono,DejaVu Sans Mono,Monaco,Consolas,monospace;border:0!important}.pln{color:#e6e9ed}ol.linenums{margin-top:0;margin-bottom:0;color:#656d78}li.L0,li.L1,li.L2,li.L3,li.L4,li.L5,li.L6,li.L7,li.L8,li.L9{padding-left:1em;background-color:#2f3640;list-style-type:decimal}@media screen{.str{color:#ffce54}.kwd{color:#4fc1e9}.com{color:#656d78}.typ{color:#4fc1e9}.lit{color:#ac92ec}.pun{color:#e6e9ed}.opn{color:#e6e9ed}.clo{color:#e6e9ed}.tag{color:#ed5565}.atn{color:#a0d468}.atv{color:#ffce54}.dec{color:#ac92ec}.var{color:#e6e9ed}.fun{color:#e6e9ed}}
`;
case 'Atelier-Cave-Dark':
return `.prettyprint{background:#19171c;font-family:Menlo,Bitstream Vera Sans Mono,DejaVu Sans Mono,Monaco,Consolas,monospace;border:0!important}.pln{color:#efecf4}ol.linenums{margin-top:0;margin-bottom:0;color:#655f6d}li.L0,li.L1,li.L2,li.L3,li.L4,li.L5,li.L6,li.L7,li.L8,li.L9{padding-left:1em;background-color:#19171c;list-style-type:decimal}@media screen{.str{color:#2a9292}.kwd{color:#955ae7}.com{color:#655f6d}.typ{color:#576ddb}.lit{color:#aa573c}.pun{color:#efecf4}.opn{color:#efecf4}.clo{color:#efecf4}.tag{color:#be4678}.atn{color:#aa573c}.atv{color:#398bc6}.dec{color:#aa573c}.var{color:#be4678}.fun{color:#576ddb}}
`;
case 'Atelier-Dune-Dark':
return `.prettyprint{background:#20201d;font-family:Menlo,Bitstream Vera Sans Mono,DejaVu Sans Mono,Monaco,Consolas,monospace;border:0!important}.pln{color:#fefbec}ol.linenums{margin-top:0;margin-bottom:0;color:#7d7a68}li.L0,li.L1,li.L2,li.L3,li.L4,li.L5,li.L6,li.L7,li.L8,li.L9{padding-left:1em;background-color:#20201d;list-style-type:decimal}@media screen{.str{color:#60ac39}.kwd{color:#b854d4}.com{color:#7d7a68}.typ{color:#6684e1}.lit{color:#b65611}.pun{color:#fefbec}.opn{color:#fefbec}.clo{color:#fefbec}.tag{color:#d73737}.atn{color:#b65611}.atv{color:#1fad83}.dec{color:#b65611}.var{color:#d73737}.fun{color:#6684e1}}
`;
case 'Atelier-Estuary-Dark':
return `.prettyprint{background:#22221b;font-family:Menlo,Bitstream Vera Sans Mono,DejaVu Sans Mono,Monaco,Consolas,monospace;border:0!important}.pln{color:#f4f3ec}ol.linenums{margin-top:0;margin-bottom:0;color:#6c6b5a}li.L0,li.L1,li.L2,li.L3,li.L4,li.L5,li.L6,li.L7,li.L8,li.L9{padding-left:1em;background-color:#22221b;list-style-type:decimal}@media screen{.str{color:#7d9726}.kwd{color:#5f9182}.com{color:#6c6b5a}.typ{color:#36a166}.lit{color:#ae7313}.pun{color:#f4f3ec}.opn{color:#f4f3ec}.clo{color:#f4f3ec}.tag{color:#ba6236}.atn{color:#ae7313}.atv{color:#5b9d48}.dec{color:#ae7313}.var{color:#ba6236}.fun{color:#36a166}}
`;
case 'Atelier-Forest-Dark':
return `.prettyprint{background:#1b1918;font-family:Menlo,Bitstream Vera Sans Mono,DejaVu Sans Mono,Monaco,Consolas,monospace;border:0!important}.pln{color:#f1efee}ol.linenums{margin-top:0;margin-bottom:0;color:#766e6b}li.L0,li.L1,li.L2,li.L3,li.L4,li.L5,li.L6,li.L7,li.L8,li.L9{padding-left:1em;background-color:#1b1918;list-style-type:decimal}@media screen{.str{color:#7b9726}.kwd{color:#6666ea}.com{color:#766e6b}.typ{color:#407ee7}.lit{color:#df5320}.pun{color:#f1efee}.opn{color:#f1efee}.clo{color:#f1efee}.tag{color:#f22c40}.atn{color:#df5320}.atv{color:#3d97b8}.dec{color:#df5320}.var{color:#f22c40}.fun{color:#407ee7}}
`;
case 'Atelier-Heath-Dark':
return `.prettyprint{background:#1b181b;font-family:Menlo,Bitstream Vera Sans Mono,DejaVu Sans Mono,Monaco,Consolas,monospace;border:0!important}.pln{color:#f7f3f7}ol.linenums{margin-top:0;margin-bottom:0;color:#776977}li.L0,li.L1,li.L2,li.L3,li.L4,li.L5,li.L6,li.L7,li.L8,li.L9{padding-left:1em;background-color:#1b181b;list-style-type:decimal}@media screen{.str{color:#918b3b}.kwd{color:#7b59c0}.com{color:#776977}.typ{color:#516aec}.lit{color:#a65926}.pun{color:#f7f3f7}.opn{color:#f7f3f7}.clo{color:#f7f3f7}.tag{color:#ca402b}.atn{color:#a65926}.atv{color:#159393}.dec{color:#a65926}.var{color:#ca402b}.fun{color:#516aec}}
`;
case 'Atelier-Lakeside-Dark':
return `.prettyprint{background:#161b1d;font-family:Menlo,Bitstream Vera Sans Mono,DejaVu Sans Mono,Monaco,Consolas,monospace;border:0!important}.pln{color:#ebf8ff}ol.linenums{margin-top:0;margin-bottom:0;color:#5a7b8c}li.L0,li.L1,li.L2,li.L3,li.L4,li.L5,li.L6,li.L7,li.L8,li.L9{padding-left:1em;background-color:#161b1d;list-style-type:decimal}@media screen{.str{color:#568c3b}.kwd{color:#6b6bb8}.com{color:#5a7b8c}.typ{color:#257fad}.lit{color:#935c25}.pun{color:#ebf8ff}.opn{color:#ebf8ff}.clo{color:#ebf8ff}.tag{color:#d22d72}.atn{color:#935c25}.atv{color:#2d8f6f}.dec{color:#935c25}.var{color:#d22d72}.fun{color:#257fad}}
`;
case 'Atelier-Plateau-Dark':
return `.prettyprint{background:#1b1818;font-family:Menlo,Bitstream Vera Sans Mono,DejaVu Sans Mono,Monaco,Consolas,monospace;border:0!important}.pln{color:#f4ecec}ol.linenums{margin-top:0;margin-bottom:0;color:#655d5d}li.L0,li.L1,li.L2,li.L3,li.L4,li.L5,li.L6,li.L7,li.L8,li.L9{padding-left:1em;background-color:#1b1818;list-style-type:decimal}@media screen{.str{color:#4b8b8b}.kwd{color:#8464c4}.com{color:#655d5d}.typ{color:#7272ca}.lit{color:#b45a3c}.pun{color:#f4ecec}.opn{color:#f4ecec}.clo{color:#f4ecec}.tag{color:#ca4949}.atn{color:#b45a3c}.atv{color:#5485b6}.dec{color:#b45a3c}.var{color:#ca4949}.fun{color:#7272ca}}
`;
case 'Atelier-Savanna-Dark':
return `.prettyprint{background:#171c19;font-family:Menlo,Bitstream Vera Sans Mono,DejaVu Sans Mono,Monaco,Consolas,monospace;border:0!important}.pln{color:#ecf4ee}ol.linenums{margin-top:0;margin-bottom:0;color:#5f6d64}li.L0,li.L1,li.L2,li.L3,li.L4,li.L5,li.L6,li.L7,li.L8,li.L9{padding-left:1em;background-color:#171c19;list-style-type:decimal}@media screen{.str{color:#489963}.kwd{color:#55859b}.com{color:#5f6d64}.typ{color:#478c90}.lit{color:#9f713c}.pun{color:#ecf4ee}.opn{color:#ecf4ee}.clo{color:#ecf4ee}.tag{color:#b16139}.atn{color:#9f713c}.atv{color:#1c9aa0}.dec{color:#9f713c}.var{color:#b16139}.fun{color:#478c90}}
`;
case 'Atelier-Seaside-Dark':
return `.prettyprint{background:#131513;font-family:Menlo,Bitstream Vera Sans Mono,DejaVu Sans Mono,Monaco,Consolas,monospace;border:0!important}.pln{color:#f4fbf4}ol.linenums{margin-top:0;margin-bottom:0;color:#687d68}li.L0,li.L1,li.L2,li.L3,li.L4,li.L5,li.L6,li.L7,li.L8,li.L9{padding-left:1em;background-color:#131513;list-style-type:decimal}@media screen{.str{color:#29a329}.kwd{color:#ad2bee}.com{color:#687d68}.typ{color:#3d62f5}.lit{color:#87711d}.pun{color:#f4fbf4}.opn{color:#f4fbf4}.clo{color:#f4fbf4}.tag{color:#e6193c}.atn{color:#87711d}.atv{color:#1999b3}.dec{color:#87711d}.var{color:#e6193c}.fun{color:#3d62f5}}
`;
case 'Atelier-Sulphurpool-Dark':
return `.prettyprint{background:#202746;font-family:Menlo,Bitstream Vera Sans Mono,DejaVu Sans Mono,Monaco,Consolas,monospace;border:0!important}.pln{color:#f5f7ff}ol.linenums{margin-top:0;margin-bottom:0;color:#6b7394}li.L0,li.L1,li.L2,li.L3,li.L4,li.L5,li.L6,li.L7,li.L8,li.L9{padding-left:1em;background-color:#202746;list-style-type:decimal}@media screen{.str{color:#ac9739}.kwd{color:#6679cc}.com{color:#6b7394}.typ{color:#3d8fd1}.lit{color:#c76b29}.pun{color:#f5f7ff}.opn{color:#f5f7ff}.clo{color:#f5f7ff}.tag{color:#c94922}.atn{color:#c76b29}.atv{color:#22a2c9}.dec{color:#c76b29}.var{color:#c94922}.fun{color:#3d8fd1}}
`;
case 'Desert':
return `pre.prettyprint,pre.prettyprinted,.Message pre ol{display:block;background-color:#333}pre .nocode{background-color:none;color:#000}pre .str{color:#ffa0a0}pre .kwd{color:khaki;font-weight:700}pre .com{color:#87ceeb}pre .typ{color:#98fb98}pre .lit{color:#cd5c5c}pre .pun{color:#fff}pre .pln{color:#fff}pre .tag{color:khaki;font-weight:700}pre .atn{color:#bdb76b;font-weight:700}pre .atv{color:#ffa0a0}pre .dec{color:#98fb98}ol.linenums{margin-top:0;margin-bottom:0;color:#AEAEAE}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:none}
`;
case 'Sunburst':
return `pre .str, code .str { color: #65B042; }pre .kwd, code .kwd { color: #E28964; }pre .com, code .com { color: #AEAEAE; font-style: italic; }
pre .typ, code .typ { color: #89bdff; }pre .lit, code .lit { color: #3387CC; }pre .pun, code .pun { color: #fff; }pre .pln, code .pln { color: #fff; }pre .tag, code .tag { color: #89bdff; }pre .atn, code .atn { color: #bdb76b; }pre .atv, code .atv { color: #65B042; } pre .dec, code .dec { color: #3387CC; }pre.prettyprint, code.prettyprint, , pre.prettyprinted, .Message pre ol {background-color: #000;border-radius: 8px;}ol.linenums { margin-top: 0; margin-bottom: 0; color: #AEAEAE; }li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8 { list-style-type: none }li.L1,li.L3,li.L5,li.L7,li.L9 { background: none }
`;
case 'Sons-Of-Obsidian':
return `
.str{color:#EC7600}.kwd{color:#93C763}.com{color:#66747B}.typ{color:#678CB1}.lit{color:#FACD22}.pun{color:#F1F2F3}.pln{color:#F1F2F3}.tag{color:#8AC763}.atn{color:#E0E2E4}.atv{color:#EC7600}.dec{color:purple}pre.prettyprint{border:0 solid #888}ol.linenums{margin-top:0;margin-bottom:0}.prettyprint,,pre.prettyprinted,.Message pre ol{background:#000}li.L0,li.L1,li.L2,li.L3,li.L4,li.L5,li.L6,li.L7,li.L8,li.L9{color:#555;list-style-type:decimal}li.L1,li.L3,li.L5,li.L7,li.L9{background:#111}
`;
default:
return null;
}
}
})();