Skip to content

Commit

Permalink
[FB] newtab | Add Floorp's ponsored content to newtab
Browse files Browse the repository at this point in the history
  • Loading branch information
surapunoyousei committed Oct 20, 2023
1 parent 78c81c6 commit 80f761b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,5 +178,11 @@
"domains": ["zhihu.com"],
"image_url": "images/[email protected]",
"favicon_url": "favicons/zhihu-com.ico"
},
{
"domains": ["cube-soft.jp"],
"image_url": "../../../../../../../floorp/browser/themes/newtab-icons/cubesoft.png",
"favicon_url": "../../../../../../../floorp/browser/themes/newtab-icons/cubesoft.png",
"floorp": "Floorp Injections"
}
]
8 changes: 7 additions & 1 deletion browser/components/newtab/lib/TopSitesFeed.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,13 @@ class TopSitesFeed {

// Read defaults from remote settings.
this._useRemoteSetting = true;
let remoteSettingData = await this._getRemoteConfig();
let remoteSettingData = [
{
url: "https://www.cube-soft.jp",
order: 120,
title: "CubeSoft",
},
]

const sponsoredBlocklist = JSON.parse(
Services.prefs.getStringPref(TOP_SITES_BLOCKED_SPONSORS_PREF, "[]")
Expand Down

0 comments on commit 80f761b

Please sign in to comment.