runningnews.gr

patrickdrd

New Member
please convert to AG format:
https://github.com/uBlockOrigin/uAssets/issues/4518

Code:
runningnews.gr##+js(abort-current-inline-script.js, document.oncontextmenu)
runningnews.gr##+js(abort-current-inline-script.js, disableselect, reEnable)
runningnews.gr##+js(remove-attr.js, oncontextmenu|onselectstart|ondragstart)
*.gif$image,domain=runningnews.gr
 
Last edited:

patrickdrd

New Member
I've found another problem too:
my rules aren't working properly for runningnews.gr and liveonsat.com and
these are in ublock annoyances too, maybe you should include and convert them in ag annoyances??
 

patrickdrd

New Member
it should be one of these but neither works:

Code:
runningnews.gr#%#AG_defineProperty('oncontextmenu', {value:true}, document); AG_defineProperty('ondragstart', {value:true}, document); AG_defineProperty('onkeydown', {value:true}, document); AG_defineProperty('keypress', {value:true}, document); AG_defineProperty('disableSelection', { get: function() { return;}});

runningnews.gr#%#Object.defineProperty(document, 'oncontextmenu', { get: function() { return; }, set: function() {} }); Object.defineProperty(document, 'ondragstart', { get: function() { return; }, set: function() {} }); Object.defineProperty(window, 'disableSelection', { get: function() { return; }, set: function() {} });
I also have trouble blocking the background image, which I do fine on my laptop,
please help and fix
edit: ok with the background image, it was cached
 
Last edited:

Adam

Filters Developer
Staff member
Moderator
You can try this rule:
Code:
runningnews.gr#%#Object.defineProperty(window, 'disableselect', { get: function() { return; } }); AG_onLoad(function() { Array.from(document.querySelectorAll('[oncontextmenu]')).forEach(function(a){return a.removeAttribute('oncontextmenu')}),Array.from(document.querySelectorAll('[ondragstart]')).forEach(function(a){return a.removeAttribute('ondragstart')}),Array.from(document.querySelectorAll('[onselectstart]')).forEach(function(a){return a.removeAttribute('onselectstart')}),Array.from(document.querySelectorAll('img[onmousedown]')).forEach(function(a){return a.removeAttribute('onmousedown')}); });
 
Top