summaryrefslogtreecommitdiff
path: root/src/adblock/tests
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-07-30 19:02:15 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-12-10 02:48:04 +0100
commit1949d41ac6fbd92f248a995a25aa4c91aced2ae8 (patch)
tree41ac0217ac4d8d32b15bb30c18ab22ce6730ee89 /src/adblock/tests
parentSession Manager (diff)
downloadrekonq-1949d41ac6fbd92f248a995a25aa4c91aced2ae8.tar.xz
Restored Adblock moving hiding logic to the one used in kwebkitpart
This will let everyone to save time reinventing the wheel and let us remove webpage from adblockmanager code, but just manage it via (Q)NAM.
Diffstat (limited to 'src/adblock/tests')
-rw-r--r--src/adblock/tests/RULES19
-rw-r--r--src/adblock/tests/divhidingtest.html15
2 files changed, 34 insertions, 0 deletions
diff --git a/src/adblock/tests/RULES b/src/adblock/tests/RULES
new file mode 100644
index 00000000..8dfdf8fa
--- /dev/null
+++ b/src/adblock/tests/RULES
@@ -0,0 +1,19 @@
+! cancel ALL your rules in the adblock,
+! load these and test rekonq against
+! the proposed sites
+! Good Luck!
+!
+! This rule will block EVERY site containing adv
+adv
+!
+! This one will wildcard EVERY site containing the word "advice"
+@@advice
+!
+! Block every google site :)
+||http://google*
+!
+! Block every pdf file!
+*pdf||
+!
+! Block every div of the class "advise"
+##div.advise \ No newline at end of file
diff --git a/src/adblock/tests/divhidingtest.html b/src/adblock/tests/divhidingtest.html
new file mode 100644
index 00000000..a38e9ea1
--- /dev/null
+++ b/src/adblock/tests/divhidingtest.html
@@ -0,0 +1,15 @@
+<html>
+
+<head>
+</head>
+
+<body>
+
+<div class="advise">
+<h1>Oh oh.. an advise!!</h1>
+</div>
+<h2>no advises here :)</h2>
+At least, I hope so...
+</body>
+
+</html> \ No newline at end of file