let badge = document.querySelector(".ProfileIndicatorBadge__badgeLastSeen");
const pe = new MouseEvent ('pointerenter', {
view: window,
bubbles: true,
cancelable: true
});
badge.dispatchEvent(pe);
function() {
'use strict';
setTimeout(function(){
let badge = document.querySelector(".ProfileIndicatorBadge__badgeLastSeen");
let mo = new Event ("mouseover");
badge.dispatchEvent(mo);
},10000)
};
<title>Иван Иванов</title>
, а второе - null(function() {(function(context, fapply, console) {with (context) {(function(module) {"use strict";try {
fapply(module, context, [,,context.CDATA,context.uneval,context.define,context.module,context.exports,context.GM,context.GM_info]);} catch (e) {if (e.message && e.stack) {console.error("ERROR: Execution of script 'funcProfileName' failed! " + e.message);console.log(e.stack.replace(/(\\(eval at )?<anonymous>[: ]?)|([\s.]*at Object.tms_[\s\S.]*)/g, ""));} else {console.error(e);}}
})(function (context,fapply,CDATA,uneval,define,module,exports,GM,GM_info) {
// ==UserScript==
// @name funcProfileName
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author vk.com/author
// @match *vk.com/*
// @grant none
// ==/UserScript==
(function () {
'use strict';
var target = document.querySelector('title');
console.log(target + "QWERT");
})();
})}})(this.context, this.fapply, this.console);
}).apply(window["__u__8935344.244936315_"])
(function () {
var content = document.getElementById('content');
var profileName = document.createElement('span');
profileName.className = 'Profile_Name';
var observer, callback;
callback = function(mutations){
profileName.textContent = mutations.characterData;
}
observer = new MutationObserver( callback );
var options = {
'characterData': true}
var target = document.querySelector('title');
observer.observe (target, options);
if (document.getElementById('profile')) {
content.insertBefore(profileName, content.firstChild);
}
})();