Created
April 4, 2018 18:04
-
-
Save kandrejevs/e53ef59eefe370e5677fd622e347d6b2 to your computer and use it in GitHub Desktop.
delete exs.lv miniblogs
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 New Userscript | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match https://exs.lv/ | |
| // @grant none | |
| // @require http://underscorejs.org/underscore-min.js | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| if (_.size($('.read-more').first()) == 1) { | |
| location.href = $('.read-more').first().attr("href"); | |
| } | |
| else if (_.size($('.delete').first()) == 1) { | |
| location.href = $('.delete').first().attr("href"); | |
| } | |
| else { | |
| location.href = $('#user-menu li a:contains(Miniblogs)').first().attr("href"); | |
| } | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment