about_and_feedback_components

个人项目自用关于和问题反馈组件

目前為 2024-12-27 提交的版本,檢視 最新版本

此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.gf.qytechs.cn/scripts/521941/1510294/about_and_feedback_components.js

// ==UserScript==
// @name        about_and_feedback_components
// @namespace   http://tampermonkey.net/
// @license     Apache-2.0
// @version     0.1
// @author      byhgz
// @description 个人项目自用关于和问题反馈组件
// @noframes    
// ==/UserScript==
"use strict";
/**
 *往页面插入关于和反馈组件
 * 传参data用于排除作品集,如当前是aaa,作品集里有aaa,则aaa不会显示在作品集里
 * @param cssSelector {string} css选择器
 * @param excludeWorks {{}} 要排除的作品
 * @param excludeWorks.title {string} 标题
 * @param excludeWorks.url {string} 链接
 * @param excludeWorks.desc {string} 描述exclude works
 *
 */
const installAboutAndFeedbackComponentsVue = (cssSelector, excludeWorks) => {
    return new Vue({
        el: cssSelector,
        template: `
          <div>
            <div v-for="item in feedbacks" :key="item.title">
              {{ item.title }}
              <button gz_type><a :href="item.href" target="_blank">{{ item.href }}</a></button>
            </div>
            <hr>
            <div>
              <h1>作者其他脚本</h1>
              <div v-for="item in otherScriptSets" :key="item.title" :title="item.desc">
                {{ item.title }}
                <button gz_type><a :href="item.url" target="_blank">{{ item.url }}</a></button>
                <span>{{ item.desc }}</span>
              </div>
            </div>
          </div>
        `,
        data() {
            return {
                feedbacks: [
                    {
                        title: "gf反馈",
                        href: "https://gf.qytechs.cn/zh-CN/scripts/507821/feedback",
                    },
                    {
                        title: "q群反馈",
                        href: "http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=tFU0xLt1uO5u5CXI2ktQRLh_XGAHBl7C&authKey=KAf4rICQYjfYUi66WelJAGhYtbJLILVWumOm%2BO9nM5fNaaVuF9Iiw3dJoPsVRUak&noverify=0&group_code=876295632",
                    },
                    {
                        title: "作者B站",
                        href: "https://space.bilibili.com/473239155",
                    }
                ],
                otherScriptSets: [
                    {
                        title: "B站屏蔽增强器",
                        url: "https://gf.qytechs.cn/zh-CN/scripts/461382",
                        desc: "支持动态屏蔽、评论区过滤屏蔽,视频屏蔽(标题、用户、uid等)、蔽根据用户名、uid、视频关键词、言论关键词和视频时长进行屏蔽和精简处理,支持获取b站相关数据并导出为json(用户收藏夹导出,历史记录导出、关注列表导出、粉丝列表导出)(详情看脚本主页描述)"
                    },
                    {
                        title: "去除b站首页右下角推广广告",
                        url: "https://gf.qytechs.cn/zh-CN/scripts/516566",
                        desc: "移除b站首页右下角按钮广告和对应的横幅广告"
                    },
                    {
                        title: "b站首页视频列数调整",
                        url: "https://gf.qytechs.cn/zh-CN/scripts/512973",
                        desc: "修改b站首页视频列表的列数,并移除大图"
                    },
                    {
                        title: "github链接新标签打开",
                        url: "https://gf.qytechs.cn/zh-CN/scripts/489538",
                        desc: "github站内所有的链接都从新的标签页打开,而不从当前页面打开"
                    }
                ]
            }
        },
        created() {
            const findIndex = this.otherScriptSets.findIndex(item => item.title === excludeWorks.title);
            if (findIndex === -1) {
                return
            }
            this.otherScriptSets.splice(findIndex, 1);
        }
    });
};

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址