add hypothesis userscript to enable annotation sidebar on any website

This commit is contained in:
Siddhartha Golu 2024-01-15 23:58:37 +05:30
commit 4e4291a894
1 changed files with 15 additions and 0 deletions

15
hypothesis.js Normal file
View File

@ -0,0 +1,15 @@
// ==UserScript==
// @name Hypothesis Web Annotation
// @grant none
// ==/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)
}
)();