runningnews.gr

Discussion in 'Custom Filters' started by patrickdrd, Jan 2, 2019.

  1. patrickdrd

    patrickdrd Member

    Joined:
    Oct 15, 2017
    Messages:
    50
    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: Jan 2, 2019
  2. Alex302

    Alex302 Filters Developer Staff Member Administrator

    Joined:
    Jul 20, 2012
    Messages:
    24,401
  3. patrickdrd

    patrickdrd Member

    Joined:
    Oct 15, 2017
    Messages:
    50
    I've read them the previous time, what is the problem now?
     
  4. patrickdrd

    patrickdrd Member

    Joined:
    Oct 15, 2017
    Messages:
    50
    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??
     
  5. patrickdrd

    patrickdrd Member

    Joined:
    Oct 15, 2017
    Messages:
    50
    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: Jan 7, 2019
  6. patrickdrd

    patrickdrd Member

    Joined:
    Oct 15, 2017
    Messages:
    50
    so is anyone gonna help with this?

    I'm waiting..
     
  7. Boo Berry

    Boo Berry Moderator + Beta Tester Moderator

    Joined:
    May 30, 2012
    Messages:
    3,890
    The devs are currently on vacation, so responses might be slow.
     
  8. patrickdrd

    patrickdrd Member

    Joined:
    Oct 15, 2017
    Messages:
    50
    yes, I know, I've read about that on telegram,
    but Alex302 could help if he wanted to
     
  9. Adam

    Adam Filters Developer Staff Member Moderator

    Joined:
    Aug 17, 2014
    Messages:
    1,427
    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')}); });
     
    patrickdrd likes this.
  10. patrickdrd

    patrickdrd Member

    Joined:
    Oct 15, 2017
    Messages:
    50
    it worked! thanks a ton!