Skip to content

Commit

Permalink
Remove feedback entries for greasyfork (the1812#3277)
Browse files Browse the repository at this point in the history
  • Loading branch information
the1812 committed Apr 30, 2022
1 parent 4d94a97 commit ed48c93
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
8 changes: 0 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions src/client/common.meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
14 changes: 13 additions & 1 deletion src/components/settings-panel/sub-pages/AboutPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
Expand Down Expand Up @@ -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,
Expand All @@ -81,6 +92,7 @@ export default Vue.extend({
return {
meta,
aboutPageActions,
feedbackSupported,
}
},
methods: {
Expand Down

0 comments on commit ed48c93

Please sign in to comment.