Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tpatel/bookmarklets

Library of bookmarklets
https://github.com/tpatel/bookmarklets

Last synced: about 2 months ago
JSON representation

Library of bookmarklets

Awesome Lists containing this project

README

        

# bookmarklets
Library of bookmarklets

- Mute all the html5 video/audio elements ([source](http://tpatel.github.io/bookmarklets/#function%20volume%28val%29%20{%0A%09[%27audio%27%2C%20%27video%27].forEach%28function%28name%29%20{%0A%09%09var%20items%20%3D%20document.querySelectorAll%28name%29%3B%0A%09%09items%20%3D%20Array.prototype.slice.call%28items%29%3B%0A%09%09items.forEach%28function%28i%29%20{%0A%09%09%09i.volume%20%3D%20val%3B%0A%09%09}%29%3B%0A%09}%29%3B%20%0A}%0Aif%28window.plugin_mute_hangout%29%20{%0A%09window.plugin_mute_hangout%20%3D%20false%3B%0A%09volume%281%29%3B%0A}%20else%20{%0A%09window.plugin_mute_hangout%20%3D%20true%3B%0A%09volume%280.05%29%3B%0A}))
- Pause/Unpause a page to lower the memory consumption of openned tabs ([source](http://tpatel.github.io/bookmarklets/#if%28%2F^about%3Ablank%2F.test%28window.location.href%29%0A%09%09%26%26%20%2F^%23url%3D%2F.test%28window.location.hash%29%29%0A%09window.location%20%3D%20decodeURIComponent%28window.location.hash.substr%285%29%29%3B%0Aelse%0A%09window.location%20%3D%20%27about%3Ablank%23url%3D%27%20%2B%20encodeURIComponent%28window.location%29%3B))
- Extract a list of tasks from iDoneThis ([source](http://tpatel.github.io/bookmarklets/#var%20res%20%3D%20[]%3B%0A%24.each%28%24%28%27.done-text%20.inline-text%27%29%2C%20function%28%29%20{%0A%09var%20self%20%3D%20%24%28this%29.clone%28%29%3B%0A%09console.log%28self.text%28%29.trim%28%29%2F*%2C%20self.find%28%27a[target%3D%22_blank%22]%27%29*%2F%29%3B%0A%09%24.each%28self.find%28%27a[target%3D%22_blank%22]%27%29%2C%20function%28%29%20{%0A%09%09var%20self%20%3D%20%24%28this%29%3B%0A%09%09console.log%28self.text%28%29%2C%20self.attr%28%22href%22%29%29%0A%09%09self.replaceWith%28self.attr%28%22href%22%29%29%3B%0A%09}%29%3B%0A%09var%20done%20%3D%20%27-%20%27%20%2B%20self.text%28%29.trim%28%29%3B%0A%09console.log%28done%29%3B%0A%09res.push%28done%29%3B%0A}%29%3B%0Afunction%20popitup%28url%29%20{%0A%09newwindow%3Dwindow.alert%28url%29%3B%0A}%0Avar%20text%20%3D%20res.join%28%27\n%27%29%3B%0Apopitup%28text%29%3B))