Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Messages Remover
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description Power of Will vs some silly russian social network
- // @author Commander asdasd
- // @match https://*/*
- // @match https://*.vk.com/*
- // @match https://www.vk.com/*
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- var pageURLCheckTimer = setInterval(
- function() {
- if (this.lastPathStr !== location.pathname ||
- this.lastQueryStr !== location.search ||
- this.lastPathStr === null ||
- this.lastQueryStr === null
- ) {
- this.lastPathStr = location.pathname;
- this.lastQueryStr = location.search;
- vkMessagesRemover();
- }
- }, 222
- );
- function vkMessagesRemover() {
- var messages_count = document.getElementsByClassName('inl_bl left_count');
- if (messages_count) {
- for (i in messages_count) {
- console.log(messages_count[i].remove());
- }
- }
- }
- // Your code here...
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement