Permalink
Browse files

Gray out bug realy fixed

  • Loading branch information...
compvid30 committed Aug 26, 2015
1 parent 3b5fbdd commit 5a0ebd08a61557d4edd3040ba79f48c7f9f3fafe
Showing with 15 additions and 10 deletions.
  1. +7 −6 bg.js
  2. +1 −1 manifest.json
  3. +5 −1 options.html
  4. +2 −2 options.js
View
13 bg.js
@@ -1,10 +1,11 @@
-if (config.get('currVersion') < 10200) {
+
+if (config.get('currVersion') < 10300) {
// Because we introduced lastVersion in 9001
- if (config.get('currVersion') == 10200)
- config.set('lastVersion', 10100);
+ if (config.get('currVersion') == 10300)
+ config.set('lastVersion', 10200);
- config.set('currVersion', 10200);
- config.set('currDisplayVersion', "1.2.0");
+ config.set('currVersion', 10300);
+ config.set('currDisplayVersion', "1.3.0");
}
if (isPasswordGood() !== PASSWORD_STATUS.okay) {
@@ -14,7 +15,7 @@ if (isPasswordGood() !== PASSWORD_STATUS.okay) {
chrome.tabs.onUpdated.addListener(function (tabid, changeinfo, tab) {
if (config.get('showPageActionButton')) {
-
+
chrome.tabs.sendMessage(tab.id, {type: "get sources for top window"}, function (response) {
if (response.globalAllowAll)
chrome.browserAction.setIcon({path: "img/disabled.png", tabId: tab.id});
View
@@ -32,5 +32,5 @@
"default_title": "ScriptBlock - click for more action"
},
"permissions": [ "tabs" ],
- "version": "1.2"
+ "version": "1.3"
}
View
@@ -151,7 +151,7 @@
</div>
<br/>
- <h3>Default Passwordt</h3>
+ <h3>Default Password</h3>
<div style="margin-left: 40px;">In &quot;NotScripts&quot; on witch ScriptBlock is based, many people had problems to
set the password. This was the reason, I decided to set a default password. This lowers the the security a bit,
@@ -349,6 +349,10 @@ <h3>Whitelist</h3>
<div id="tabs-About">
<h3>History:</h3>
+Version 1.3<br>
+
+Grayout bug realy fixed now<br><br>
+
Version 1.2<br>
Interface simplifyed<br>
View
@@ -74,9 +74,9 @@ function save() {
updateListStats();
- bgPage.config.set('reloadCurrentTabOnToggle', $('#radio_ON_ReloadTabs').attr('checked') ? true : false);
+ /*bgPage.config.set('reloadCurrentTabOnToggle', $('#radio_ON_ReloadTabs').attr('checked') ? true : false);
bgPage.config.set('showPageActionButton', $('#radio_ON_ShowActionButton').attr('checked') ? true : false);
- bgPage.config.set('hideHarmfulSearches', $('#radio_ON_HideHarmfulSearches').attr('checked') ? true : false);
+ bgPage.config.set('hideHarmfulSearches', $('#radio_ON_HideHarmfulSearches').attr('checked') ? true : false);*/
}
function handleStorageChangeUpdateLists(event) {

1 comment on commit 5a0ebd0

@sobitthen

This comment has been minimized.

Show comment
Hide comment
@sobitthen

sobitthen May 24, 2016

Is there a discussion on this greyed out icon issue?
thewatchseries.to is able to grey out my icon and run script on my chrome page without being added to my whitelist... Will this code correct this? And only the top section of this script is even inside my extension, the bg.js, the rest are not viewable inside developer tools.
Getting this message :
extensions::uncaught_exception_handler:8 Error in event handler for (unknown): TypeError: Cannot read property 'globalAllowAll' of undefined
at chrome-extension://hcdjknjpbnhdoabbngpmfekaecnpajba/bg.js:20:25handler @ extensions::uncaught_exception_handler:8
5extensions::uncaught_exception_handler:8 Error in event handler for (unknown): TypeError: Cannot read property 'globalAllowAll' of undefined
at chrome-extension://hcdjknjpbnhdoabbngpmfekaecnpajba/bg.js:20:25handler @ extensions::uncaught_exception_handler:8(anonymous function) @ extensions::uncaught_exception_handler:100EventImpl.dispatch_ @ extensions::event_bindings:376EventImpl.dispatch @ extensions::event_bindings:393target.(anonymous function) @ extensions::SafeBuiltins:19publicClass.(anonymous function) @ extensions::utils:94dispatchOnDisconnect @ extensions::messaging:306

sobitthen commented on 5a0ebd0 May 24, 2016

Is there a discussion on this greyed out icon issue?
thewatchseries.to is able to grey out my icon and run script on my chrome page without being added to my whitelist... Will this code correct this? And only the top section of this script is even inside my extension, the bg.js, the rest are not viewable inside developer tools.
Getting this message :
extensions::uncaught_exception_handler:8 Error in event handler for (unknown): TypeError: Cannot read property 'globalAllowAll' of undefined
at chrome-extension://hcdjknjpbnhdoabbngpmfekaecnpajba/bg.js:20:25handler @ extensions::uncaught_exception_handler:8
5extensions::uncaught_exception_handler:8 Error in event handler for (unknown): TypeError: Cannot read property 'globalAllowAll' of undefined
at chrome-extension://hcdjknjpbnhdoabbngpmfekaecnpajba/bg.js:20:25handler @ extensions::uncaught_exception_handler:8(anonymous function) @ extensions::uncaught_exception_handler:100EventImpl.dispatch_ @ extensions::event_bindings:376EventImpl.dispatch @ extensions::event_bindings:393target.(anonymous function) @ extensions::SafeBuiltins:19publicClass.(anonymous function) @ extensions::utils:94dispatchOnDisconnect @ extensions::messaging:306

Please sign in to comment.