add nationstates css snippet; reformat css
This commit is contained in:
parent
386941e51e
commit
a1f4b0604f
|
@ -1,7 +1,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#define STYLE_N 7275 + 1000
|
||||
#define STYLE_N 7274 + 1000
|
||||
|
||||
void read_style_js(char* string)
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef STYLE
|
||||
#define STYLE
|
||||
|
||||
#define STYLE_N 7275 + 1000
|
||||
#define STYLE_N 7274 + 1000
|
||||
|
||||
void read_style_js(char* string);
|
||||
|
||||
|
|
|
@ -1,10 +1,17 @@
|
|||
// Replicates the Stylus app: <https://addons.mozilla.org/en-GB/firefox/addon/styl-us/>
|
||||
// Inspired by the Stylus app: <https://addons.mozilla.org/en-GB/firefox/addon/styl-us/>
|
||||
|
||||
var styles = null;
|
||||
|
||||
if (document.domain == "forum.effectivealtruism.org") {
|
||||
/*
|
||||
|
||||
.class
|
||||
#id
|
||||
|
||||
*/
|
||||
|
||||
if (document.domain == "forum.effectivealtruism.org") {
|
||||
styles = `
|
||||
/*
|
||||
.Layout-main {
|
||||
margin-left: 100px;
|
||||
}
|
||||
|
@ -19,12 +26,16 @@ if (document.domain == "forum.effectivealtruism.org") {
|
|||
.intercom-lightweight-app{
|
||||
display: none;
|
||||
}
|
||||
`;
|
||||
var styleSheet = document.createElement("style");
|
||||
styleSheet.innerText = styles;
|
||||
document.head.appendChild(styleSheet);
|
||||
console.log("Style changed");
|
||||
*/
|
||||
`;
|
||||
}
|
||||
|
||||
if (document.domain == "nationstates.net") {
|
||||
styles = `
|
||||
.adidentifier {
|
||||
display: none;
|
||||
}
|
||||
`;
|
||||
}
|
||||
|
||||
if (document.domain == "mail.proton.me") {
|
||||
|
@ -152,9 +163,11 @@ if (document.domain == "twitter.com") {
|
|||
document
|
||||
.querySelectorAll('[data-testid="videoPlayer"]')
|
||||
.forEach(function (videoPlayer) {
|
||||
var grandparentElement = videoPlayer.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement;
|
||||
var newTextElement = document.createElement('div');
|
||||
newTextElement.textContent = ' [ twitter video ] ';
|
||||
var grandparentElement =
|
||||
videoPlayer.parentElement.parentElement.parentElement.parentElement
|
||||
.parentElement.parentElement;
|
||||
var newTextElement = document.createElement("div");
|
||||
newTextElement.textContent = " [ twitter video ] ";
|
||||
newTextElement.style["margin-top"] = "10px";
|
||||
newTextElement.style["margin-left"] = "10px";
|
||||
newTextElement.style["margin-bottom"] = "10px";
|
||||
|
|
Loading…
Reference in New Issue
Block a user