Gbatemp Desktop App (unofficial)

m1guelpf

Active Member
OP
Newcomer
Joined
Dec 21, 2016
Messages
39
Trophies
0
Age
22
Location
Spain
Website
miguelpiedrafita.com
XP
118
Country
Assuming you use the default settings for the theme, you should be able to just throw this css into it
Code:
@-moz-document url-prefix("http://gbatemp.net/"), url-prefix("https://gbatemp.net/") {
/*TempStyle Dark Plus, a customizable stylesheet hosted on userstyles.org*/
/*Style by CheatFreak47*/
#header {
    background-color: rgb(0, 0, 0);
}
html {
    background-color: rgb(0, 0, 0);
}
#content .pageContent {
    background-color: rgb(16, 16, 16);
}
.news_item, .news_expanded {
    background: #1D1D1D;
}
.portal_block .block_content {
    background: #1D1D1D;
}
.sectionMain {
    background-color: #1D1D1D;
    border: 1px solid #6B6B6B;
}
.nodeList .categoryForumNodeInfo, .nodeList .forumNodeInfo, .nodeList .pageNodeInfo, .nodeList .linkNodeInfo {
    background-color: #282828;
    border-bottom: 1px solid #6B6B6B;
}
.sidebar .secondaryContent {
    background: #1D1D1D;
    border-top: 1px solid #6B6B6B;
    border-bottom: 1px solid #6B6B6B;
}
#taigachat_box {
    border: 1px solid #6B6B6B;
    background: #282828;
}
#taigachat_box li {
    background: #282828;
}
.node .nodeLastPost {
    background-color: #1D1D1D;
}
.discussionList .sectionHeaders {
    background-color: #1D1D1D;
}
.discussionListItem {
    background-color: #282828;
    border-bottom: 1px solid #6B6B6B;
}
.discussionListItem .posterAvatar, .discussionListItem .stats {
    background-color: #282828;
}
.messageList .message {
    background-color: #1D1D1D;
    border-top: 1px solid #48525C;
    border-right: 1px solid #48525C;
    border-left: 1px solid #48525C;
}
.messageList .message.alt {
    background-color: #1D1D1D;
    border-top: 1px solid #48525C;
    border-right: 1px solid #48525C;
    border-left: 1px solid #48525C;
}
.conversation_view .messageList .message:nth-child(even) {
    background-color: #1D1D1D;
}
.primaryContent {
    background-color: #1D1D1D;
}
.message .messageInfo {
    background-color: #1D1D1D;
}
.quickReply, #QuickReply {
    background-color: #282828;
}
.message .messageContent {
    background-color: #1D1D1D;
}
.messageUserBlock .extraUserInfo {
    background-color: #1D1D1D;
}
.messageUserBlock h3.userText {
    background-color: #282828;
}
.messageList .message .likesSummary, .messageList .message.alt .likesSummary {
    background-color: #151515;
}
.navTabs {
    color: rgb(150, 150, 150)!important;
    background-color: rgba(50, 50, 50, 0.6)!important;
}
.footer .pageContent {
    background-color: rgb(50, 50, 50);
}
.navTabs .visitorTabs {
    background: #323232!important;
    background-color: rgb(50, 50, 50)!important;
    border-bottom: 1px solid #a6a6a6;
    border-left: 1px solid #a6a6a6;
}
.navTabs .visitorTabs .navTab.PopupClosed .navLink {
    color: #a6a6a6;
}
.entries .entry {
    background-color: #282828;
}
#commentsTitle {
    background: #1D1D1D;
    border-color: #48525C;
    color: rgb(200, 200, 200);
}
.deleted.placeholder a.avatar,
.deleted.placeholder.alt a.avatar {
    display: none;
}
.deleted.placeholder div.messageInfo.primaryContent div,
.deleted.placeholder.alt div.messageInfo.primaryContent div {
    font-size: 8px;
    padding-left: 5px;
}
.deleted.placeholder div.messageInfo.primaryContent div .privateControls,
.deleted.placeholder.alt div.messageInfo.primaryContent div .privateControls {
    font-size: 7px;
    padding-left: 5px;
}
.pollResult .bar {
    background: #efefef;
}
#FeaturedPostTable th {
    color: #c8c8c8;
}
.bestAnswersList {
    background: #1d1d1d;
    border: 1px solid #48525C;
    border-bottom: none;
    border-top: none;
}
/*Options Section*/

/*Message Colors Settings: Fix Black on Black*/
.messageText span[style^='color: #000000'] {
    color: #c8c8c8 !important;
}

/*Avatar Settings: Do Nothing*/

/*User Text Setting: Keep Them*/

/*Post Count Badge Setting: Keep Them*/

/*Portal Featured Content Bar: Fix it*/
#featured_container {
    text-align: center;
}
.featured_item {
    max-width: 49.6%;
}
#ad_container {
    display: none !important;
}

/*Did you support GBATemp by buying from nds-card?: Yes*/
div[style="text-align: center;"] a[href*="http://www.nds-card.com"]{
    display: none;
}
ol.messageList div[class=""][style=""] {
    display: none;
}
}
@-moz-document url-prefix("https://gbatemp.net/forums/"), url-prefix("http://gbatemp.net/forums/") {
#content > .pageWidth > .pageContent > aside > .sidebar > .section:nth-of-type(3) {
    display: none;
}
}


@-moz-document url-prefix("http://wiki.gbatemp.net/"), url-prefix("https://wiki.gbatemp.net/") {
/*Header Stuff*/
/*Fitting with the GBATemp v5 Theme, I did a bit of creative liberty here and tried to make it match a bit*/
body {
    color: rgb(200, 200, 200);
    background-color: #000000;
}
#branding {
    background: none;
    text-align: left;
    border-bottom: 4px solid #3C6083;
}
#primary_nav {
    display: none;
}
#secondary_nav {
    background: #282828;
    color: rgb(200, 200, 200);
}
#userlinks a:link,
#userlinks a:visited,
#userlinks a:active {
    color: rgb(200, 200, 200);
}

/*Main Wiki Page Stuff*/
/*There may be some stuff I missed, this wiki has a lot of incomprehensible inconsistant crap spattered all over it*/
#bodyContent a:link,
#bodyContent a:visited {
    color: rgb(185, 195, 204)!important;
}
#bodyContent {
    background: #1D1D1D;
}
.catlinks {
    background-color: #282828;
    border: 1px solid black;
}
div.thumbinner {
    background-color: #303030;
}
table.infobox {
    background: #0C0C0C;
}
td.infobox-title,
td.infobox-header {
    background-color: #393945;
}
td.infobox-label {
    background-color: #373750;
}
li.gallerybox div.thumb {
    background-color: #1D1D1D;
}
table tbody tr th[style] {
    background-color: #282828!important;
}
table tbody tr td[style^="background-color:#99f;"],
table tbody tr td[style^="border: 2px solid black; background:#FFF;"],
table tbody tr td[style^="width:65%;vertical-align:top;border: 2px solid black; background:#FFF;"],
table tbody tr td[style^="border: 2px solid black;height:100%; background:#FFF; vertical-align:top;"],
table tbody tr td[style^="vertical-align:top;border: 2px solid black; background:#FFF;"] {
    background-color: #282828!important;
}
table tbody tr td[style^="background-color:#FAFAFF; padding:5px;"] {
    background-color: #404040!important;
}
table[style^="margin: 1em auto 1em auto; border: solid 1px grey; border-left:10px solid dodgerBlue; background: #FFF; width:80%;"],
table[style^="margin: 1em auto 1em auto; border: solid 1px grey; border-left:10px solid orange; background: #FFF; width:80%;"] {
    background: black!important;
}
#bodyContent h1,
#bodyContent h2,
#bodyContent h3,
#bodyContent h4,
#bodyContent h5,
#bodyContent h6 {
    color: rgb(200, 200, 200)!important;
}
.ct-works,
table td.ct-works,
table tr.ct-works td {
    background-color: #004A00!important;
}
.ct-issues,
table td.ct-issues,
table tr.ct-issues td {
    background-color: #9E6600!important;
}
.ct-broken,
table td.ct-broken,
table tr.ct-broken td {
    background-color: #8A2E23!important;
}
.ct-noresult,
table td.ct-noresult {
    background-color: #5D5D5D!important;
}
table.secondarynav td {
    background-color: #253545;
}
table.compatibilitytable td,
table.compattable td {
    background-color: #404040;
    border: 1px #828282 solid;
}
table.compatibilitytable th,
table.compattable th {
    background-color: #282828;
    border: 1px #828282 solid;
}
td.table-unknown[style] {
    background: #000000!important;
    color: rgb(200, 200, 200)!important;
}
.ct-minor,
table td.ct-minor,
table tr.ct-minor td {
    background-color: #253545;
}
table th,
.borderwrap table th,
.subtitle,
.subtitlediv,
.postlinksbar {
    color: rgb(200, 200, 200);
}
table.wikitable > tr > th,
table.wikitable > * > tr > th {
    background-color: #282828;
}
tbody tr td[style^="text-align: center; background: lightblue;"] {
    background-color: #253545!important;
}
table.prettytable > tr > th,
table.prettytable > * > tr > th {
    background-color: #282828;
}
table.prettytable {
    background-color: #505050;
}
table.prettytable > tr > th,
table.prettytable > tr > td table.prettytable > * > tr > th,
table.prettytable > * > tr > td {
    background-color: #1D1D1D;
}
table.prettytable > * > tr:hover > td {
    background: #202020;
}
pre,
.mw-code {
    color: #FFFFFF;
    background-color: #000000;
}
code {
    color: #FFFFFF;
    background-color: #000000;
    border: 1px solid #ddd;
}
table.wikitable {
    background-color: #404040;
    border: 1px #828282 solid;
    color: rgb(200, 200, 200);
}
.navbox-list {
    background: #1D1D1D;
}
th.navbox-title[style] {
    color: rgb(200, 200, 200)!important;
}
div.mainpageheader[style] {
    background: #1D1D1D!important;
}
.navbox-abovebelow,
.navbox-group,
.navbox-subgroup .navbox-title {
    background: #282828;
}
#toc,
.toc,
.mw-warning {
    border: 1px solid #aaa;
    background-color: #1B1B1B;
}
table tbody tr td[style="background:palegreen"] {
    background: #004A00!important;
}
table tbody tr td[style="background:skyblue"] {
    background: #253545!important;
}
table tbody tr td[style="background:salmon"] {
    background: #8A2E23!important;
}

/*Searh Results Page Stuff*/
.mw-search-formheader {
    background-color: #404040;
    border: 1px solid #828282;
}
input#searchText {
    background-color: #404040;
}

/*Sidebar Stuff*/
#main_sidebar .block_top {
    color: #FFFFFF;
    background: #253545;
}
#main_sidebar .block_top .block_topleft {
    background: none;
}
#main_sidebar .block_content {
    background: #1D1D1D;
}
#main_sidebar a:link,
#main_sidebar a:visited,
#main_sidebar a:active {
    color: rgb(200,200,200)
}
#main_sidebar .block_bottom {
    background: #253545;
}

/*Stupid Header/footer boxes on wiki content*/
.wrapper-list {
    background-color: #253545;
}
.wrapper-list li.cat-top-left {
    background: #253545;
    border: 1px solid #3C6083;
    border-bottom: 0px;
    border-right: 0px;
}
.wrapper-list li.cat-main-title {
    background: #253545;
    border-top: 1px solid #3C6083;
}
.wrapper-list li.cat-top-right {
    background: #253545;
    border: 1px solid #3C6083;
    border-bottom: 0px;
    border-left: 0px;  
}
#content_actions {
    background: #303030;
    border: 1px solid #3C6083;
}
.wrapper-list li.cat-bottom-left {
    background: #253545;
    border: 1px solid #3C6083;
    border-right: 0px;
}
.wrapper-list li.cat-bottom-middleleft {
    background: #253545;
    border: 1px solid #3C6083;
    border-left: 0px;
    border-right: 0px;
}
.wrapper-list li.cat-bottom-middle {
    background: #253545;
    border: 1px solid #3C6083;
    border-left: 0px;
    border-right: 0px;
}
.wrapper-list li.cat-bottom-middleright {
    background: #253545;
    border: 1px solid #3C6083;
    border-left: 0px;
    border-right: 0px;
}
.wrapper-list li.cat-bottom-right {
    background: #253545;
    border: 1px solid #3C6083;
    border-left: 0px;
}
}
Should work by injecting THIS:
Code:
// ==UserScript==
// @name          TempStyle Dark Plus
// @namespace     http://userstyles.org
// @description      This is a simple theme to make GBATemp a bit more eye pleasing, especially at night.
// @author        CheatFreak47
// @homepage      https://userstyles.org/styles/77848
// @include       http://gbatemp.net/*
// @include       https://gbatemp.net/*
// @include       https://gbatemp.net/forums/*
// @include       http://gbatemp.net/forums/*
// @include       http://wiki.gbatemp.net/*
// @include       https://wiki.gbatemp.net/*
// @run-at        document-start
// @version       0.20160918121048
// ==/UserScript==
(function() {var css = "";
if (false || (document.location.href.indexOf("http://gbatemp.net/") == 0) || (document.location.href.indexOf("https://gbatemp.net/") == 0))
    css += [
        "/*TempStyle Dark Plus, a customizable stylesheet hosted on userstyles.org*/",
        "/*Style by CheatFreak47*/",
        "#header {",
        "    background-color: rgb(0, 0, 0);",
        "}",
        "html {",
        "    background-color: rgb(0, 0, 0);",
        "}",
        "#content .pageContent {",
        "    background-color: rgb(16, 16, 16);",
        "}",
        ".news_item, .news_expanded {",
        "    background: #1D1D1D;",
        "}",
        ".portal_block .block_content {",
        "    background: #1D1D1D;",
        "}",
        ".sectionMain {",
        "    background-color: #1D1D1D;",
        "    border: 1px solid #6B6B6B;",
        "}",
        ".nodeList .categoryForumNodeInfo, .nodeList .forumNodeInfo, .nodeList .pageNodeInfo, .nodeList .linkNodeInfo {",
        "    background-color: #282828;",
        "    border-bottom: 1px solid #6B6B6B;",
        "}",
        ".sidebar .secondaryContent {",
        "    background: #1D1D1D;",
        "    border-top: 1px solid #6B6B6B;",
        "    border-bottom: 1px solid #6B6B6B;",
        "}",
        "#taigachat_box {",
        "    border: 1px solid #6B6B6B;",
        "    background: #282828;",
        "}",
        "#taigachat_box li {",
        "    background: #282828;",
        "}",
        ".node .nodeLastPost {",
        "    background-color: #1D1D1D;",
        "}",
        ".discussionList .sectionHeaders {",
        "    background-color: #1D1D1D;",
        "}",
        ".discussionListItem {",
        "    background-color: #282828;",
        "    border-bottom: 1px solid #6B6B6B;",
        "}",
        ".discussionListItem .posterAvatar, .discussionListItem .stats {",
        "    background-color: #282828;",
        "}",
        ".messageList .message {",
        "    background-color: #1D1D1D;",
        "    border-top: 1px solid #48525C;",
        "    border-right: 1px solid #48525C;",
        "    border-left: 1px solid #48525C;",
        "}",
        ".messageList .message.alt {",
        "    background-color: #1D1D1D;",
        "    border-top: 1px solid #48525C;",
        "    border-right: 1px solid #48525C;",
        "    border-left: 1px solid #48525C;",
        "}",
        ".conversation_view .messageList .message:nth-child(even) {",
        "    background-color: #1D1D1D;",
        "}",
        ".primaryContent {",
        "    background-color: #1D1D1D;",
        "}",
        ".message .messageInfo {",
        "    background-color: #1D1D1D;",
        "}",
        ".quickReply, #QuickReply {",
        "    background-color: #282828;",
        "}",
        ".message .messageContent {",
        "    background-color: #1D1D1D;",
        "}",
        ".messageUserBlock .extraUserInfo {",
        "    background-color: #1D1D1D;",
        "}",
        ".messageUserBlock h3.userText {",
        "    background-color: #282828;",
        "}",
        ".messageList .message .likesSummary, .messageList .message.alt .likesSummary {",
        "    background-color: #151515;",
        "}",
        ".navTabs {",
        "    color: rgb(150, 150, 150)!important;",
        "    background-color: rgba(50, 50, 50, 0.6)!important;",
        "}",
        ".footer .pageContent {",
        "    background-color: rgb(50, 50, 50);",
        "}",
        ".navTabs .visitorTabs {",
        "    background: #323232!important;",
        "    background-color: rgb(50, 50, 50)!important;",
        "    border-bottom: 1px solid #a6a6a6;",
        "    border-left: 1px solid #a6a6a6;",
        "}",
        ".navTabs .visitorTabs .navTab.PopupClosed .navLink {",
        "    color: #a6a6a6;",
        "}",
        ".entries .entry {",
        "    background-color: #282828;",
        "}",
        "#commentsTitle {",
        "    background: #1D1D1D;",
        "    border-color: #48525C;",
        "    color: rgb(200, 200, 200);",
        "}",
        ".deleted.placeholder a.avatar,",
        ".deleted.placeholder.alt a.avatar {",
        "    display: none;",
        "}",
        ".deleted.placeholder div.messageInfo.primaryContent div,",
        ".deleted.placeholder.alt div.messageInfo.primaryContent div {",
        "    font-size: 8px;",
        "    padding-left: 5px;",
        "}",
        ".deleted.placeholder div.messageInfo.primaryContent div .privateControls,",
        ".deleted.placeholder.alt div.messageInfo.primaryContent div .privateControls {",
        "    font-size: 7px;",
        "    padding-left: 5px;",
        "}",
        ".pollResult .bar {",
        "    background: #efefef;",
        "}",
        "#FeaturedPostTable th {",
        "    color: #c8c8c8;",
        "}",
        ".bestAnswersList {",
        "    background: #1d1d1d;",
        "    border: 1px solid #48525C;",
        "    border-bottom: none;",
        "    border-top: none;",
        "}",
        "/*Options Section*/",
        "",
        "/*Message Colors Settings: Fix Black on Black*/",
        ".messageText span[style^=\'color: #000000\'] {",
        "    color: #c8c8c8 !important;",
        "}",
        "",
        "/*Avatar Settings: Do Nothing*/",
        "",
        "/*User Text Setting: Keep Them*/",
        "",
        "/*Post Count Badge Setting: Keep Them*/",
        "",
        "/*Portal Featured Content Bar: Fix it*/",
        "#featured_container {",
        "    text-align: center;",
        "}",
        ".featured_item {",
        "    max-width: 49.6%;",
        "}",
        "#ad_container {",
        "    display: none !important;",
        "}",
        "",
        "/*Did you support GBATemp by buying from nds-card?: Yes*/",
        "div[style=\"text-align: center;\"] a[href*=\"http://www.nds-card.com\"]{",
        "    display: none;",
        "}",
        "ol.messageList div[class=\"\"][style=\"\"] {",
        "    display: none;",
        "}"
    ].join("\n");
if (false || (document.location.href.indexOf("https://gbatemp.net/forums/") == 0) || (document.location.href.indexOf("http://gbatemp.net/forums/") == 0))
    css += [
        "#content > .pageWidth > .pageContent > aside > .sidebar > .section:nth-of-type(3) {",
        "    display: none;",
        "}"
    ].join("\n");
if (false || (document.location.href.indexOf("http://wiki.gbatemp.net/") == 0) || (document.location.href.indexOf("https://wiki.gbatemp.net/") == 0))
    css += [
        "/*Header Stuff*/",
        "/*Fitting with the GBATemp v5 Theme, I did a bit of creative liberty here and tried to make it match a bit*/",
        "body {",
        "    color: rgb(200, 200, 200);",
        "    background-color: #000000;",
        "}",
        "#branding {",
        "    background: none;",
        "    text-align: left;",
        "    border-bottom: 4px solid #3C6083;",
        "}",
        "#primary_nav {",
        "    display: none;",
        "}",
        "#secondary_nav {",
        "    background: #282828;",
        "    color: rgb(200, 200, 200);",
        "}",
        "#userlinks a:link,",
        "#userlinks a:visited,",
        "#userlinks a:active {",
        "    color: rgb(200, 200, 200);",
        "}",
        "",
        "/*Main Wiki Page Stuff*/",
        "/*There may be some stuff I missed, this wiki has a lot of incomprehensible inconsistant crap spattered all over it*/",
        "#bodyContent a:link,",
        "#bodyContent a:visited {",
        "    color: rgb(185, 195, 204)!important;",
        "}",
        "#bodyContent {",
        "    background: #1D1D1D;",
        "}",
        ".catlinks {",
        "    background-color: #282828;",
        "    border: 1px solid black;",
        "}",
        "div.thumbinner {",
        "    background-color: #303030;",
        "}",
        "table.infobox {",
        "    background: #0C0C0C;",
        "}",
        "td.infobox-title,",
        "td.infobox-header {",
        "    background-color: #393945;",
        "}",
        "td.infobox-label {",
        "    background-color: #373750;",
        "}",
        "li.gallerybox div.thumb {",
        "    background-color: #1D1D1D;",
        "}",
        "table tbody tr th[style] {",
        "    background-color: #282828!important;",
        "}",
        "table tbody tr td[style^=\"background-color:#99f;\"],",
        "table tbody tr td[style^=\"border: 2px solid black; background:#FFF;\"],",
        "table tbody tr td[style^=\"width:65%;vertical-align:top;border: 2px solid black; background:#FFF;\"],",
        "table tbody tr td[style^=\"border: 2px solid black;height:100%; background:#FFF; vertical-align:top;\"],",
        "table tbody tr td[style^=\"vertical-align:top;border: 2px solid black; background:#FFF;\"] {",
        "    background-color: #282828!important;",
        "}",
        "table tbody tr td[style^=\"background-color:#FAFAFF; padding:5px;\"] {",
        "    background-color: #404040!important;",
        "}",
        "table[style^=\"margin: 1em auto 1em auto; border: solid 1px grey; border-left:10px solid dodgerBlue; background: #FFF; width:80%;\"],",
        "table[style^=\"margin: 1em auto 1em auto; border: solid 1px grey; border-left:10px solid orange; background: #FFF; width:80%;\"] {",
        "    background: black!important;",
        "}",
        "#bodyContent h1,",
        "#bodyContent h2,",
        "#bodyContent h3,",
        "#bodyContent h4,",
        "#bodyContent h5,",
        "#bodyContent h6 {",
        "    color: rgb(200, 200, 200)!important;",
        "}",
        ".ct-works,",
        "table td.ct-works,",
        "table tr.ct-works td {",
        "    background-color: #004A00!important;",
        "}",
        ".ct-issues,",
        "table td.ct-issues,",
        "table tr.ct-issues td {",
        "    background-color: #9E6600!important;",
        "}",
        ".ct-broken,",
        "table td.ct-broken,",
        "table tr.ct-broken td {",
        "    background-color: #8A2E23!important;",
        "}",
        ".ct-noresult,",
        "table td.ct-noresult {",
        "    background-color: #5D5D5D!important;",
        "}",
        "table.secondarynav td {",
        "    background-color: #253545;",
        "}",
        "table.compatibilitytable td,",
        "table.compattable td {",
        "    background-color: #404040;",
        "    border: 1px #828282 solid;",
        "}",
        "table.compatibilitytable th,",
        "table.compattable th {",
        "    background-color: #282828;",
        "    border: 1px #828282 solid;",
        "}",
        "td.table-unknown[style] {",
        "    background: #000000!important;",
        "    color: rgb(200, 200, 200)!important;",
        "}",
        ".ct-minor,",
        "table td.ct-minor,",
        "table tr.ct-minor td {",
        "    background-color: #253545;",
        "}",
        "table th,",
        ".borderwrap table th,",
        ".subtitle,",
        ".subtitlediv,",
        ".postlinksbar {",
        "    color: rgb(200, 200, 200);",
        "}",
        "table.wikitable > tr > th,",
        "table.wikitable > * > tr > th {",
        "    background-color: #282828;",
        "}",
        "tbody tr td[style^=\"text-align: center; background: lightblue;\"] {",
        "    background-color: #253545!important;",
        "}",
        "table.prettytable > tr > th,",
        "table.prettytable > * > tr > th {",
        "    background-color: #282828;",
        "}",
        "table.prettytable {",
        "    background-color: #505050;",
        "}",
        "table.prettytable > tr > th,",
        "table.prettytable > tr > td table.prettytable > * > tr > th,",
        "table.prettytable > * > tr > td {",
        "    background-color: #1D1D1D;",
        "}",
        "table.prettytable > * > tr:hover > td {",
        "    background: #202020;",
        "}",
        "pre,",
        ".mw-code {",
        "    color: #FFFFFF;",
        "    background-color: #000000;",
        "}",
        "code {",
        "    color: #FFFFFF;",
        "    background-color: #000000;",
        "    border: 1px solid #ddd;",
        "}",
        "table.wikitable {",
        "    background-color: #404040;",
        "    border: 1px #828282 solid;",
        "    color: rgb(200, 200, 200);",
        "}",
        ".navbox-list {",
        "    background: #1D1D1D;",
        "}",
        "th.navbox-title[style] {",
        "    color: rgb(200, 200, 200)!important;",
        "}",
        "div.mainpageheader[style] {",
        "    background: #1D1D1D!important;",
        "}",
        ".navbox-abovebelow,",
        ".navbox-group,",
        ".navbox-subgroup .navbox-title {",
        "    background: #282828;",
        "}",
        "#toc,",
        ".toc,",
        ".mw-warning {",
        "    border: 1px solid #aaa;",
        "    background-color: #1B1B1B;",
        "}",
        "table tbody tr td[style=\"background:palegreen\"] {",
        "    background: #004A00!important;",
        "}",
        "table tbody tr td[style=\"background:skyblue\"] {",
        "    background: #253545!important;",
        "}",
        "table tbody tr td[style=\"background:salmon\"] {",
        "    background: #8A2E23!important;",
        "}",
        "",
        "/*Searh Results Page Stuff*/",
        ".mw-search-formheader {",
        "    background-color: #404040;",
        "    border: 1px solid #828282;",
        "}",
        "input#searchText {",
        "    background-color: #404040;",
        "}",
        "",
        "/*Sidebar Stuff*/",
        "#main_sidebar .block_top {",
        "    color: #FFFFFF;",
        "    background: #253545;",
        "}",
        "#main_sidebar .block_top .block_topleft {",
        "    background: none;",
        "}",
        "#main_sidebar .block_content {",
        "    background: #1D1D1D;",
        "}",
        "#main_sidebar a:link,",
        "#main_sidebar a:visited,",
        "#main_sidebar a:active {",
        "    color: rgb(200,200,200)",
        "}",
        "#main_sidebar .block_bottom {",
        "    background: #253545;",
        "}",
        "",
        "/*Stupid Header/footer boxes on wiki content*/",
        ".wrapper-list {",
        "    background-color: #253545;",
        "}",
        ".wrapper-list li.cat-top-left {",
        "    background: #253545;",
        "    border: 1px solid #3C6083;",
        "    border-bottom: 0px;",
        "    border-right: 0px;",
        "}",
        ".wrapper-list li.cat-main-title {",
        "    background: #253545;",
        "    border-top: 1px solid #3C6083;",
        "}",
        ".wrapper-list li.cat-top-right {",
        "    background: #253545;",
        "    border: 1px solid #3C6083;",
        "    border-bottom: 0px;",
        "    border-left: 0px;    ",
        "}",
        "#content_actions {",
        "    background: #303030;",
        "    border: 1px solid #3C6083;",
        "}",
        ".wrapper-list li.cat-bottom-left {",
        "    background: #253545;",
        "    border: 1px solid #3C6083;",
        "    border-right: 0px;",
        "}",
        ".wrapper-list li.cat-bottom-middleleft {",
        "    background: #253545;",
        "    border: 1px solid #3C6083;",
        "    border-left: 0px;",
        "    border-right: 0px;",
        "}",
        ".wrapper-list li.cat-bottom-middle {",
        "    background: #253545;",
        "    border: 1px solid #3C6083;",
        "    border-left: 0px;",
        "    border-right: 0px;",
        "}",
        ".wrapper-list li.cat-bottom-middleright {",
        "    background: #253545;",
        "    border: 1px solid #3C6083;",
        "    border-left: 0px;",
        "    border-right: 0px;",
        "}",
        ".wrapper-list li.cat-bottom-right {",
        "    background: #253545;",
        "    border: 1px solid #3C6083;",
        "    border-left: 0px;",
        "}"
    ].join("\n");
if (typeof GM_addStyle != "undefined") {
    GM_addStyle(css);
} else if (typeof PRO_addStyle != "undefined") {
    PRO_addStyle(css);
} else if (typeof addStyle != "undefined") {
    addStyle(css);
} else {
    var node = document.createElement("style");
    node.type = "text/css";
    node.appendChild(document.createTextNode(css));
    var heads = document.getElementsByTagName("head");
    if (heads.length > 0) {
        heads[0].appendChild(node);
    } else {
        // no head yet, stick it whereever
        document.documentElement.appendChild(node);
    }
}
})();
 

Seriel

Doing her best
Member
Joined
Aug 18, 2015
Messages
3,298
Trophies
3
Age
24
Location
UK
XP
5,986
Country
United Kingdom
Should work by injecting THIS:
Code:
// ==UserScript==
// @name          TempStyle Dark Plus
// @namespace     http://userstyles.org
// @description      This is a simple theme to make GBATemp a bit more eye pleasing, especially at night.
// @author        CheatFreak47
// @homepage      https://userstyles.org/styles/77848
// @include       http://gbatemp.net/*
// @include       https://gbatemp.net/*
// @include       https://gbatemp.net/forums/*
// @include       http://gbatemp.net/forums/*
// @include       http://wiki.gbatemp.net/*
// @include       https://wiki.gbatemp.net/*
// @run-at        document-start
// @version       0.20160918121048
// ==/UserScript==
(function() {var css = "";
if (false || (document.location.href.indexOf("http://gbatemp.net/") == 0) || (document.location.href.indexOf("https://gbatemp.net/") == 0))
    css += [
        "/*TempStyle Dark Plus, a customizable stylesheet hosted on userstyles.org*/",
        "/*Style by CheatFreak47*/",
        "#header {",
        "    background-color: rgb(0, 0, 0);",
        "}",
        "html {",
        "    background-color: rgb(0, 0, 0);",
        "}",
        "#content .pageContent {",
        "    background-color: rgb(16, 16, 16);",
        "}",
        ".news_item, .news_expanded {",
        "    background: #1D1D1D;",
        "}",
        ".portal_block .block_content {",
        "    background: #1D1D1D;",
        "}",
        ".sectionMain {",
        "    background-color: #1D1D1D;",
        "    border: 1px solid #6B6B6B;",
        "}",
        ".nodeList .categoryForumNodeInfo, .nodeList .forumNodeInfo, .nodeList .pageNodeInfo, .nodeList .linkNodeInfo {",
        "    background-color: #282828;",
        "    border-bottom: 1px solid #6B6B6B;",
        "}",
        ".sidebar .secondaryContent {",
        "    background: #1D1D1D;",
        "    border-top: 1px solid #6B6B6B;",
        "    border-bottom: 1px solid #6B6B6B;",
        "}",
        "#taigachat_box {",
        "    border: 1px solid #6B6B6B;",
        "    background: #282828;",
        "}",
        "#taigachat_box li {",
        "    background: #282828;",
        "}",
        ".node .nodeLastPost {",
        "    background-color: #1D1D1D;",
        "}",
        ".discussionList .sectionHeaders {",
        "    background-color: #1D1D1D;",
        "}",
        ".discussionListItem {",
        "    background-color: #282828;",
        "    border-bottom: 1px solid #6B6B6B;",
        "}",
        ".discussionListItem .posterAvatar, .discussionListItem .stats {",
        "    background-color: #282828;",
        "}",
        ".messageList .message {",
        "    background-color: #1D1D1D;",
        "    border-top: 1px solid #48525C;",
        "    border-right: 1px solid #48525C;",
        "    border-left: 1px solid #48525C;",
        "}",
        ".messageList .message.alt {",
        "    background-color: #1D1D1D;",
        "    border-top: 1px solid #48525C;",
        "    border-right: 1px solid #48525C;",
        "    border-left: 1px solid #48525C;",
        "}",
        ".conversation_view .messageList .message:nth-child(even) {",
        "    background-color: #1D1D1D;",
        "}",
        ".primaryContent {",
        "    background-color: #1D1D1D;",
        "}",
        ".message .messageInfo {",
        "    background-color: #1D1D1D;",
        "}",
        ".quickReply, #QuickReply {",
        "    background-color: #282828;",
        "}",
        ".message .messageContent {",
        "    background-color: #1D1D1D;",
        "}",
        ".messageUserBlock .extraUserInfo {",
        "    background-color: #1D1D1D;",
        "}",
        ".messageUserBlock h3.userText {",
        "    background-color: #282828;",
        "}",
        ".messageList .message .likesSummary, .messageList .message.alt .likesSummary {",
        "    background-color: #151515;",
        "}",
        ".navTabs {",
        "    color: rgb(150, 150, 150)!important;",
        "    background-color: rgba(50, 50, 50, 0.6)!important;",
        "}",
        ".footer .pageContent {",
        "    background-color: rgb(50, 50, 50);",
        "}",
        ".navTabs .visitorTabs {",
        "    background: #323232!important;",
        "    background-color: rgb(50, 50, 50)!important;",
        "    border-bottom: 1px solid #a6a6a6;",
        "    border-left: 1px solid #a6a6a6;",
        "}",
        ".navTabs .visitorTabs .navTab.PopupClosed .navLink {",
        "    color: #a6a6a6;",
        "}",
        ".entries .entry {",
        "    background-color: #282828;",
        "}",
        "#commentsTitle {",
        "    background: #1D1D1D;",
        "    border-color: #48525C;",
        "    color: rgb(200, 200, 200);",
        "}",
        ".deleted.placeholder a.avatar,",
        ".deleted.placeholder.alt a.avatar {",
        "    display: none;",
        "}",
        ".deleted.placeholder div.messageInfo.primaryContent div,",
        ".deleted.placeholder.alt div.messageInfo.primaryContent div {",
        "    font-size: 8px;",
        "    padding-left: 5px;",
        "}",
        ".deleted.placeholder div.messageInfo.primaryContent div .privateControls,",
        ".deleted.placeholder.alt div.messageInfo.primaryContent div .privateControls {",
        "    font-size: 7px;",
        "    padding-left: 5px;",
        "}",
        ".pollResult .bar {",
        "    background: #efefef;",
        "}",
        "#FeaturedPostTable th {",
        "    color: #c8c8c8;",
        "}",
        ".bestAnswersList {",
        "    background: #1d1d1d;",
        "    border: 1px solid #48525C;",
        "    border-bottom: none;",
        "    border-top: none;",
        "}",
        "/*Options Section*/",
        "",
        "/*Message Colors Settings: Fix Black on Black*/",
        ".messageText span[style^=\'color: #000000\'] {",
        "    color: #c8c8c8 !important;",
        "}",
        "",
        "/*Avatar Settings: Do Nothing*/",
        "",
        "/*User Text Setting: Keep Them*/",
        "",
        "/*Post Count Badge Setting: Keep Them*/",
        "",
        "/*Portal Featured Content Bar: Fix it*/",
        "#featured_container {",
        "    text-align: center;",
        "}",
        ".featured_item {",
        "    max-width: 49.6%;",
        "}",
        "#ad_container {",
        "    display: none !important;",
        "}",
        "",
        "/*Did you support GBATemp by buying from nds-card?: Yes*/",
        "div[style=\"text-align: center;\"] a[href*=\"http://www.nds-card.com\"]{",
        "    display: none;",
        "}",
        "ol.messageList div[class=\"\"][style=\"\"] {",
        "    display: none;",
        "}"
    ].join("\n");
if (false || (document.location.href.indexOf("https://gbatemp.net/forums/") == 0) || (document.location.href.indexOf("http://gbatemp.net/forums/") == 0))
    css += [
        "#content > .pageWidth > .pageContent > aside > .sidebar > .section:nth-of-type(3) {",
        "    display: none;",
        "}"
    ].join("\n");
if (false || (document.location.href.indexOf("http://wiki.gbatemp.net/") == 0) || (document.location.href.indexOf("https://wiki.gbatemp.net/") == 0))
    css += [
        "/*Header Stuff*/",
        "/*Fitting with the GBATemp v5 Theme, I did a bit of creative liberty here and tried to make it match a bit*/",
        "body {",
        "    color: rgb(200, 200, 200);",
        "    background-color: #000000;",
        "}",
        "#branding {",
        "    background: none;",
        "    text-align: left;",
        "    border-bottom: 4px solid #3C6083;",
        "}",
        "#primary_nav {",
        "    display: none;",
        "}",
        "#secondary_nav {",
        "    background: #282828;",
        "    color: rgb(200, 200, 200);",
        "}",
        "#userlinks a:link,",
        "#userlinks a:visited,",
        "#userlinks a:active {",
        "    color: rgb(200, 200, 200);",
        "}",
        "",
        "/*Main Wiki Page Stuff*/",
        "/*There may be some stuff I missed, this wiki has a lot of incomprehensible inconsistant crap spattered all over it*/",
        "#bodyContent a:link,",
        "#bodyContent a:visited {",
        "    color: rgb(185, 195, 204)!important;",
        "}",
        "#bodyContent {",
        "    background: #1D1D1D;",
        "}",
        ".catlinks {",
        "    background-color: #282828;",
        "    border: 1px solid black;",
        "}",
        "div.thumbinner {",
        "    background-color: #303030;",
        "}",
        "table.infobox {",
        "    background: #0C0C0C;",
        "}",
        "td.infobox-title,",
        "td.infobox-header {",
        "    background-color: #393945;",
        "}",
        "td.infobox-label {",
        "    background-color: #373750;",
        "}",
        "li.gallerybox div.thumb {",
        "    background-color: #1D1D1D;",
        "}",
        "table tbody tr th[style] {",
        "    background-color: #282828!important;",
        "}",
        "table tbody tr td[style^=\"background-color:#99f;\"],",
        "table tbody tr td[style^=\"border: 2px solid black; background:#FFF;\"],",
        "table tbody tr td[style^=\"width:65%;vertical-align:top;border: 2px solid black; background:#FFF;\"],",
        "table tbody tr td[style^=\"border: 2px solid black;height:100%; background:#FFF; vertical-align:top;\"],",
        "table tbody tr td[style^=\"vertical-align:top;border: 2px solid black; background:#FFF;\"] {",
        "    background-color: #282828!important;",
        "}",
        "table tbody tr td[style^=\"background-color:#FAFAFF; padding:5px;\"] {",
        "    background-color: #404040!important;",
        "}",
        "table[style^=\"margin: 1em auto 1em auto; border: solid 1px grey; border-left:10px solid dodgerBlue; background: #FFF; width:80%;\"],",
        "table[style^=\"margin: 1em auto 1em auto; border: solid 1px grey; border-left:10px solid orange; background: #FFF; width:80%;\"] {",
        "    background: black!important;",
        "}",
        "#bodyContent h1,",
        "#bodyContent h2,",
        "#bodyContent h3,",
        "#bodyContent h4,",
        "#bodyContent h5,",
        "#bodyContent h6 {",
        "    color: rgb(200, 200, 200)!important;",
        "}",
        ".ct-works,",
        "table td.ct-works,",
        "table tr.ct-works td {",
        "    background-color: #004A00!important;",
        "}",
        ".ct-issues,",
        "table td.ct-issues,",
        "table tr.ct-issues td {",
        "    background-color: #9E6600!important;",
        "}",
        ".ct-broken,",
        "table td.ct-broken,",
        "table tr.ct-broken td {",
        "    background-color: #8A2E23!important;",
        "}",
        ".ct-noresult,",
        "table td.ct-noresult {",
        "    background-color: #5D5D5D!important;",
        "}",
        "table.secondarynav td {",
        "    background-color: #253545;",
        "}",
        "table.compatibilitytable td,",
        "table.compattable td {",
        "    background-color: #404040;",
        "    border: 1px #828282 solid;",
        "}",
        "table.compatibilitytable th,",
        "table.compattable th {",
        "    background-color: #282828;",
        "    border: 1px #828282 solid;",
        "}",
        "td.table-unknown[style] {",
        "    background: #000000!important;",
        "    color: rgb(200, 200, 200)!important;",
        "}",
        ".ct-minor,",
        "table td.ct-minor,",
        "table tr.ct-minor td {",
        "    background-color: #253545;",
        "}",
        "table th,",
        ".borderwrap table th,",
        ".subtitle,",
        ".subtitlediv,",
        ".postlinksbar {",
        "    color: rgb(200, 200, 200);",
        "}",
        "table.wikitable > tr > th,",
        "table.wikitable > * > tr > th {",
        "    background-color: #282828;",
        "}",
        "tbody tr td[style^=\"text-align: center; background: lightblue;\"] {",
        "    background-color: #253545!important;",
        "}",
        "table.prettytable > tr > th,",
        "table.prettytable > * > tr > th {",
        "    background-color: #282828;",
        "}",
        "table.prettytable {",
        "    background-color: #505050;",
        "}",
        "table.prettytable > tr > th,",
        "table.prettytable > tr > td table.prettytable > * > tr > th,",
        "table.prettytable > * > tr > td {",
        "    background-color: #1D1D1D;",
        "}",
        "table.prettytable > * > tr:hover > td {",
        "    background: #202020;",
        "}",
        "pre,",
        ".mw-code {",
        "    color: #FFFFFF;",
        "    background-color: #000000;",
        "}",
        "code {",
        "    color: #FFFFFF;",
        "    background-color: #000000;",
        "    border: 1px solid #ddd;",
        "}",
        "table.wikitable {",
        "    background-color: #404040;",
        "    border: 1px #828282 solid;",
        "    color: rgb(200, 200, 200);",
        "}",
        ".navbox-list {",
        "    background: #1D1D1D;",
        "}",
        "th.navbox-title[style] {",
        "    color: rgb(200, 200, 200)!important;",
        "}",
        "div.mainpageheader[style] {",
        "    background: #1D1D1D!important;",
        "}",
        ".navbox-abovebelow,",
        ".navbox-group,",
        ".navbox-subgroup .navbox-title {",
        "    background: #282828;",
        "}",
        "#toc,",
        ".toc,",
        ".mw-warning {",
        "    border: 1px solid #aaa;",
        "    background-color: #1B1B1B;",
        "}",
        "table tbody tr td[style=\"background:palegreen\"] {",
        "    background: #004A00!important;",
        "}",
        "table tbody tr td[style=\"background:skyblue\"] {",
        "    background: #253545!important;",
        "}",
        "table tbody tr td[style=\"background:salmon\"] {",
        "    background: #8A2E23!important;",
        "}",
        "",
        "/*Searh Results Page Stuff*/",
        ".mw-search-formheader {",
        "    background-color: #404040;",
        "    border: 1px solid #828282;",
        "}",
        "input#searchText {",
        "    background-color: #404040;",
        "}",
        "",
        "/*Sidebar Stuff*/",
        "#main_sidebar .block_top {",
        "    color: #FFFFFF;",
        "    background: #253545;",
        "}",
        "#main_sidebar .block_top .block_topleft {",
        "    background: none;",
        "}",
        "#main_sidebar .block_content {",
        "    background: #1D1D1D;",
        "}",
        "#main_sidebar a:link,",
        "#main_sidebar a:visited,",
        "#main_sidebar a:active {",
        "    color: rgb(200,200,200)",
        "}",
        "#main_sidebar .block_bottom {",
        "    background: #253545;",
        "}",
        "",
        "/*Stupid Header/footer boxes on wiki content*/",
        ".wrapper-list {",
        "    background-color: #253545;",
        "}",
        ".wrapper-list li.cat-top-left {",
        "    background: #253545;",
        "    border: 1px solid #3C6083;",
        "    border-bottom: 0px;",
        "    border-right: 0px;",
        "}",
        ".wrapper-list li.cat-main-title {",
        "    background: #253545;",
        "    border-top: 1px solid #3C6083;",
        "}",
        ".wrapper-list li.cat-top-right {",
        "    background: #253545;",
        "    border: 1px solid #3C6083;",
        "    border-bottom: 0px;",
        "    border-left: 0px;    ",
        "}",
        "#content_actions {",
        "    background: #303030;",
        "    border: 1px solid #3C6083;",
        "}",
        ".wrapper-list li.cat-bottom-left {",
        "    background: #253545;",
        "    border: 1px solid #3C6083;",
        "    border-right: 0px;",
        "}",
        ".wrapper-list li.cat-bottom-middleleft {",
        "    background: #253545;",
        "    border: 1px solid #3C6083;",
        "    border-left: 0px;",
        "    border-right: 0px;",
        "}",
        ".wrapper-list li.cat-bottom-middle {",
        "    background: #253545;",
        "    border: 1px solid #3C6083;",
        "    border-left: 0px;",
        "    border-right: 0px;",
        "}",
        ".wrapper-list li.cat-bottom-middleright {",
        "    background: #253545;",
        "    border: 1px solid #3C6083;",
        "    border-left: 0px;",
        "    border-right: 0px;",
        "}",
        ".wrapper-list li.cat-bottom-right {",
        "    background: #253545;",
        "    border: 1px solid #3C6083;",
        "    border-left: 0px;",
        "}"
    ].join("\n");
if (typeof GM_addStyle != "undefined") {
    GM_addStyle(css);
} else if (typeof PRO_addStyle != "undefined") {
    PRO_addStyle(css);
} else if (typeof addStyle != "undefined") {
    addStyle(css);
} else {
    var node = document.createElement("style");
    node.type = "text/css";
    node.appendChild(document.createTextNode(css));
    var heads = document.getElementsByTagName("head");
    if (heads.length > 0) {
        heads[0].appendChild(node);
    } else {
        // no head yet, stick it whereever
        document.documentElement.appendChild(node);
    }
}
})();
Oh
What's that then?
 

m1guelpf

Active Member
OP
Newcomer
Joined
Dec 21, 2016
Messages
39
Trophies
0
Age
22
Location
Spain
Website
miguelpiedrafita.com
XP
118
Country
Oh
What's that then?
It's the script for using the theme without Stylish and/or Tampermonkey.

-----

To implement the theme, I need theme selector for changing the dark/normal version.
Ideas?

-----

I'm still uploading the push release... my internet is slow... :cry:
 
Last edited by m1guelpf,
  • Like
Reactions: Seriel

m1guelpf

Active Member
OP
Newcomer
Joined
Dec 21, 2016
Messages
39
Trophies
0
Age
22
Location
Spain
Website
miguelpiedrafita.com
XP
118
Country
I don't think so... here's the code of the bar...
Code:
import {Menu, shell, clipboard} from 'electron';

/**
* @param appQuit
* @param zoomIn
* @param zoomOut
* @param goBack
* @param goForward
* @param getCurrentUrl
* @param clearAppData
* @param disableDevTools
*/
function createMenu({appQuit, zoomIn, zoomOut, goBack, goForward, getCurrentUrl, clearAppData, disableDevTools}) {
    if (Menu.getApplicationMenu()) {
        return;
    }

    const template = [
        {
            label: 'Edit',
            submenu: [
                {
                    label: 'Undo',
                    accelerator: 'CmdOrCtrl+Z',
                    role: 'undo'
                },
                {
                    label: 'Redo',
                    accelerator: 'Shift+CmdOrCtrl+Z',
                    role: 'redo'
                },
                {
                    type: 'separator'
                },
                {
                    label: 'Cut',
                    accelerator: 'CmdOrCtrl+X',
                    role: 'cut'
                },
                {
                    label: 'Copy',
                    accelerator: 'CmdOrCtrl+C',
                    role: 'copy'
                },
                {
                    label: 'Copy Current URL',
                    accelerator: 'CmdOrCtrl+L',
                    click: () => {
                        const currentURL = getCurrentUrl();
                        clipboard.writeText(currentURL);
                    }
                },
                {
                    label: 'Paste',
                    accelerator: 'CmdOrCtrl+V',
                    role: 'paste'
                },
                {
                    label: 'Select All',
                    accelerator: 'CmdOrCtrl+A',
                    role: 'selectall'
                },
                {
                    label: 'Clear App Data',
                    click: () => {
                        clearAppData();
                    }
                }
            ]
        },
        {
            label: 'View',
            submenu: [
                {
                    label: 'Back',
                    accelerator: 'CmdOrCtrl+[',
                    click: () => {
                        goBack();
                    }
                },
                {
                    label: 'Forward',
                    accelerator: 'CmdOrCtrl+]',
                    click: () => {
                        goForward();
                    }
                },
                {
                    label: 'Reload',
                    accelerator: 'CmdOrCtrl+R',
                    click: (item, focusedWindow) => {
                        if (focusedWindow) {
                            focusedWindow.reload();
                        }
                    }
                },
                {
                    type: 'separator'
                },
                {
                    label: 'Toggle Full Screen',
                    accelerator: (() => {
                        if (process.platform === 'darwin') {
                            return 'Ctrl+Command+F';
                        }
                        return 'F11';
                    })(),
                    click: (item, focusedWindow) => {
                        if (focusedWindow) {
                            focusedWindow.setFullScreen(!focusedWindow.isFullScreen());
                        }
                    }
                },
                {
                    label: 'Zoom In',
                    accelerator: (() => {
                        if (process.platform === 'darwin') {
                            return 'Command+=';
                        }
                        return 'Ctrl+=';
                    })(),
                    click: () => {
                        zoomIn();
                    }
                },
                {
                    label: 'Zoom Out',
                    accelerator: (() => {
                        if (process.platform === 'darwin') {
                            return 'Command+-';
                        }
                        return 'Ctrl+-';
                    })(),
                    click: () => {
                        zoomOut();
                    }
                },
                {
                    label: 'Toggle Developer Tools',
                    accelerator: (() => {
                        if (process.platform === 'darwin') {
                            return 'Alt+Command+I';
                        }
                        return 'Ctrl+Shift+I';
                    })(),
                    click: (item, focusedWindow) => {
                        if (focusedWindow) {
                            focusedWindow.toggleDevTools();
                        }
                    }
                }
            ]
        },
        {
            label: 'Window',
            role: 'window',
            submenu: [
                {
                    label: 'Minimize',
                    accelerator: 'CmdOrCtrl+M',
                    role: 'minimize'
                },
                {
                    label: 'Close',
                    accelerator: 'CmdOrCtrl+W',
                    role: 'close'
                }
            ]
        },
        {
            label: 'Help',
            role: 'help',
            submenu: [
                {
                    label: 'Report an Issue',
                    click: () => {
                        shell.openExternal('https://github.com/m1guelpf/gbatemp-desktop/issues/new');
                    }
                }
            ]
        }
    ];

    if (disableDevTools) {
        // remove last item (dev tools) from menu > view
        const submenu = template[1].submenu;
        submenu.splice(submenu.length - 1, 1);
    }

    if (process.platform === 'darwin') {
        template.unshift({
            label: 'Electron',
            submenu: [
                {
                    label: 'Services',
                    role: 'services',
                    submenu: []
                },
                {
                    type: 'separator'
                },
                {
                    label: 'Hide App',
                    accelerator: 'Command+H',
                    role: 'hide'
                },
                {
                    label: 'Hide Others',
                    accelerator: 'Command+Shift+H',
                    role: 'hideothers'
                },
                {
                    label: 'Show All',
                    role: 'unhide'
                },
                {
                    type: 'separator'
                },
                {
                    label: 'Quit',
                    accelerator: 'Command+Q',
                    click: () => {
                        appQuit();
                    }
                }
            ]
        });
        template[3].submenu.push(
            {
                type: 'separator'
            },
            {
                label: 'Bring All to Front',
                role: 'front'
            }
        );
    }

    const menu = Menu.buildFromTemplate(template);
    Menu.setApplicationMenu(menu);
}

export default createMenu;
 
D

Deleted User

Guest
Don't listen to the haters, I think this is awesome! Will definitely use this!
there were no haters tho

This looks good, while i'm just fine with chrome it does have some neat features like push notifications. Looks cool.
 

Seriel

Doing her best
Member
Joined
Aug 18, 2015
Messages
3,298
Trophies
3
Age
24
Location
UK
XP
5,986
Country
United Kingdom
I don't think so... here's the code of the bar...
Code:
import {Menu, shell, clipboard} from 'electron';

/**
* @param appQuit
* @param zoomIn
* @param zoomOut
* @param goBack
* @param goForward
* @param getCurrentUrl
* @param clearAppData
* @param disableDevTools
*/
function createMenu({appQuit, zoomIn, zoomOut, goBack, goForward, getCurrentUrl, clearAppData, disableDevTools}) {
    if (Menu.getApplicationMenu()) {
        return;
    }

    const template = [
        {
            label: 'Edit',
            submenu: [
                {
                    label: 'Undo',
                    accelerator: 'CmdOrCtrl+Z',
                    role: 'undo'
                },
                {
                    label: 'Redo',
                    accelerator: 'Shift+CmdOrCtrl+Z',
                    role: 'redo'
                },
                {
                    type: 'separator'
                },
                {
                    label: 'Cut',
                    accelerator: 'CmdOrCtrl+X',
                    role: 'cut'
                },
                {
                    label: 'Copy',
                    accelerator: 'CmdOrCtrl+C',
                    role: 'copy'
                },
                {
                    label: 'Copy Current URL',
                    accelerator: 'CmdOrCtrl+L',
                    click: () => {
                        const currentURL = getCurrentUrl();
                        clipboard.writeText(currentURL);
                    }
                },
                {
                    label: 'Paste',
                    accelerator: 'CmdOrCtrl+V',
                    role: 'paste'
                },
                {
                    label: 'Select All',
                    accelerator: 'CmdOrCtrl+A',
                    role: 'selectall'
                },
                {
                    label: 'Clear App Data',
                    click: () => {
                        clearAppData();
                    }
                }
            ]
        },
        {
            label: 'View',
            submenu: [
                {
                    label: 'Back',
                    accelerator: 'CmdOrCtrl+[',
                    click: () => {
                        goBack();
                    }
                },
                {
                    label: 'Forward',
                    accelerator: 'CmdOrCtrl+]',
                    click: () => {
                        goForward();
                    }
                },
                {
                    label: 'Reload',
                    accelerator: 'CmdOrCtrl+R',
                    click: (item, focusedWindow) => {
                        if (focusedWindow) {
                            focusedWindow.reload();
                        }
                    }
                },
                {
                    type: 'separator'
                },
                {
                    label: 'Toggle Full Screen',
                    accelerator: (() => {
                        if (process.platform === 'darwin') {
                            return 'Ctrl+Command+F';
                        }
                        return 'F11';
                    })(),
                    click: (item, focusedWindow) => {
                        if (focusedWindow) {
                            focusedWindow.setFullScreen(!focusedWindow.isFullScreen());
                        }
                    }
                },
                {
                    label: 'Zoom In',
                    accelerator: (() => {
                        if (process.platform === 'darwin') {
                            return 'Command+=';
                        }
                        return 'Ctrl+=';
                    })(),
                    click: () => {
                        zoomIn();
                    }
                },
                {
                    label: 'Zoom Out',
                    accelerator: (() => {
                        if (process.platform === 'darwin') {
                            return 'Command+-';
                        }
                        return 'Ctrl+-';
                    })(),
                    click: () => {
                        zoomOut();
                    }
                },
                {
                    label: 'Toggle Developer Tools',
                    accelerator: (() => {
                        if (process.platform === 'darwin') {
                            return 'Alt+Command+I';
                        }
                        return 'Ctrl+Shift+I';
                    })(),
                    click: (item, focusedWindow) => {
                        if (focusedWindow) {
                            focusedWindow.toggleDevTools();
                        }
                    }
                }
            ]
        },
        {
            label: 'Window',
            role: 'window',
            submenu: [
                {
                    label: 'Minimize',
                    accelerator: 'CmdOrCtrl+M',
                    role: 'minimize'
                },
                {
                    label: 'Close',
                    accelerator: 'CmdOrCtrl+W',
                    role: 'close'
                }
            ]
        },
        {
            label: 'Help',
            role: 'help',
            submenu: [
                {
                    label: 'Report an Issue',
                    click: () => {
                        shell.openExternal('https://github.com/m1guelpf/gbatemp-desktop/issues/new');
                    }
                }
            ]
        }
    ];

    if (disableDevTools) {
        // remove last item (dev tools) from menu > view
        const submenu = template[1].submenu;
        submenu.splice(submenu.length - 1, 1);
    }

    if (process.platform === 'darwin') {
        template.unshift({
            label: 'Electron',
            submenu: [
                {
                    label: 'Services',
                    role: 'services',
                    submenu: []
                },
                {
                    type: 'separator'
                },
                {
                    label: 'Hide App',
                    accelerator: 'Command+H',
                    role: 'hide'
                },
                {
                    label: 'Hide Others',
                    accelerator: 'Command+Shift+H',
                    role: 'hideothers'
                },
                {
                    label: 'Show All',
                    role: 'unhide'
                },
                {
                    type: 'separator'
                },
                {
                    label: 'Quit',
                    accelerator: 'Command+Q',
                    click: () => {
                        appQuit();
                    }
                }
            ]
        });
        template[3].submenu.push(
            {
                type: 'separator'
            },
            {
                label: 'Bring All to Front',
                role: 'front'
            }
        );
    }

    const menu = Menu.buildFromTemplate(template);
    Menu.setApplicationMenu(menu);
}

export default createMenu;
Well that seems to let you put JS (or whataver language :v) code for the buttons
So the question is, do you have code that lets you toggle the theme code you showed above
 

m1guelpf

Active Member
OP
Newcomer
Joined
Dec 21, 2016
Messages
39
Trophies
0
Age
22
Location
Spain
Website
miguelpiedrafita.com
XP
118
Country
Well that seems to let you put JS (or whataver language :v) code for the buttons
So the question is, do you have code that lets you toggle the theme code you showed above
It's written in node, but I've got an idea to make it work:
If anyone can make a JS script only trigger on a certain keycode (like CTRL+SOMETHING), then I can add that hotkey to the menu
Anyone can help with that?
 

Seriel

Doing her best
Member
Joined
Aug 18, 2015
Messages
3,298
Trophies
3
Age
24
Location
UK
XP
5,986
Country
United Kingdom
Cant you (also) just
Code:
label: 'Reload',
accelerator: 'CmdOrCtrl+R',
click: (item, focusedWindow) => {
    if (focusedWindow) {
        // do the toggle stuff (if this isn't JS, then call JS from Node somehow.
    }
}
Or am I misunderstanding something?

(used reload as an example, heheh)
 

dAVID_

Well-Known Member
Member
Joined
Oct 23, 2016
Messages
1,405
Trophies
1
Location
The Game
XP
2,276
Country
Mexico
Wait, had an issue.

--------------------- MERGED ---------------------------

Don't judge, it's the 3ds camera.
 

Attachments

  • HNI_0077.JPG
    HNI_0077.JPG
    70.5 KB · Views: 123
  • Like
Reactions: m1guelpf

m1guelpf

Active Member
OP
Newcomer
Joined
Dec 21, 2016
Messages
39
Trophies
0
Age
22
Location
Spain
Website
miguelpiedrafita.com
XP
118
Country
Cant you (also) just
Code:
label: 'Reload',
accelerator: 'CmdOrCtrl+R',
click: (item, focusedWindow) => {
    if (focusedWindow) {
        // do the toggle stuff (if this isn't JS, then call JS from Node somehow.
    }
}
Or am I misunderstanding something?

(used reload as an example, heheh)
The problem is that the js file will be injected ALLWAYS. So we need some validation in the script itself:
Something like:
Presskey -> Setcookie.
onLoad -> Checkcookie
ifCookie -> Load theme
else -> exit

-----
Maybe.

--------------------- MERGED ---------------------------

Nah. too lazy.
How will I solve it then?
 
  • Like
Reactions: Seriel

FenexFox

Well-Known Member
Member
Joined
Jul 17, 2017
Messages
116
Trophies
0
Location
Scotland
XP
181
Country
United Kingdom
I like it
this is rather helpful better than keeping a chrome tab constantly open to check notification and closing the wrong tab every now and again by mistake
Nice to keep everything organized
personal opinion

Edit: Nevermind, can't even get it to run it just spits a java error
 
Last edited by FenexFox,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    NinStar @ NinStar: It will actually make it worse