#48 Small improvment on already altered enhancements

This commit is contained in:
Serraniel 2020-12-28 22:57:43 +01:00
parent b7c647e114
commit ecebbdddda
Signed by: Serraniel
GPG key ID: 3690B4E7364525D3
4 changed files with 4 additions and 4 deletions

View file

@ -8,7 +8,7 @@ const PLAYER_ID = 'player';
export function init(): void {
getGlobalConfiguration().getProperty(SETTINGS_playerAutoplayAfterScreenshot, value => {
if (value) {
core.registerScript(node => {
core.registerScript((node: Node) => {
let element = node as HTMLElement;
if (helper.assigned(element) && element.id === SCREENSHOT_TOOLTIP_ID) {
observeScreenshotTooltip(element);

View file

@ -5,7 +5,7 @@ import * as color from '../utils/colors';
export function init(): void {
getGlobalConfiguration().getProperty(SETTINGS_requestBeautifyPage, value => {
if (value) {
core.registerScript(node => {
core.registerScript((node: Node) => {
// run the scripts
if (node instanceof HTMLElement) {
changeFollowedStarColor(node);

View file

@ -18,7 +18,7 @@ export function init(): void {
}
};
core.registerScript(node => {
core.registerScript((node: Node) => {
if (node instanceof Element) {
disableFunc(node);
}

View file

@ -18,7 +18,7 @@ export function init(): void {
checkRunColorOptimization(document.documentElement);
}, ".*");
core.registerScript(node => {
core.registerScript((node: Node) => {
if (node instanceof Element) {
checkRunColorOptimization(node);
}