mirror of
https://github.com/NohamR/BetterYGG.git
synced 2026-01-11 00:48:12 +00:00
[1.0] First commit
This commit is contained in:
9
contentScripts/allPages/accessAllPages.js
Normal file
9
contentScripts/allPages/accessAllPages.js
Normal file
@@ -0,0 +1,9 @@
|
||||
hideSidebar();
|
||||
|
||||
$(window).on('resize', function(){
|
||||
hideSidebar();
|
||||
});
|
||||
|
||||
function hideSidebar() {
|
||||
$(window).width() < 1750 ? $('#cat, .back-cat').removeClass('active') : $('#cat, .back-cat').addClass('active');
|
||||
}
|
||||
7
contentScripts/allPages/allPages.js
Normal file
7
contentScripts/allPages/allPages.js
Normal file
@@ -0,0 +1,7 @@
|
||||
/* Inject scripts don't forget to add them to web_accessible_resources in manifest */
|
||||
injectScript(chrome.extension.getURL('/contentScripts/allPages/accessAllPages.js'), 'head');
|
||||
|
||||
/* disable annoying fuckn popup */
|
||||
popup = document.querySelector('div.ad-alert-wrapper');
|
||||
if(popup && popup.style.display !== "none")
|
||||
document.querySelector('button.ad-alert-message-continue-btn').click()
|
||||
Reference in New Issue
Block a user