Remove feedback entries for greasyfork (#3277)

This commit is contained in:
the1812 2022-04-30 10:21:57 +08:00
parent 4d94a97be5
commit ed48c93d19
3 changed files with 13 additions and 11 deletions

View File

@ -61,14 +61,6 @@
"vue": "^2.6.11",
"vue-fragment": "^1.5.2"
},
"repository": {
"type": "git",
"url": "git+https://github.com/the1812/Bilibili-Evolved.git"
},
"bugs": {
"url": "https://github.com/the1812/Bilibili-Evolved/issues"
},
"homepage": "https://github.com/the1812/Bilibili-Evolved#readme",
"keywords": [
"userscript",
"bilibili",

View File

@ -16,8 +16,6 @@
"*://open-live.bilibili.com/*"
],
"run-at": "document-start",
"supportURL": "https://github.com/the1812/Bilibili-Evolved/issues",
"homepage": "https://github.com/the1812/Bilibili-Evolved",
"grant": [
"unsafeWindow",
"GM_getValue",

View File

@ -21,7 +21,7 @@
Commit Hash: {{ meta.compilationInfo.commitHash.substring(0, 8) }}
</div> -->
</div>
<div class="script-links">
<div v-if="feedbackSupported" class="script-links">
<a target="_blank" href="https://github.com/the1812/Bilibili-Evolved" class="homepage script-link">
<VButton>
<VIcon icon="mdi-home-outline" :size="20" />
@ -72,6 +72,17 @@ import {
} from '@/ui'
import { AboutPageAction, aboutPageActions } from './about-page'
const feedbackSupported = (() => {
const namespace = GM_info.scriptMetaStr.match(/@namespace\s*(.+)/)
if (!namespace || !namespace[1]) {
return true
}
if (namespace[1].includes('greasyfork')) {
return false
}
return true
})()
export default Vue.extend({
components: {
VButton,
@ -81,6 +92,7 @@ export default Vue.extend({
return {
meta,
aboutPageActions,
feedbackSupported,
}
},
methods: {