Skip to content

Commit

Permalink
Fix steal FA
Browse files Browse the repository at this point in the history
  • Loading branch information
joelthorner committed Nov 5, 2018
1 parent 22f14d8 commit 0cb0117
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/inject/steal-font-awesome.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ chrome.storage.sync.get(['optDevStealFa'], function(result) {
return str.replace(new RegExp(escapeRegExp(find), 'g'), replace);
}

var ready = $('.showNavStyles');
var ready = $('[data-balloon*="size"]');

var si = setInterval(function() {
ready = $('.showNavStyles');
ready = $('[data-balloon*="size"]');

if (ready.length) {
clearInterval(si);
Expand Down Expand Up @@ -92,8 +92,8 @@ chrome.storage.sync.get(['optDevStealFa'], function(result) {
</div>
`);

var $svgP = $('.showNavStyles').find('span[data-balloon="size: 2x"] > svg[data-icon]').parent();
var name = $.trim($('.showNavStyles h1').text());
var $svgP = $('[data-balloon="size: 2x"] > svg[data-icon]').parent();
var name = $.trim($('h1 [data-balloon]').text());

var out_svg = $svgP.html();
out_svg = out_svg.replace(new RegExp('data-prefix="[a-z]{3}"\\s', "g"), '');
Expand Down

0 comments on commit 0cb0117

Please sign in to comment.