Alegion - Fix JLL Property Brochure Link

Turns real estate broker jllproperty.us's 'Property Brochure' links into standard right-clickable links.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Alegion - Fix JLL Property Brochure Link
// @description  Turns real estate broker jllproperty.us's 'Property Brochure' links into standard right-clickable links.
// @version      1.1
// @author       Kerek
// @namespace    Kerek
// @include      http://www.jllproperty.us/*
// @require      http://code.jquery.com/jquery-latest.min.js
// @grant        GM_log
// ==/UserScript==

var link = $('a:contains("Property Brochure")');
var correct_link = link[0].getAttribute('onclick').split('"')[1];
link.eq(0).prop('onclick',null);
link[0].href = correct_link;
link.eq(0).removeAttr('onclick');