Last active
August 29, 2015 14:01
-
-
Save b0oh/01354c52e2b66ccbf7a8 to your computer and use it in GitHub Desktop.
DuckDuckGo Explicit Userscript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name DuckDuckGo Explicit | |
| // @namespace https://gist.github.com/b0oh/01354c52e2b66ccbf7a8 | |
| // @include https://duckduckgo.com/* | |
| // @version 1 | |
| // @grant none | |
| // ==/UserScript== | |
| $(document).ready(function () { | |
| var results = $('.results'); | |
| var handler = function () { | |
| results.unbind('DOMSubtreeModified'); | |
| results.find('.result__body').each(function () { | |
| var result = $(this).find('a.result__url'); | |
| result.find('.result__url__domain').text(result.attr('href')); | |
| result.find('.result__url__full').text(''); | |
| }); | |
| results.bind('DOMSubtreeModified', handler); | |
| }; | |
| results.bind('DOMSubtreeModified', handler); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment