Handy browser scripts for chrome and qutebrowser
Looks for a valid doi object in the current selection (PRIMARY) and navigates to the associated url. If the selection is empty, or no valid doi string is found, the text from the current webpage is searched.
The default keybinding is Ctrl+Shift+2
. Alternatively, click on the
extension's icon in the toolbar.
Inserts .ezproxy.institution-domain-name
into the current url and reloads the page.
The default keybinding is Ctrl+Shift+1
. Alternatively, click on the
extension's icon in the toolbar.
The initial value of institution-domain-name
is st-andrews.ac.uk
. To change this, edit
the variable institutionDomain
in background.js
and ezproxy.js
.
Replicates the Ctrl+Click
behaviour of a mouse on links with keyboard hints.
To use this extension, both starthinting
and keephinting
scripts must be placed
in your userscript directory. Then, to start a continuous chain of hints on the current
page use :spawn --userscript starthinting
. Press escape when you want to stop
hinting.
Looks for a valid doi object in the current selection (PRIMARY) and navigates to
the associated url. If the selection is empty, or no valid doi string is found,
the current webpage is searched. A suggested key binding is zd
. This script
is written in python3.
Inserts .ezproxy.institution-domain-name
into the current url and reloads the page.
Suggested key bindings are ze
or ez
. Your institution's domain name should be set in
ezproxy
. This script is written in bash and uses sed
.
Navigate to chrome://extensions
. Switch on developer mode using the slider in the top right hand corner. Click 'Load unpacked' and select the extension-name/chrome
directory (this should be placed somewhere 'safe' i.e. permanent on your filesystem). Key bindings can be adjusted from chrome://extensions/shortcuts
.
Make extension-name/qutebrowser/script-name
executable (chmod +x
) and either
place this file in ~/.local/share/qutebrowser/userscripts
and evoke in
qutebrowser with :spawn --userscript script-name
or simply evoke with an
absolute path e.g. :spawn --userscript /home/user/extensions/extension-name/qutebrowser/script-name
. Key bindings can be set in qutebrowser's config.py
file in the usual way.