vk.com_del_redir

Deletes VK.com url redirects

Tính đến 02-02-2020. Xem phiên bản mới nhất.

// ==UserScript==
// @name         vk.com_del_redir
// @namespace    https://greasyfork.dpdns.org/
// @version      1.0
// @description  Deletes VK.com url redirects
// @author       AndShy
// @match        http://vk.com/*
// @match        https://vk.com/*
// @license      GPL-3.0
// @homepageURL  https://greasyfork.dpdns.org/en/users/384289-andshy
// @run-at       document-end
// @grant        none
// ==/UserScript==

(function() {
  'use strict';

    document.onmouseover = handler;

    function handler(event) {
      var evt = event.target
      if (evt) {
        //console.log(evt.tagName)
        if (evt.tagName.includes('A')) {
          //console.log(evt.href)
          if (evt.href){
            //console.log(decodeURIComponent(evt.href))
            var link = decodeURIComponent(evt.href)
            evt.href = link.replace(/^(?:http.?.*\?to\=)(.*?)(?:\&.*)?$/,'$1')
          }
        }
      }
    }

})();
长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元