Github 我的代码有什么问题吗

Github 我的代码有什么问题吗,github,Github,我想添加一个按钮,从文件的原始页面转到Github源页面,下面是代码: /==UserScript== //@name从Raw到Github //@namespace从原始到Github //@description添加一个按钮,从原始文件转到Github源页面 //@包括https://raw.githubusercontent.com/* //@version 1 //@grant none //==/UserScript== var rawURL=window.location.href

我想添加一个按钮,从文件的原始页面转到Github源页面,下面是代码:

/==UserScript==
//@name从Raw到Github
//@namespace从原始到Github
//@description添加一个按钮,从原始文件转到Github源页面
//@包括https://raw.githubusercontent.com/*
//@version 1
//@grant none
//==/UserScript==
var rawURL=window.location.href;
var[\uU,repo,path]=rawURL.match(/https?:\/\/raw\.githubusercontent\.com\/([^\/]+\/[^\/]+)\/(.+)\/;
var a=document.createElement(“a”);
a、 href=”https://github.com/“+repo+”/树/“+路径;
var button=document.createElement(“按钮”);
button.innerHTML=“转到Github文件夹”;
a、 追加子项(按钮);
document.body.insertBefore(a,document.body.firstChild)