Skip to content

Commit 7f4edb7

Browse files
added watch/unwatch links
1 parent 0f59148 commit 7f4edb7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

beautipedia.js

+8
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,14 @@ function createMenu() {
195195

196196
}
197197

198+
/* Watch/Unwatch Link */
199+
if (document.getElementById("ca-watch")) {
200+
mlLinksDiv.appendChild(createLink("Watch", document.getElementById("ca-watch").getElementsByTagName("a")[0].getAttribute("href")));
201+
}
202+
else if (document.getElementById("ca-unwatch")) {
203+
mlLinksDiv.appendChild(createLink("Unwatch", document.getElementById("ca-unwatch").getElementsByTagName("a")[0].getAttribute("href")));
204+
}
205+
198206
/* Edit link, switches between an edit link (if the page can be edited) and a view source link(if the page cannot be edited). Both links will never appear on the same page. If neither appear, it's most likely a special page like Preferences.*/
199207
mlLink = document.createElement("a");
200208
if (document.getElementById("ca-edit")) {

0 commit comments

Comments
 (0)