Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // All your GM code must be inside this function
- function letsJQuery() {
- //Initial Injection of Control Pannel
- var DOMDisplay = document.createElement("div");
- DOMDisplay.className = "display";
- DOMDisplay.innerHTML =
- "<h2>Subscriptions</h2> " + "\n" +
- "<ul class='center'> " + "\n" +
- " <li> " + "\n" +
- " <a href='/tags/?tag_name=&type=1&show_aliases=0&subscribe=true'>Manage Subscriptions</a> " + "\n" +
- " </li> " + "\n" +
- "</ul> " + "\n" +
- "";
- document.getElementById("sidebar").insertBefore(DOMDisplay, document.getElementById("donations"));
- //If we are on the tags page and we came from the subscription controll panel.... highjack it :P
- if (location.search.substr(location.search.lastIndexOf("&") + 1).split("=")[0] == "subscribe" &&
- location.search.substr(location.search.lastIndexOf("&") + 1).split("=")[1] == "true") {
- $("#content h1:first").html("Subscriptions");
- var DOMSubscribeOption = document.createElement("li");
- DOMSubscribeOption.style.display = "none";
- DOMSubscribeOption.innerHTML =
- '<label for="subscribe">Subscription:</label>' + "\n" +
- '<select id="subscribe" name="subscribe">' + "\n" +
- ' <option selected="true" value="true">Yes</option>' + "\n" +
- ' <option value="false">No</option>' + "\n" +
- '</select>' + "\n" +
- '';
- $("#sorting_controls ul").append(DOMSubscribeOption);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment