mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Remove feedback entries for greasyfork (#3277)
This commit is contained in:
parent
4d94a97be5
commit
ed48c93d19
@ -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",
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user