add match directive to make the script work with Tampermonkey

This commit is contained in:
Siddhartha Golu 2024-01-16 09:33:47 +05:30
parent 8446157493
commit 9615018849
1 changed files with 10 additions and 10 deletions

View File

@ -1,15 +1,15 @@
// ==UserScript==
// @name Hypothesis Web Annotation
// @grant none
// @match *
// ==/UserScript==
(
function(){
window.hypothesisConfig=function(){
return{showHighlights:true,appType:'bookmarklet'};
};
var d=document,s=d.createElement('script');
s.setAttribute('src','https://hypothes.is/embed.js');
d.body.appendChild(s)
}
)();
(function () {
window.hypothesisConfig = function () {
return { showHighlights: true, appType: "bookmarklet" };
};
var d = document,
s = d.createElement("script");
s.setAttribute("src", "https://hypothes.is/embed.js");
d.body.appendChild(s);
})();