mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-06 11:37:02 +03:00
Setup new config.json and fixed typescript errors in the popup
This commit is contained in:
3
config.json
Normal file
3
config.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"serverAddress": "http://localhost"
|
||||
}
|
||||
4
config.json.example.json
Normal file
4
config.json.example.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"serverAddress": "https://sponsor.ajay.app",
|
||||
"serverAddressComment": "This specifies the default SponsorBlock server to conect to":
|
||||
}
|
||||
@@ -2,8 +2,8 @@
|
||||
<head>
|
||||
<title>__MSG_openPopup__</title>
|
||||
<script src="SB.js"></script>
|
||||
<link id="sponorBlockPopupFont" rel="stylesheet" type="text/css" href="/libs/Source+Sans+Pro.css"/>
|
||||
<link id="sponorBlockStyleSheet" rel="stylesheet" type="text/css" href="popup.css"/>
|
||||
<link id="sponsorBlockPopupFont" rel="stylesheet" type="text/css" href="/libs/Source+Sans+Pro.css"/>
|
||||
<link id="sponsorBlockStyleSheet" rel="stylesheet" type="text/css" href="popup.css"/>
|
||||
</head>
|
||||
|
||||
<body class="popupBody">
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
//this file is loaded along iwth content.js
|
||||
//this file sets the server to connect to, and is gitignored
|
||||
var serverAddress = "https://sponsor.ajay.app";
|
||||
@@ -800,8 +800,8 @@ function openInfoMenu() {
|
||||
logo.src = chrome.extension.getURL("icons/LogoSponsorBlocker256px.png");
|
||||
|
||||
//remove the style sheet and font that are not necessary
|
||||
popup.querySelector("#sponorBlockPopupFont").remove();
|
||||
popup.querySelector("#sponorBlockStyleSheet").remove();
|
||||
popup.querySelector("#sponsorBlockPopupFont").remove();
|
||||
popup.querySelector("#sponsorBlockStyleSheet").remove();
|
||||
|
||||
parentNode.insertBefore(popup, parentNode.firstChild);
|
||||
|
||||
|
||||
1150
src/popup.ts
Normal file
1150
src/popup.ts
Normal file
File diff suppressed because it is too large
Load Diff
@@ -4,9 +4,9 @@
|
||||
"target": "es6",
|
||||
"noImplicitAny": false,
|
||||
"sourceMap": false,
|
||||
"rootDir": "src",
|
||||
"outDir": "dist/js",
|
||||
"noEmitOnError": true,
|
||||
"typeRoots": [ "node_modules/@types" ]
|
||||
"typeRoots": [ "node_modules/@types" ],
|
||||
"resolveJsonModule": true
|
||||
}
|
||||
}
|
||||
@@ -7,7 +7,7 @@ module.exports = {
|
||||
entry: {
|
||||
popup: path.join(__dirname, srcDir + 'popup.ts'),
|
||||
background: path.join(__dirname, srcDir + 'background.ts'),
|
||||
content_script: path.join(__dirname, srcDir + 'content_script.ts')
|
||||
content_script: path.join(__dirname, srcDir + 'content.ts')
|
||||
},
|
||||
output: {
|
||||
path: path.join(__dirname, '../dist/js'),
|
||||
|
||||
Reference in New Issue
Block a user