如果不可以,那么,希望版主能帮忙修改一下这些代码(我不会编写JS、CSS)。
我猜,理论上,能通过在IE中加载proxomitron虚拟代理软件,来实现以上这组CSS和JS套件的外挂,进而,让傲游3在极速和兼容两种模式下都支持Flash广告的屏蔽。
实际上该怎么操作,以及实际效果如何我就不清楚了。
所以呼叫版主们来帮忙……
Opera\profile\styles\user\Flashblock.css
Code: Select all
@charset "utf-8";
/*
Name: (4)全局屏蔽Flash动画(要观看时可取消)
Description: Flash and Shockwave Blocker. Used identifiers from flashblock.xpi. Graphic buttons (C)AVol Wert 2007.
Comment: Only for Opera 9+. Use this file together with FlashBlocker.js to play Flash by clicking on image.
*/
/* Flash identifiers */
object[classid$=":D27CDB6E-AE6D-11cf-96B8-444553540000"],
object[codebase*="swflash.cab"],
object[data*=".swf"],
embed[type="application/x-shockwave-flash"],
embed[src*=".swf"],
object[type="application/x-shockwave-flash"],
object[src*=".swf"],
object[codetype="application/x-shockwave-flash"],
iframe[type="application/x-shockwave-flash"],
iframe[src*=".swf"]
{ content: ""; display: inline-block; outline: 1px solid #bbbbbb; min-width: 33px; min-height: 33px; cursor: pointer; background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAnCAYAAABjYToLAAAAAXNSR0IArs4c6QAADVdJREFUWMOtmHtwXNV9x7%2B%2Fc%2B899%2B5DdyWttFqtbEuy7NiWwDayMRRKwtB0ShLSISE0NGko4GmHYmA6DUwbGMK0NBNqPIEpD%2BeFXRooiVPSjiFu8%2BARHrZ52AYDNrawLVvVw9ZK2l3t477O%2BfWPleVnJibD%2FWdn59577uf8vud8f7%2FzI%2FweFzMbABpvvefBzvGpQnupVE4DoOO3XTeZz2SyYw9%2F828OAigRkf6o36CPCNT2%2BZvuvOLAkZErg0j1OI7T0JhMOo6U5slgk6Vi6HmeV6v507GYfbBnXu5%2Fnt3wwK%2BJKP%2BxgjFzR%2F9Vq28vlSuXZFtaMh3ZdMp1Gx3Xda1kXArbFOLk5%2F1I68p0SRcrQTg9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HFSny56vyq6M8m3N7rpH1923d6ZRzB97c%2Fj49dqbb8vmVENy45ObvlH1gkTEHIVhlIgiRZqBVMLxIubIV3idmKY2PHjvlo%2F6jf8HWfFh%2Fjddpv0AAAAASUVORK5CYII%3D") no-repeat center; }
/* Hover */
object[classid$=":D27CDB6E-AE6D-11cf-96B8-444553540000"]:hover,
object[codebase*="swflash.cab"]:hover,
object[data*=".swf"]:hover,
embed[type="application/x-shockwave-flash"]:hover,
embed[src*=".swf"]:hover,
object[type="application/x-shockwave-flash"]:hover,
object[src*=".swf"]:hover,
object[codetype="application/x-shockwave-flash"]:hover,
iframe[type="application/x-shockwave-flash"]:hover,
iframe[src*=".swf"]:hover,
object[classid$=":166B1BCA-3F9C-11CF-8075-444553540000"]:hover,
object[codebase*="sw.cab"]:hover,
object[data*=".dcr"]:hover,
embed[type="application/x-director"]:hover,
embed[src*=".dcr"]:hover,
object[type="application/x-director"]:hover,
object[src*=".dcr"]:hover,
object[classid$=":15B782AF-55D8-11D1-B477-006097098764"]:hover,
object[codebase*="awswaxf.cab"]:hover,
object[data*=".aam"]:hover,
embed[type="application/x-authorware-map"]:hover,
embed[src*=".aam"]:hover,
object[type="application/x-authorware-map"]:hover,
object[src*=".aam"]:hover,
object[classid*="32C73088-76AE-40F7-AC40-81F62CB2C1DA"]:hover,
object[type="application/ag-plugin"]:hover,
object[type="application/x-silverlight"]:hover,
object[type="application/x-silverlight-2"]:hover,
object[source*=".xaml"]:hover,
object[sourceelement*="xaml"]:hover,
embed[type="application/ag-plugin"]:hover,
embed[source*=".xaml"]:hover
{ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAnCAYAAABjYToLAAAAAXNSR0IArs4c6QAAC5RJREFUWMOtmHuMXNV9xz%2FncR%2Fz8Ozsrnd2vLu2d7GN7TXYDjEuDxk5URoID1WIOqJqS6XSkoCpilSoVCjpI%2F8BSVsRAmkVSxFFqighaaCQAgLXEFxKMNRuwTi24xf2Gq%2B9z9l53H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FNq%2FOr06nxnD219%2B7vjadeuOHxubvL5cKmOMJbYhoTUzNYbKbJDSCq00o5M15peLbNp4GeVSG%2BVSYc5Qtckmo7WEPYeO8OwLr9DXHn3te9%2F%2Bm5dm3SIQkWjjps1%2Fv2Rx%2F9fXrBlkoLeXhdV5RIHBBJbA6AxMZdY6TT1JKyVpOfJxNOf0jTVTalMNDhwb4of%2F%2Fgojw4ef2v6TH9x8znWlUqopIn%2B%2BcdMdGsVtohVKVemptFEIAlDZYEid4L1DJFvc2lDR9K3pnk6fSuHFI2dNhk1SGmlyNtQtZ0LN6i6UUhMicvfGTXfQdHJbWm8gXEBvRTDFPFMuS6tREChNEFi8FxKf4r1kEjOjc6Bshusl83OjEyk7dv2C5158hdrkydNQ9U%2Bz2zPvht%2B%2F82suKD%2B4dtUyLlrRz8r%2BPrrnt5N6QU9bbCUeIbuXzNBjjUYbjdKaJHUorWk0U97bf5Rt%2F%2F02b%2Fz8bdpz3PPM4995ZDaoueyPmc1333%2FF%2Fg%2BntrWXO1m6ZBEXX7iEZf0VCrk8cRBgdLZjlzo3HUmFtQalDanPTOCuvYd5%2Fa2dvPnO%2B4yPHWPNQM9Vjzz0zdc%2B0%2F7Y2dH7va%2Fffc3JKXkyX2qjp9LF%2BouX0z2%2Fk2pXiXmFHKkXWokndY7hUxN8ODLK8Kkx9uw%2FyL4DH9Coj9DTlvvqPz%2F20E%2BVUhO%2F7j3YeZvvvn%2Ft2GR921grezTMzyMXxkQm%2B950Qr3VoDU1Qb3haItSqp1tVz3y0DffmQvQZwI7fby07b%2FCznKp%2BNiWx%2F9iqt4qJCJpkqSFNHXKC5QLcSMRSZuON5Sokae3fOu5T%2FuO%2FwfDLV6TJbBOWAAAAABJRU5ErkJggg%3D%3D"); }
Code: Select all
// ==UserScript==
// @name Flash blocker
// @author Lex1
// @version 1.6.9
// @description Unblocks Flash and loads flashblocker images in "Cached images" mode. Works together with FlashBlocker.css.
// @ujs:documentation http://ruzanow.ru/index/0-5
// @ujs:download http://ruzanow.ru/userjs/FlashBlocker.js
// ==/UserScript==
(function(){
var unblock = function(s){s.content = 'normal'; s.outline = 'none'; s.backgroundImage = 'none'; s.minWidth = 0; s.minHeight = 0};
var isBlocked = function(ele){
var tag = (ele && ele.tagName) ? ele.tagName.toLowerCase() : '';
return (tag == 'embed' || tag == 'object' || tag == 'iframe') && (ele.currentStyle.content || getComputedStyle(ele, null).content) == '""';
};
var getSrc = function(ele){
var src = ele.getAttribute('src') || ele.getAttribute('source') || ele.getAttribute('data');
if(!src){
var params = ele.getElementsByTagName('param');
for(var i = 0, p; p = params; i++){
if(p.hasAttribute('name') && p.getAttribute('name').match(/^(movie|data|src|code|filename|url|source)$/i)){
src = p.getAttribute('value'); break;
}
}
}
return src;
};
document.addEventListener('click', function(e){
var et = e.target;
if(isBlocked(et)){
e.preventDefault(); unblock(et.style); var em = et.getElementsByTagName('embed')[0]; if(isBlocked(em))unblock(em.style);
}
}, true)
document.addEventListener('mouseover', function(e){
var et = e.target;
if(!et.title && isBlocked(et)){
var src = getSrc(et); if(src){var a = document.createElement('a'); a.href = src; et.setAttribute('title', a.href)}
}
}, false)
})();
/*
document.addEventListener('load', function(){
var embed = document.getElementsByTagName('embed');
var obj = document.getElementsByTagName('object');
var isShowImagesMode = function(){
var imgs = document.images;
var l = imgs && imgs.length;
return l && imgs[0].complete && imgs[l-1].complete;
};
if((embed.length == 0 && obj.length == 0) || isShowImagesMode())return;
var reloadImage = function(s){
var f = document.createElement('iframe');
f.src = s;
f.width = 0;
f.height = 0;
f.frameBorder = 'no';
f.scrolling = 'no';
f.onload = function(){
this.parentNode.removeChild(this);
};
document.documentElement.appendChild(f);
};
var reloadBackImg = function(e){
for(var i = 0, ele; ele = e; i++){
var img = ele.currentStyle.backgroundImage || getComputedStyle(ele, null).backgroundImage;
if(img.indexOf('url("data:image/png;base64,') == 0){
reloadImage(img.replace(/^url\(\x22|\x22\)$/gi, ''));
return true;
}
}
};
if(!reloadBackImg(embed))reloadBackImg(obj);
}, false)
*/
Code: Select all
// ==UserScript==
// @name Flash Blocker white list.
// @author Lex1
// @mender
// @version
// @namespace http://bbs.operachina.com/viewtopic.php?f=41&t=30093&start=40
// @description White list for Flash Blocker.
// @include http://imgcache.qq.com/*
// @include http://qzone.qq.com/*
// @include http://*.qzone.qq.com/*
// @include http://blog.qq.com/qzone/*
// @include http://music.sina.com.cn/yueku/m/*
// @include http://js.tudouui.com/bin/player_online/TudouVideoPlayer*
// @include http://www.tudou.com/playlist/playindex.do*
// @include http://www.tudou.com/programs/*
// @include http://hd.tudou.com/program/*
// @include http://v.youku.com/v_show/*
// @include http://*youtube.com/*
// @include http://video.google.com/*
// @include http://mail.google.com/*
// @include http://*megaupload.com/*
// @include http://*blizzard.com/*
// ==/UserScript==
document.addEventListener('load', function(){
navigator.ujs_FlashBlockerWhiteList = true;
setTimeout(function(){
var isBlocked = function(ele){return (ele.currentStyle.content || getComputedStyle(ele, null).content) == '""'};
var unblock = function(s){s.content = 'normal'; s.outline = 'none'; s.backgroundImage = 'none'; s.minWidth = 0; s.minHeight = 0};
var i, e, obj;
obj = document.getElementsByTagName('object');
for(i = 0; e = obj; i++){if(isBlocked(e))unblock(e.style)};
obj = document.getElementsByTagName('embed');
for(i = 0; e = obj; i++){if(isBlocked(e))unblock(e.style)};
obj = document.getElementsByTagName('iframe');
for(i = 0; e = obj; i++){if(e.getAttribute('type') == 'application/x-shockwave-flash' && isBlocked(e))unblock(e.style)};
}, 300);
}, false)