Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setInterval(function (){
- if(document.domain == "vk.com") {
- if(document.querySelectorAll("#pv_photo img")[0] == null) {
- } else {
- if(document.getElementById("pv_more_act_download") == null) {
- document.querySelector(".pv_actions_more").dispatchEvent(new MouseEvent('mouseenter'));
- h8pol = "0451";
- } else {
- if(document.querySelectorAll("#pv_photo img")[0].src == document.getElementById("pv_more_act_download").href) {
- if(h8pol == "0451") {
- document.querySelector(".pv_actions_more").dispatchEvent(new MouseEvent('mouseleave'));
- h8pol = "451";
- }
- } else {
- document.querySelectorAll("#pv_photo img")[0].src = document.getElementById("pv_more_act_download").href;
- }
- }
- }
- }
- }, 250);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement