Commits
Thomas Tornevall authored 06a0febf0d5M
Merge pull request #9 in WWW/network-tools from develop/3.0.0 to master * commit 'd823109534bfb7cd0e4f4d4528091c13b03cf465': NT-105: Restored the initial / in the urls as they have to be decoded first. NT-105: Added more rightWing sites to expand the hit ratio during tests. NT-105: Added support for custom actions and descriptions. NT-105: Expanding rulesets and configuration data passed between methods (findingWords object). NT-105: Added getToolsToArray to make some objects become nicer arrays. NT-105: Added setSiteDetectionAction to make major methods smaller and to decide which action that should be used. NT-105: Added getContentSiteValue to fetch data from categoryData-blocks. NT-105: Adapted getRulesDefaults to include more custom data. NT-105: Scripts will add custom class to objects that has been handled. For this case, we may be able to hide data without removing it (for restoring them). NT-105: Removed content handlers from major methods and gave them their own - setContentReplace(), setContentAttachment(). NT-105: Added getToolsRenderedHtmlReport() to create a flagged-element-renderer. NT-105: Added getToolsParentElement() to make a method that autoloops back to correct parent nodes. NT-105: getToolsVerifyElement() is used to verify multiple of our own classes with help from getToolsElementMarker. NT-105: getRulesDefaults renderer updated. NT-105: CSS patches. More scripts that should not be there. Symlink mistakenly still there. NT-105: Moved mockdata into background scripts. Not because we need it, its more like a precaution fix. NT-105: Renamed config.js to tools-config.js and pushed the rawdata js-files into proper paths. NT-105: css modifications. NT-105: Deprecation: netToolsApiContentMockDeprecated NT-105: Upgrade: netToolsApiContentMock and netToolsApiElementRulesMock NT-105: Automatically prepare an export object (stringified data from the above mockobjects) in the config. NT-105: enableMock flag (should be activated from config). NT-105: Moved old scanner/analyzer into split methods, to make it easier to scan in categories. NT-105: Added method to get default rulesets from JSON. NT-105: Added extra options in configuration. * Speeding up detected matches in the scanning loop (breakOnFirstMatch). * Use mock instead of API - the only available option right now (apiMock). Updated top content in minified scripts NT-105: Added netToolsApiElementRulesMock (the purpose of this task) with rulesets for sites and class elements. NT-105: Replaced old bootstrap labels with new from v4.4. NT-105: Refreshed "removed element text" use labels. NT-105: Added internal template for bootstrap to .gitignore - it should not be included in the package as it may conflict with live elements on websites. NT-105: Added more sample words to test with in the badwords block. NT-105: Renamed badwords block to netToolsApiContentMock. In current state we only mock what should be reachable via API later on. NT-105: Added protection layer for old element testings.
Showing diff to666dbb9cc3b