add match directive to make the script work with Tampermonkey
This commit is contained in:
parent
8446157493
commit
9615018849
|
@ -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);
|
||||
})();
|
||||
|
|
Loading…
Reference in New Issue