Skip to content

Commit

Permalink
add fix: uBlock Origin prevents links with a target attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSDavidSoft committed Jan 7, 2022
1 parent 48dd626 commit 190b464
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions soft98_ad-unblocker.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// @name Soft98 Disable Ad-unblocker
// @namespace DRS David Soft <David@Refoua.me>
// @author David Refoua
// @version 0.14b
// @version 0.15b
// @description Removes Soft98.ir's annoying message to disable ad-blocker, and restores links.
// @run-at: document-start
// @updateURL https://raw.githubusercontent.com/DRSDavidSoft/user-scripts/master/soft98_ad-unblocker.user.js
Expand All @@ -18,7 +18,7 @@ var sentinel = function(){var e,n,t,i=Array.isArray,r={},o={};return{on:function
/**
*
* Enjoy your ad-blocked Soft98 experience.
* Coded by: David@Refoua.me – Version BETA14
* Coded by: David@Refoua.me – Version BETA15
*
*/

Expand Down Expand Up @@ -435,6 +435,9 @@ var sentinel = function(){var e,n,t,i=Array.isArray,r={},o={};return{on:function
if ( typeof $ == 'function' ) $(fixedLink).off('click');

console.warn("%c▶ Restored original link!", css, {title: fixedLink.innerHTML.trim(), link: origLocation});

if ( fixedLink.hasAttribute('target') )
fixedLink.removeAttribute('target'); // fix for uBlock Origin disabling links

}

Expand Down

0 comments on commit 190b464

Please sign in to comment.