W
W
WebEditor2014-08-19 17:57:43
PHP
WebEditor, 2014-08-19 17:57:43

Greasemonkey and vk.com (why not working) ?

// ==UserScript==
// @name           vk
// @namespace      http://vkontakte.ru
// @description    1
// @grant       none
// @include        http://vkontakte.ru/*
// @include        http://vk.com/*
// @require        http://code.jquery.com/jquery-1.11.0.min.js
// ==/UserScript==
$(function(){
  alert("Hello");
})

the only thing that the code should do is to show the message "Hello" when opening the vk.com/* page, but for some reason this does not happen ... Tell me
, what's the matter?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
WebEditor, 2014-08-19
@WebEditor

I don't know what's wrong, restarted the browser, the code worked...

A
Andrey Burov, 2014-08-19
@BuriK666

jQuery(function(){ 
  alert('123'); 
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question