Hypothesis Assistant – Enable Hypothesis on all websites by default

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

  1. go to GreasyFork
  2. 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

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

memex bookmark

Leave your comments here if you have any questions.

5 thoughts on “Hypothesis Assistant – Enable Hypothesis on all websites by default”

  1. 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.

Leave a Reply

Your email address will not be published. Required fields are marked *