CH Anti-LinkBlocker

Fuck CH.

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         CH Anti-LinkBlocker
// @namespace    http://your.homepage/
// @version      0.2
// @description  Fuck CH.
// @author       SwaggMan
// @match        http://www.collegehumor.com/*
// @grant        none
// @require 	 https://code.jquery.com/jquery-2.1.3.min.js
// @require		 https://code.jquery.com/ui/1.11.3/jquery-ui.min.js
// @grant        GM_addStyle
// ==/UserScript==

$("head").append (
    '<link '
  + 'href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.3/themes/smoothness/jquery-ui.min.css" '
  + 'rel="stylesheet" type="text/css">'
);

$("body").append("<div id=\"gmOverlayDialog\"><form><input type=\"text\" name=\"url\" id=\"url\" class=\"text ui-widget-content ui-corner-all\" size=\"38\" /></form></div>");

var images = $(".blankimg");

images.bind("dblclick", function() {
    
    $("#gmOverlayDialog").dialog({
    modal:         false,
    title:         "Image URL",
    minWidth:      400,
    minHeight:     50,
    zIndex:        3666,
    closeOnEscape: true
	})
	.dialog("widget").draggable("option", "containment", "none");
    
    $("#gmOverlayDialog #url").attr("value", images.next().attr("src")).select();
});