Hypothes.is is a really great tool to help to annotate almost all content on internet, however, it does not support firefox that well. The firefox addon is under development for ages.
The alternative way to use it is though bookmarklet, which is simple enough, but you have to click the bookmarklet everytime when you open a web page. It is annoying and not efficient.
(
function(){
window.hypothesisConfig=function(){
return{showHighlights:true,appType:'bookmarklet'};
};
var d=document;
var s=d.createElement('script');
s.setAttribute('src','https://hypothes.is/embed.js');
d.body.appendChild(s);
}
)();
The codes above are the source codes for the plugin, in the plugin codes, there are also a black list to exclude the websites, such as WordPress admin dashboard, local websites, google search results and youtube.
// @exclude https://www.google.com/search*
// @exclude https://*.youtube.com/*
// @exclude moz-extension://*
// @exclude http://localhost*
// @exclude http://127.0.0.1*
// @exclude http://192.168.*
// @exclude http://*.*/wp-admin/*
// @exclude https://*.*/wp-admin/*
Howto
- go to GreasyFork
- search Hypothesis Assitant
or simply open this url Greasy Fork Hypothesis Assitant and install it for GreasyMonkey (or other scripts manager)
- https://github.com/diegodlh/unofficial-hypothesis-extension the official firefox extension was released.
Alternative
Memex Bookmarking
Memex Bookmarking add-on is a hypothesis alternative, it is a browser add-on with free and pro plan for users.
References
Greasy Fork Hypothesis Assitant Source Code
Hypothesis web annotation in Firefox Hypothesis wordpress
Leave your comments here if you have any questions.
Feel free to leave comments here if you have any questions.
from https://tim.bai.uno
Thankyou for the script. I have one question. Can I configure this script to activate/deactivate via keyboard shortcut. I am using your script under violentmonekey.
I hope you received the update, there is one unofficial plugin which does much better job than my script.
https://github.com/diegodlh/unofficial-hypothesis-extension
thanks for your feedback, a really good feature request.
I will plan to add this feature in next release.
https://github.com/diegodlh/unofficial-hypothesis-extension
recommended