Skip to content

Instantly share code, notes, and snippets.

@kandrejevs
Created April 4, 2018 18:04
Show Gist options
  • Select an option

  • Save kandrejevs/e53ef59eefe370e5677fd622e347d6b2 to your computer and use it in GitHub Desktop.

Select an option

Save kandrejevs/e53ef59eefe370e5677fd622e347d6b2 to your computer and use it in GitHub Desktop.
delete exs.lv miniblogs
// ==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