Skip to content

Instantly share code, notes, and snippets.

@nowrep
Created January 21, 2012 18:56
Show Gist options
  • Save nowrep/1653589 to your computer and use it in GitHub Desktop.
Save nowrep/1653589 to your computer and use it in GitHub Desktop.
NoScript
class NoScript : public QObject
{
Q_OBJECT
public:
explicit NoScript(QObject* parent = 0);
bool isEnabled();
void loadSettings();
void saveSettings();
void createWebViewMenu(QMenu* menu, WebView* view);
bool isJavaScriptEnabled(const QUrl &url);
void addWebView(WebView* view);
private slots:
void webViewUrlChanged(const QUrl &url);
private:
bool m_enabled;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment